fix(ci): evidence sync opens a PR instead of pushing to main - #1016
Open
emooreatx wants to merge 1 commit into
Open
fix(ci): evidence sync opens a PR instead of pushing to main#1016emooreatx wants to merge 1 commit into
emooreatx wants to merge 1 commit into
Conversation
The job harvested correctly and then threw the result away on every run. main carries a ruleset — "Changes must be made through a pull request" — so `git push origin main` was rejected with GH013 AFTER the bundles were gathered and committed. The failure was at the very last step, which is why the run looked like it worked until the end. Now commits to a fixed `evidence/safety-sync` branch and opens (or updates) a PR. Fixed branch name, so repeated syncs update the same PR instead of accumulating one per run; force-push is safe because the branch is rebuilt from main each time and belongs solely to this job. Reuses an open PR rather than letting `gh pr create` error on a duplicate. Adds `pull-requests: write`, which the job now needs. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018umjfoyNwpa7BWVmzoayTM
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



safety-evidence-synchas been failing on every run. It harvests correctly, commits, and is then rejected at the final step:So the evidence was gathered and discarded every time — the job's whole purpose, defeated one line from the end.
Now it commits to a fixed
evidence/safety-syncbranch and opens or updates a PR. The fixed branch name means repeated syncs update the same PR rather than accumulating one per run; force-push is safe because the branch is rebuilt from main each run and is owned solely by this job. An already-open PR is reused, sincegh pr createerrors on a duplicate and that must not fail the job.Adds
pull-requests: write.🤖 Generated with Claude Code
https://claude.ai/code/session_018umjfoyNwpa7BWVmzoayTM