Repository navigation
chore(deps): dependency sweep #458
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
| name: apify-factory review | |
| # Tells the apify-factory review pipeline (apify/ai-developer) about each pull request event: the | |
| # factory reviews the pull request when apify-factory is requested, and, with the repository's | |
| # `factory_auto_review` custom property set to true, every ready pull request when it opens and after | |
| # every push that changes its content. This workflow withdraws the bot's approval whenever the | |
| # factory says so or gives no answer. It holds no secret: its OIDC token proves which run asks. | |
| # Approvals also need the `factory_auto_approve` custom property set to true; this repository's own | |
| # review rules live in `.factory/review-policy.json` on the default branch. | |
| on: | |
| # Taken from the default branch, never from the pull request, so a pull request cannot rewrite | |
| # its own guard. Pull request code is never checked out or executed. `edited` delivers base | |
| # changes, without which pull requests on another base are not approved. | |
| pull_request_target: | |
| types: | |
| - opened | |
| - reopened | |
| - review_requested | |
| - review_request_removed | |
| - converted_to_draft | |
| - ready_for_review | |
| - synchronize | |
| - edited | |
| permissions: | |
| pull-requests: write | |
| id-token: write | |
| # A push cancels the run in progress, since the newer run judges the pull request as it now | |
| # stands. The events the guard passes over (a request or removal naming another reviewer, an edit | |
| # that keeps the base) and the bot's request being removed get groups of their own, so that none | |
| # of them takes the place of a waiting run that matters. | |
| concurrency: | |
| group: >- | |
| factory-review-guard-${{ github.event.pull_request.number }}-${{ | |
| (startsWith(github.event.action, 'review_request') | |
| && github.event.requested_reviewer.login != 'apify-factory' | |
| || github.event.action == 'edited' && !github.event.changes.base) && github.run_id | |
| || github.event.action == 'review_request_removed' && 'withdraw' | |
| || 'events' }} | |
| cancel-in-progress: ${{ github.event.action == 'synchronize' }} | |
| jobs: | |
| guard: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - uses: apify/actions/factory-review@v1.10.0 |