From 9313da836e20dc5ab187d2c02448b2c20c378014 Mon Sep 17 00:00:00 2001 From: "feliks.pobiedzinski@swmansion.com" Date: Wed, 18 Oct 2023 13:48:49 +0200 Subject: [PATCH 1/2] Add workflow closing newly opened issues --- .github/workflows/on_issue_opened.yaml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/on_issue_opened.yaml diff --git a/.github/workflows/on_issue_opened.yaml b/.github/workflows/on_issue_opened.yaml new file mode 100644 index 00000000..beed601b --- /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 }} From 7db3049c6657593bdd3db91bed2ac124ddcf8f64 Mon Sep 17 00:00:00 2001 From: "feliks.pobiedzinski@swmansion.com" Date: Wed, 18 Oct 2023 13:48:50 +0200 Subject: [PATCH 2/2] Add default issue template --- ...-new-issues-in-membranefranework-membrane_core.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE/please--open-new-issues-in-membranefranework-membrane_core.md 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 00000000..7dc05eb4 --- /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 :)