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