Repository navigation
feat: add pr-auto-review.yml workflow (compliance automation Phase 2) #245
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
666b2e3
feat: add pr-auto-review.yml workflow (compliance automation Phase 2)
don-petry 4a8ab9c
fix(bot): address bot feedback [skip ci-relay]
donpetry-bot 268c1e2
chore: apply manual instructions [skip ci-relay]
donpetry-bot 6f93db4
chore: apply manual instructions [skip ci-relay]
donpetry-bot 0abb7ff
chore: apply manual instructions [skip ci-relay]
donpetry-bot 531efc6
chore: apply manual instructions [skip ci-relay]
donpetry-bot c68c454
chore: apply manual instructions [skip ci-relay]
donpetry-bot f777fe8
chore: apply manual instructions [skip ci-relay]
donpetry-bot fdb857e
chore: apply manual instructions [skip ci-relay]
donpetry-bot 4490eaf
chore: apply manual instructions [skip ci-relay]
donpetry-bot a0408a3
chore: apply manual instructions [skip ci-relay]
donpetry-bot 2874ee4
chore: apply manual instructions [skip ci-relay]
donpetry-bot 20b5236
chore: apply manual instructions [skip ci-relay]
donpetry-bot 9a72646
chore: apply manual instructions [skip ci-relay]
donpetry-bot dd9e4d9
chore: apply manual instructions [skip ci-relay]
donpetry-bot 669b546
chore: apply manual instructions [skip ci-relay]
donpetry-bot 2dba942
chore: apply manual instructions [skip ci-relay]
donpetry-bot e1a5d1e
chore: apply manual instructions [skip ci-relay]
donpetry-bot e9c92fc
chore: apply manual instructions [skip ci-relay]
donpetry-bot 1914457
chore: apply manual instructions [skip ci-relay]
donpetry-bot f86e1bf
chore: apply manual instructions [skip ci-relay]
donpetry-bot d24063c
chore: apply manual instructions [skip ci-relay]
donpetry-bot File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,55 @@ | ||
| # ───────────────────────────────────────────────────────────────────────────── | ||
| # SOURCE OF TRUTH: petry-projects/.github/standards/workflows/pr-auto-review.yml | ||
| # Standard: petry-projects/.github/standards/ci-standards.md | ||
| # Reusable: petry-projects/.github/.github/workflows/pr-auto-review-reusable.yml | ||
| # | ||
| # AGENTS — READ BEFORE EDITING: | ||
| # • This file is a THIN CALLER STUB. All readiness-gate logic lives in the | ||
| # reusable workflow above. | ||
| # • You MAY change: the tag in the `uses:` line when upgrading the reusable | ||
| # workflow version (e.g. bump `@v2` → `@v3` when petry-projects/.github cuts | ||
| # a new release), and the workflow name(s) in `workflow_run.workflows` to | ||
| # match your repository's CI workflow name(s). | ||
| # • You MUST NOT change: trigger event types or the job-level `permissions:` | ||
| # block — reusable workflows can be granted no more permissions than the | ||
| # calling job, so removing the stanza breaks the reusable's gh API calls. | ||
| # • If you need different behaviour, open a PR against the reusable in the | ||
| # central repo. | ||
| # • When publishing a new version of this reusable, also update this template | ||
| # and open a fanout PR across all caller repos. | ||
| # ───────────────────────────────────────────────────────────────────────────── | ||
| # | ||
| # PR Auto-Review — thin caller for the org-level reusable. | ||
| # To adopt: copy this file to .github/workflows/pr-auto-review.yml in your repo. | ||
| # Requires: GH_PAT_WORKFLOWS org secret (already present in petry-projects org). | ||
| name: PR Auto-Review — Ready Check | ||
|
|
||
| on: | ||
| # workflow_run fires when a named GitHub Actions workflow completes. | ||
| # check_suite does NOT trigger for GitHub Actions runs, so this is required | ||
| # to catch CI turning green on a PR. | ||
| # TODO: replace "CI" with your repository's CI workflow name(s). | ||
|
Check warning on line 31 in .github/workflows/pr-auto-review.yml
|
||
| workflow_run: | ||
| workflows: ["CI"] | ||
|
don-petry marked this conversation as resolved.
Outdated
|
||
| types: [completed] | ||
| # check_suite covers third-party CI checks (e.g. SonarCloud, external apps). | ||
| check_suite: | ||
| types: [completed] | ||
| # Re-evaluate readiness after review state changes. | ||
| pull_request_review: | ||
| types: [submitted, dismissed] | ||
|
don-petry marked this conversation as resolved.
|
||
| # Re-evaluate when the PR is first opened, updated, or comes out of draft. | ||
| pull_request: | ||
| types: [opened, reopened, synchronize, ready_for_review] | ||
|
don-petry marked this conversation as resolved.
|
||
|
|
||
| permissions: {} | ||
|
|
||
| jobs: | ||
| pr-auto-review: | ||
| permissions: | ||
| pull-requests: read | ||
| checks: read | ||
| actions: read | ||
| uses: petry-projects/.github/.github/workflows/pr-auto-review-reusable.yml@v2 | ||
| secrets: | ||
| GH_PAT_WORKFLOWS: ${{ secrets.GH_PAT_WORKFLOWS }} | ||
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.