-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Gordon Shotwell
committed
Jul 28, 2023
1 parent
a7adfb7
commit 9d90bfe
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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,27 @@ | ||
name: Issue Management | ||
|
||
on: | ||
issues: | ||
types: [opened] | ||
|
||
jobs: | ||
triage_or_add_to_project: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Check if the issue creator is a maintainer | ||
id: check_maintainer | ||
run: echo "::set-output name=is_maintainer::$(echo ${{ github.event.issue.user.type }} | tr '[:upper:]' '[:lower:]')" | ||
|
||
- name: Apply "needs triage" label to issues created by non-maintainers | ||
if: steps.check_maintainer.outputs.is_maintainer == 'user' | ||
run: | | ||
gh issue add-label "${{ github.event.issue.number }}" "needs triage" | ||
- name: Add issue to project for issues created by maintainers | ||
if: steps.check_maintainer.outputs.is_maintainer == 'organization' | ||
uses: softprops/action-gh-project@v1 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
project_url: "https://github.com/orgs/rstudio/projects/179" | ||
column_name: "New" |