Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add GitHub workflow closing newly opened issues and default issue template #31

Merged
merged 2 commits into from
Oct 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -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 :)
24 changes: 24 additions & 0 deletions .github/workflows/on_issue_opened.yaml
Original file line number Diff line number Diff line change
@@ -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 }}