File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Issue Management
2+
3+ on :
4+ issues :
5+ types : [opened]
6+
7+ jobs :
8+ triage_or_add_to_project :
9+ runs-on : ubuntu-latest
10+
11+ env :
12+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
13+
14+ steps :
15+ - name : Check if the issue creator is a maintainer
16+ id : check_maintainer
17+ run : |
18+ IS_ADMIN=`gh api /repos/rstudio/py-shiny/collaborators/${{ github.event.issue.user.login }}/permission --jq='.user.permissions.admin'`
19+ echo "is_maintainer=$IS_ADMIN" >> "$GITHUB_OUTPUT"
20+
21+ - name : Apply "needs triage" label to issues created by non-maintainers
22+ if : steps.check_maintainer.outputs.is_maintainer == 'false'
23+ run : |
24+ gh issue edit ${{ github.event.number }} --add-label "needs-triage" --repo ${{ github.repository }}
You can’t perform that action at this time.
0 commit comments