Skip to content

Move new issues to triage #17

Move new issues to triage

Move new issues to triage #17

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 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 check issue body and update discussion
env:
ISSUE_BODY: ${{ github.event.issue.body }}
TRANSFERRED_LABE: ${{ vars.TRANSFERRED_LABEL }}
GITHUB_REPOSITORY: ${{ github.repository }}
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
run: python .github/scripts/update_discussion.py
transfer_issue:
if: ${{ ! contains(github.event.issue.labels.*.name, vars.KEEP_LABEL ) }}
needs: update-discussion
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 }}