From bc26f3d3aa3e124f1fbf53871b036105f4e988ac Mon Sep 17 00:00:00 2001 From: Kevin Schneider Date: Fri, 7 Jun 2024 15:47:41 +0200 Subject: [PATCH] Create manage-issues.yml ... --- .github/workflows/manage-issues.yml | 31 +++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/manage-issues.yml diff --git a/.github/workflows/manage-issues.yml b/.github/workflows/manage-issues.yml new file mode 100644 index 0000000..34b85b6 --- /dev/null +++ b/.github/workflows/manage-issues.yml @@ -0,0 +1,31 @@ +name: Manage issues + +on: + issues: + types: + - opened + - reopened + +jobs: + label_issues: + runs-on: ubuntu-latest + permissions: + issues: write + steps: + - run: gh issue edit "$NUMBER" --add-label "$LABELS" + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GH_REPO: ${{ github.repository }} + NUMBER: ${{ github.event.issue.number }} + LABELS: "Status: Needs Triage" + + add-to-project: + name: Add issue to project + runs-on: ubuntu-latest + steps: + - uses: actions/add-to-project@v1.0.1 + with: + # You can target a project in a different organization + # to the issue + project-url: https://github.com/orgs/nfdi4plants/projects/10 + github-token: ${{ secrets.ADD_TO_PROJECT_PAT }}