forked from WordPress/openverse
-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (28 loc) · 1.19 KB
/
new_issues.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: New issue automation
# ℹ️ https://github.com/WordPress/openverse/blob/main/.github/GITHUB.md#new-issue-automation
on:
issues:
types:
- opened
env:
GH_TOKEN: ${{ secrets.ACCESS_TOKEN }} # Projects need a personal access token to work.
ISSUE_ID: ${{ github.event.issue.node_id }} # The global issue ID that works in both REST and GraphQL APIs.
jobs:
add_issue_to_project:
name: Add new issue to project
runs-on: ubuntu-latest
steps:
- uses: bulatt3/[email protected]
with:
project-url: https://github.com/orgs/WordPress/projects/75
github-token: ${{ secrets.ACCESS_TOKEN }}
# Exclude the issues with the following labels
labeled: "🧭 project: thread"
label-operator: NOT
label-map: |
{ "Priority": [
{ "label": "🟥 priority: critical", "fieldValue": "🟥 priority: critical" },
{ "label": "🟧 priority: high", "fieldValue": "🟧 priority: high" },
{ "label": "🟨 priority: medium", "fieldValue": "🟨 priority: medium" },
{ "label": "🟩 priority: low", "fieldValue": "🟩 priority: low" }
]}