Repository navigation
test(cloudflare): Fix the invocation-duration flake and report request errors #127
Workflow file for this run
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: 'PR: Assign Junior PRs to requester' | |
| on: | |
| pull_request_target: | |
| types: | |
| - opened | |
| permissions: | |
| contents: read | |
| jobs: | |
| assign-requester: | |
| name: Assign requester | |
| runs-on: ubuntu-24.04 | |
| if: github.event.pull_request.user.login == 'sentry-junior[bot]' | |
| steps: | |
| # Matching Slack names to GitHub users lists team members, which needs org `members: read`. Labels added with | |
| # GITHUB_TOKEN wouldn't trigger the team review gate. | |
| - name: Generate GitHub App token | |
| id: app-token | |
| uses: actions/create-github-app-token@v3 | |
| with: | |
| client-id: ${{ vars.GITFLOW_APP_ID }} | |
| private-key: ${{ secrets.GITFLOW_APP_PRIVATE_KEY }} | |
| - name: Checkout base branch | |
| uses: actions/checkout@v7 | |
| with: | |
| sparse-checkout: | | |
| scripts/junior-requesters.mjs | |
| scripts/team-review-gate.mjs | |
| sparse-checkout-cone-mode: false | |
| - name: Label for team review | |
| uses: actions/github-script@v9 | |
| with: | |
| github-token: ${{ steps.app-token.outputs.token }} | |
| script: | | |
| const { labelJuniorPrForTeamReview } = await import('${{ github.workspace }}/scripts/team-review-gate.mjs'); | |
| await labelJuniorPrForTeamReview({ github, context, core }); | |
| - name: Assign requester | |
| uses: actions/github-script@v9 | |
| with: | |
| github-token: ${{ steps.app-token.outputs.token }} | |
| script: | | |
| const { assignJuniorRequesters } = await import('${{ github.workspace }}/scripts/junior-requesters.mjs'); | |
| await assignJuniorRequesters({ github, context, core }); |