From 7f2e3f80e14418cb890bd72734356c7f96972509 Mon Sep 17 00:00:00 2001 From: surchs Date: Thu, 2 Nov 2023 23:24:14 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=84=20created=20local=20'.github/workf?= =?UTF-8?q?lows/'=20from=20remote=20'template=5Fworkflows/'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/add_iss2project.yml | 16 ++++++++++++++++ .github/workflows/stale.yml | 24 ++++++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 .github/workflows/add_iss2project.yml create mode 100644 .github/workflows/stale.yml diff --git a/.github/workflows/add_iss2project.yml b/.github/workflows/add_iss2project.yml new file mode 100644 index 0000000..30d57fc --- /dev/null +++ b/.github/workflows/add_iss2project.yml @@ -0,0 +1,16 @@ +name: Add new issues to project + +on: + issues: + types: + - opened + +jobs: + add-to-project: + name: Add issue to project + runs-on: ubuntu-latest + steps: + - uses: actions/add-to-project@main + with: + project-url: https://github.com/orgs/neurobagel/projects/1 + github-token: ${{ secrets.NB_PROJECT_PAT }} diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml new file mode 100644 index 0000000..4e94a9b --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,24 @@ +name: 'Close stale issues and PRs' +on: + schedule: + - cron: '30 1 * * *' + +jobs: + stale: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v8 + with: + stale-issue-message: | + We want to keep our issues up to date and active. This issue hasn't seen any activity in the last 75 days. + We have applied the `_flag:stale` label to indicate that this issue should be reviewed again. + When you review, please reread the spec and then apply one of these three options: + - prioritize: apply the `flag:schedule` label to suggest moving this issue into the backlog now + - close: if the issue is no longer relevant, explain why (give others a chance to reply) and then close. + - archive: sometimes an issue has important information or ideas but we won't work on it soon. In this case + apply the `someday` label to show that this won't be prioritized. The stalebot will ignore issues with this + label in the future. Use sparingly! + days-before-stale: 75 + days-before-close: -1 + stale-issue-label: '_flag:stale' + exempt-issue-labels: 'Roadmap,Milestone,Epic,someday'