Skip to content

Commit

Permalink
Test github action
Browse files Browse the repository at this point in the history
  • Loading branch information
Gordon Shotwell committed Jul 28, 2023
1 parent a7adfb7 commit 9d90bfe
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/issue_workflow.yml
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"

0 comments on commit 9d90bfe

Please sign in to comment.