-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (35 loc) · 1021 Bytes
/
new_issue.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
31
32
33
34
35
36
37
38
39
name: Move new issues to triage
on:
issues:
types:
- opened
jobs:
update-discussion:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
run: |
pip install PyGithub
- name: Run Python script
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TRANSFERRED_LABEL: ${{ vars.TRANSFERRED_LABEL }}
run: |
python .github/scripts/update_discussion.py
transfer_issue:
if: ${{ ! contains(github.event.issue.labels.*.name, vars.KEEP_LABEL ) }}
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- run: gh issue transfer "$ISSUE" datacite/product-suggestions-triage
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
GH_REPO: ${{ github.repository }}
ISSUE: ${{ github.event.issue.html_url }}