From f2861b07f3f0adc94608cd4de69a82fa5b19de39 Mon Sep 17 00:00:00 2001 From: Tauhid Anjum Date: Mon, 28 Jun 2021 15:49:54 +0530 Subject: [PATCH] Adding default labels workflow and issue template (#32) Co-authored-by: tauhid621 --- .../bug-report-feature-request.md | 10 +++++++ .github/workflows/defaultLabels.yml | 30 +++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE/bug-report-feature-request.md create mode 100644 .github/workflows/defaultLabels.yml diff --git a/.github/ISSUE_TEMPLATE/bug-report-feature-request.md b/.github/ISSUE_TEMPLATE/bug-report-feature-request.md new file mode 100644 index 0000000..214d54b --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug-report-feature-request.md @@ -0,0 +1,10 @@ +--- +name: Bug Report / Feature Request +about: Create a report to help us improve +title: '' +labels: need-to-triage +assignees: '' + +--- + + diff --git a/.github/workflows/defaultLabels.yml b/.github/workflows/defaultLabels.yml new file mode 100644 index 0000000..9bba0b5 --- /dev/null +++ b/.github/workflows/defaultLabels.yml @@ -0,0 +1,30 @@ +name: setting-default-labels + +on: + schedule: + - cron: "0 0/3 * * *" + +jobs: + label-issues: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v3 + name: Setting issue as idle + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + stale-issue-message: 'This issue is idle because it has been open for 14 days with no activity.' + stale-issue-label: 'idle' + days-before-stale: 14 + days-before-close: -1 + operations-per-run: 100 + exempt-issue-labels: 'backlog' + + - uses: actions/stale@v3 + name: Setting PR as idle + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + stale-pr-message: 'This PR is idle because it has been open for 14 days with no activity.' + stale-pr-label: 'idle' + days-before-stale: 14 + days-before-close: -1 + operations-per-run: 100