From 0f1d05d6fc4c3fc922026c436dacb855a06611ca Mon Sep 17 00:00:00 2001 From: Reece Hart Date: Sun, 26 Nov 2023 20:41:33 -0800 Subject: [PATCH] sync .github with biocommons.example --- .github/ISSUE_TEMPLATE/bug_report.md | 24 ++++++++++ .github/ISSUE_TEMPLATE/feature_request.md | 20 +++++++++ .github/labels.yml | 55 +++++++++++++++++++++++ .github/workflows/labels.yml | 23 ++++++++++ .github/workflows/stale.yml | 30 +++++++++++++ 5 files changed, 152 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE/bug_report.md create mode 100644 .github/ISSUE_TEMPLATE/feature_request.md create mode 100644 .github/labels.yml create mode 100644 .github/workflows/labels.yml 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 00000000..74514987 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -0,0 +1,24 @@ +--- +name: Bug report +about: Create a report to help us improve +title: '' +labels: '' +assignees: '' + +--- + +**Describe the bug** +A clear and concise description of what the bug is. + +**To Reproduce** +Steps to reproduce the behavior: +1. Go to '...' +2. Click on '....' +3. Scroll down to '....' +4. See error + +**Expected behavior** +A clear and concise description of what you expected to happen. + +**Additional context** +Add any other context about the problem here. diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md new file mode 100644 index 00000000..bbcbbe7d --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -0,0 +1,20 @@ +--- +name: Feature request +about: Suggest an idea for this project +title: '' +labels: '' +assignees: '' + +--- + +**Is your feature request related to a problem? Please describe.** +A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] + +**Describe the solution you'd like** +A clear and concise description of what you want to happen. + +**Describe alternatives you've considered** +A clear and concise description of any alternative solutions or features you've considered. + +**Additional context** +Add any other context or screenshots about the feature request here. diff --git a/.github/labels.yml b/.github/labels.yml new file mode 100644 index 00000000..f67e6aeb --- /dev/null +++ b/.github/labels.yml @@ -0,0 +1,55 @@ +- name: "bug" + color: "d73a4a" + description: "Something isn't working" + +- name: "documentation" + color: "0075ca" + description: "Improvements or additions to documentation" + +- name: "duplicate" + color: "cfd3d7" + description: "This issue or pull request already exists" + +- name: "enhancement" + color: "a2eeef" + description: "New feature or request" + +- name: "good first issue" + color: "7057ff" + description: "Good for newcomers" + +- name: "help wanted" + color: "008672" + description: "Extra attention is needed" + +- name: "invalid" + color: "e4e669" + description: "This doesn't seem right" + +- name: "keep alive" + color: "666666" + description: "exempt issue from staleness checks" + from_name: "keep alive" + +- name: "question" + color: "d876e3" + description: "Further information is requested" + +- name: "rfc" + color: "d876e3" + description: "Request for comments" + +- name: "stale" + color: "777777" + description: "Issue is stale and subject to automatic closing" + from_name: "Stale" + +- name: "stale closed" + color: "444444" + description: "Issue was closed automatically due to inactivity" + from_name: "stale-closed" + +- name: "won't fix" + color: "ffffff" + description: "This will not be worked on" + from_name: wontfix \ No newline at end of file diff --git a/.github/workflows/labels.yml b/.github/workflows/labels.yml new file mode 100644 index 00000000..40d0f447 --- /dev/null +++ b/.github/workflows/labels.yml @@ -0,0 +1,23 @@ +name: github + +on: + push: + branches: + - 'main' + paths: + - '.github/labels.yml' + - '.github/workflows/labels.yml' + +jobs: + labeler: + runs-on: ubuntu-latest + steps: + - + name: Checkout + uses: actions/checkout@v3 + - + name: Run Labeler + uses: crazy-max/ghaction-github-labeler@v4 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + yaml-file: .github/labels.yml diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml new file mode 100644 index 00000000..5e171900 --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,30 @@ +# https://github.com/actions/stale + +name: 'Close stale issues and PRs' +on: + schedule: + - cron: '1 1 * * *' + +jobs: + stale: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v8 + with: + exempt-all-milestones: true + exempt-draft-pr: true + exempt-issue-labels: bug,keep-alive + exempt-pr-labels: bug,keep-alive + + days-before-close: 7 + days-before-stale: 30 + + stale-issue-label: stale + stale-issue-message: 'This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.' + close-issue-label: closed-by-stale + close-issue-message: 'This issue was closed because it has been stalled for 7 days with no activity.' + + stale-pr-label: stale + stale-pr-message: 'This PR is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.' + close-pr-label: closed-by-stale + close-pr-message: 'This PR was closed because it has been stalled for 7 days with no activity.'