-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Create PR triaging action #32954
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
base: master
Are you sure you want to change the base?
Create PR triaging action #32954
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| team_members: | ||
| - ajuncosa | ||
| - alexpavlov96 | ||
| - davidstephengrant | ||
| - dependabot[bot] | ||
| - eism | ||
| - github-actions[bot] | ||
| - grliszas14 | ||
| - IgorKorsukov | ||
| - kryksyh | ||
| - luapmartin | ||
| - mathesoncalum | ||
| - miiizen | ||
| - mike-spa | ||
| - mikekirin | ||
| - RomanPudashkin | ||
| - shoogle | ||
| - zacjansheski |
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
| @@ -0,0 +1,27 @@ | ||||
| name: PR Triager | ||||
| on: | ||||
| pull_request_target: | ||||
| types: [opened] | ||||
|
|
||||
| permissions: | ||||
| pull-requests: read | ||||
| contents: read | ||||
coderabbitai[bot] marked this conversation as resolved.
Show resolved
Hide resolved
|
||||
|
|
||||
| jobs: | ||||
| add_to_projects: | ||||
| runs-on: ubuntu-slim | ||||
| steps: | ||||
| - uses: actions/checkout@v6 | ||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: #!/bin/bash
set -euo pipefail
echo "Checking actions/checkout tag v6..."
gh api repos/actions/checkout/git/matching-refs/tags/v6 | jq 'length'
echo "Listing latest actions/checkout releases..."
gh api repos/actions/checkout/releases --paginate | jq -r '.[].tag_name' | head -n 10
echo "Checking add-to-project published tags..."
gh api repos/actions/add-to-project/git/matching-refs/tags | jq -r '.[].ref' | head -n 20
echo "Checking add-to-project default branch head..."
gh api repos/actions/add-to-project | jq -r '.default_branch, .pushed_at'Repository: musescore/MuseScore Length of output: 148 🏁 Script executed: cat .github/workflows/triage_prs.ymlRepository: musescore/MuseScore Length of output: 855 🌐 Web query:
💡 Result:
Sources: [1] 🌐 Web query:
💡 Result:
Sources: GitHub Actions security hardening guidance [1], [1] (docs.github.com) Citations:
Pin
🔧 Proposed fix- uses: actions/add-to-project@main
+ uses: actions/add-to-project@244f685bbc3b7adfa8466e08b698b5577571133eNote: 🤖 Prompt for AI Agents
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not sure we should be terribly worried about this. We do the same in
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
(´• ω •`) 🐇 ✏️ Learnings added
|
||||
| - name: Check PR author | ||||
| id: check_author | ||||
| run: | | ||||
| PR_AUTHOR="${{ github.event.pull_request.user.login }}" | ||||
| if ! grep -Fqxi " - $PR_AUTHOR" .github/team_members.yml; then | ||||
| echo "should_add=true" >> $GITHUB_OUTPUT | ||||
| fi | ||||
| - name: "Add community PR to triaging project" | ||||
| if: steps.check_author.outputs.should_add == 'true' | ||||
| uses: actions/add-to-project@main | ||||
| with: | ||||
| project-url: https://github.com/orgs/musescore/projects/117 | ||||
| github-token: ${{ secrets.ADD_TO_PROJECT_PAT }} | ||||
Uh oh!
There was an error while loading. Please reload this page.