Repository navigation
Conversation
Add the shared PR status labels workflow from CI v0.7.0. It adds needs-review to a new pull request whose author has no write access, and replaces changes-requested with needs-review when the author pushes or the pull request is marked ready for review. Move issue triage from CI v0.5.0 to v0.7.0. The model API rejects the uniqueItems keyword in the v0.5.0 response schema, so new issues get only the fallback needs-triage label. v0.7.0 drops the keyword and skips needs-triage on issues labeled project.
Contributor
Codex AI reviewNo confirmed actionable findings in the supplied diff. Static inspection only: tests were not run, and the referenced shared-workflow implementations and upstream test evidence were unavailable locally. Reviewed commit |
This branch was successfully deployed
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.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
Description
Moves two workflows to CI v0.7.0, pinned to commit
c28fdc7.needs-reviewto a new pull request whose author has no write access. When the author pushes, or the pull request is marked ready for review, it replaceschanges-requestedwithneeds-review. The job checks out no pull request code, and its token has onlycontents: readandpull-requests: write.uniqueItems: truein the v0.5.0 response schema, so the model labeled nothing and the fallback addedneeds-triage. v0.7.0 dropsuniqueItems(CI #83: drop uniqueItems from label schema) and skipsneeds-triageon issues labeledproject(CI #87: skip needs-triage on project issues).Design
uniqueItems, and the v0.5.0 schema uses it.Assumptions
pull_request_targetruns in the context of the default branch (GitHub docs).pull-requests: writeis enough to add and remove a pull request's labels (GitHub App permissions). Unverified in a run: no repository has run the workflow on a real pull request yet. A dry run with writes disabled checked its decisions against every open pull request in the consuming repositories.Decisions not covered by the issue or the design note
ubuntu-latest, as closed-issue-comment does, because it runs no model.Testing
actionlint passes on the changed workflow files. The labeling logic has 36 unit tests in the CI repository.