-
Notifications
You must be signed in to change notification settings - Fork 7
Use set-ci-org-and-branch instead of ci-org-and-branch
#64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -34,7 +34,7 @@ rm -rf "$startdir" "$resultdir" | |
|
|
||
| git clone --branch "$START_BRANCH" "$START_REPO" "$startdir" -q --single-branch --depth 1 | ||
| # This test might itself be running under CI, so unset the variables that | ||
| # `git-changes` examines. | ||
| # `set-ci-org-and-branch` examines. | ||
| unset SYSTEM_PULLREQUEST_TARGETBRANCH | ||
| unset BUILD_SOURCEBRANCH | ||
| unset TRAVIS | ||
|
Comment on lines
34
to
40
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win 🔎 Supported by static analysis🏁 Script executed: sed -n '1,240p' tests/git-clone-related-test/test-git-clone-related.sh
find tests -path '*git-clone-related*' -type f -maxdepth 5 -print
rg -n 'git-clone-related|set-ci-org-and-branch|ci-org-and-branch|CI_DEBUG|CI_DEFAULT_ORGANIZATION' testsRepository: plume-lib/git-scripts Length of output: 7632 Add focused coverage for the CI-context contract. The current test invokes 🤖 Prompt for AI Agents |
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
🔎 Supported by static analysis
🏁 Script executed:
Repository: plume-lib/git-scripts
Length of output: 24726
🏁 Script executed:
Repository: plume-lib/git-scripts
Length of output: 13010
🏁 Script executed:
Repository: plume-lib/git-scripts
Length of output: 14227
Preserve the initial source status.
set-ci-org-and-branchdocuments status3for retryable information failures and status2for other failures. A reachable failure can return either status. Theif ! . "${CI_INFO}"branch inverts and then discards that status, while the diagnostic re-source can replace$?;exit 1therefore prevents CI callers from retrying status3failures. Capture the first source status before the diagnostic re-source and exit with that saved status.🤖 Prompt for AI Agents