From aa07eadc12b2b122315210c667d9218a2fa2c6d4 Mon Sep 17 00:00:00 2001 From: Robert DeLuca Date: Thu, 29 Jul 2021 10:18:31 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=B9=20Add=20stale=20issues/PRs=20actio?= =?UTF-8?q?n,=20update=20releaser=20config=20for=20new=20labels?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/ISSUE_TEMPLATE/bug_report.md | 47 ++++++++++++++++++++++++++++ .github/release-drafter.yml | 22 ++++++------- .github/workflows/stale.yml | 30 ++++++++++++++++++ 3 files changed, 87 insertions(+), 12 deletions(-) create mode 100644 .github/ISSUE_TEMPLATE/bug_report.md create mode 100644 .github/workflows/stale.yml diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md new file mode 100644 index 0000000..9134a47 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -0,0 +1,47 @@ +--- +name: Bug report +about: Create a report to help us fix the issue +title: '' +labels: '' +assignees: '' +--- + + +## The problem + +Briefly describe the issue you are experiencing (or the feature you want to see +added to Percy). Tell us what you were trying to do and what happened +instead. Remember, this is _not_ a place to ask questions. For that, go to +https://github.com/percy/cli/discussions/new + +## Environment + +- Node version: +- `@percy/cli` version: +- Version of Percy SDK you’re using: +- If needed, a build or snapshot ID: +- OS version: +- Type of shell command-line [interface]: + +## Details + +If necessary, describe the problem you have been experiencing in more detail. + +## Debug logs + +If you are reporting a bug, _always_ include logs! Run a Percy build with +`--verbose` to get the full debug logs. You can also set an environment var +`PERCY_LOGLEVEL=debug` to get debug logs. For example, `percy exec --verbose -- +[test command]`. Please include the full complete test output. + +## Code to reproduce issue + +Given the nature of testing/environment bugs, it’s best to try and isolate the +issue in a reproducible repo. This will make it much easier for us to diagnose +and fix. diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml index ed36061..05df3e2 100644 --- a/.github/release-drafter.yml +++ b/.github/release-drafter.yml @@ -3,28 +3,26 @@ tag-template: 'v$RESOLVED_VERSION' categories: - title: '💥 Breaking Changes' labels: - - breaking + - 💥 breaking - title: '✨ Enhancements' labels: - - feature - - enhancement + - ✨ enhancement - title: '🐛 Bug Fixes' labels: - - fix - - bugfix - - bug - - title: '🏗 Maintenance' + - 🐛 bug + - title: '🏗 Maintenance' labels: - - chore - - dependencies + - 🧹 maintenance + - title: '⬆️⬇️ Dependency Updates' + labels: + - ⬆️⬇️ dependencies change-title-escapes: '\<*_&#@' version-resolver: major: labels: - - breaking + - 💥 breaking minor: labels: - - feature - - enhancement + - ✨ enhancement default: patch template: '$CHANGES' diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml new file mode 100644 index 0000000..c643e13 --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,30 @@ +name: 'Close stale issues and PRs' +on: + schedule: + - cron: '0 19 * * 2' + +jobs: + stale: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v4 + with: + stale-issue-message: >- + This issue is stale because it has been open for more than 14 days with no activity. + Remove stale label or comment or this will be closed in 14 days. + stale-pr-message: >- + This PR is stale because it has been open for more than 14 days with no activity. + Remove stale label or comment or this will be closed in 14 days. + close-issue-message: >- + This issue was closed because it has been stalled for 28 days with no activity. + close-pr-message: >- + This PR was closed because it has been stalled for 28 days with no activity. + days-before-issue-stale: 14 + days-before-pr-stale: 14 + # close 14 days _after_ initial warning + days-before-issue-close: 14 + days-before-pr-close: 14 + exempt-pr-labels: '❄️ on ice' + exempt-issue-labels: '🐛 bug,❄️ on ice,✨ enhancement' + exempt-all-assignees: true + stale-pr-label: '🍞 stale'