Create issues.yml

This commit is contained in:
Aurora Lahtela 2022-07-31 08:43:38 +03:00 committed by GitHub
parent 33e587e2e6
commit a9154e1d0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

28
.github/workflows/issues.yml vendored Normal file
View File

@ -0,0 +1,28 @@
name: Issue Automation
on:
issues:
types:
- opened
# map fields with customized labels
env:
inbox: INBOX
refinement: Needs Refinement
refined: Refined & Actionable
assigned: Assigned to Milestone
done: Done
jobs:
issue_opened:
name: New Issue Opened
runs-on: ubuntu-latest
if: github.event_name == 'issues' && github.event.action == 'opened'
steps:
- name: Add issue to ${{ env.inbox }}
uses: leonsteinhaeuser/project-beta-automations@v1.2.1
with:
gh_token: ${{ secrets.GITHUB_TOKEN }}
organization: plan-player-analytics
project_id: 3
resource_node_id: ${{ github.event.issue.node_id }}
status_value: ${{ env.inbox }} # Target status