Skip to content

Move new issues to triage #11

Move new issues to triage

Move new issues to triage #11

Workflow file for this run

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 }}