-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (37 loc) · 1.18 KB
/
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
40
41
name: Move new issues to triage
on:
issues:
types:
- opened
jobs:
update-issue:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install requests
- name: Run Python script to update issue
env:
ISSUE_BODY: ${{ github.event.issue.body }}
ISSUE_NUMBER: ${{ github.event.issue.number }}
TRANSFERRED_LABEL: ${{ vars.TRANSFERRED_LABEL }}
DEST_REPO: ${{ vars.DEST_REPO }}
GITHUB_REPOSITORY: ${{ github.repository }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: python .github/scripts/update_issue.py
transfer_issue:
if: ${{ ! contains(github.event.issue.labels.*.name, vars.KEEP_LABEL ) }}
needs: update-issue
runs-on: ubuntu-latest
steps:
- run: gh issue transfer "$ISSUE" ${{ vars.DEST_REPO }}
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
GH_REPO: ${{ github.repository }}
ISSUE: ${{ github.event.issue.html_url }}