From baa44497b182cc7231383f3e41c098298f2115d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Feliks=20Pobiedzi=C5=84ski?= <38541925+FelonEkonom@users.noreply.github.com> Date: Wed, 18 Oct 2023 13:53:39 +0200 Subject: [PATCH] Add GitHub workflow closing newly opened issues and default issue template (#43) * Add workflow closing newly opened issues * Add default issue template --- ...sues-in-membranefranework-membrane_core.md | 12 ++++++++++ .github/workflows/on_issue_opened.yaml | 24 +++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE/please--open-new-issues-in-membranefranework-membrane_core.md create mode 100644 .github/workflows/on_issue_opened.yaml diff --git a/.github/ISSUE_TEMPLATE/please--open-new-issues-in-membranefranework-membrane_core.md b/.github/ISSUE_TEMPLATE/please--open-new-issues-in-membranefranework-membrane_core.md new file mode 100644 index 0000000..7dc05eb --- /dev/null +++ b/.github/ISSUE_TEMPLATE/please--open-new-issues-in-membranefranework-membrane_core.md @@ -0,0 +1,12 @@ +--- +name: Please, open new issues in membranefranework/membrane_core +about: New issues related to this repo should be opened there +title: "[DO NOT OPEN]" +labels: '' +assignees: '' + +--- + +Please, do not open this issue here. Open it in the [membrane_core](https://github.com/membraneframework/membrane_core) repository instead. + +Thanks for helping us grow :) diff --git a/.github/workflows/on_issue_opened.yaml b/.github/workflows/on_issue_opened.yaml new file mode 100644 index 0000000..beed601 --- /dev/null +++ b/.github/workflows/on_issue_opened.yaml @@ -0,0 +1,24 @@ +name: 'Close issue when opened' +on: + issues: + types: + - opened +jobs: + close: + runs-on: ubuntu-latest + steps: + - name: Checkout membrane_core + uses: actions/checkout@v3 + with: + repository: membraneframework/membrane_core + - name: Create label if it not exists + uses: ./.github/actions/create_label + with: + GITHUB_TOKEN: ${{ secrets.MEMBRANEFRAMEWORKADMIN_TOKEN }} + - name: Close issue + uses: ./.github/actions/close_issue + with: + GITHUB_TOKEN: ${{ secrets.MEMBRANEFRAMEWORKADMIN_TOKEN }} + ISSUE_URL: ${{ github.event.issue.html_url }} + ISSUE_NUMBER: ${{ github.event.issue.number }} + REPOSITORY: ${{ github.repository }}