From 69ba66a162e80fd4faf2e28c40b87669db188dbe Mon Sep 17 00:00:00 2001 From: Dylan Reinhardt Date: Mon, 18 Sep 2023 15:47:45 -0700 Subject: [PATCH 01/30] Only run tests when a semantic version tag is pushed --- .github/workflows/python-package.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 3925012..788f587 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -2,6 +2,8 @@ name: Python package on: push: + tags: + - '[0-9]+.[0-9]+.[0-9]+' pull_request: jobs: From 2981e68cdf4f91280a5bb52aab6b343ddaba1222 Mon Sep 17 00:00:00 2001 From: Reece Hart Date: Sun, 26 Nov 2023 15:44:37 -0800 Subject: [PATCH 02/30] updated labels and stale configuration --- .github/labels.yml | 12 ++++++++++++ .github/workflows/labels.yml | 3 +-- .github/workflows/stale.yml | 17 +++++++++++------ 3 files changed, 24 insertions(+), 8 deletions(-) diff --git a/.github/labels.yml b/.github/labels.yml index 23d4b3a..1dc643d 100644 --- a/.github/labels.yml +++ b/.github/labels.yml @@ -26,6 +26,10 @@ color: "e4e669" description: "This doesn't seem right" +- name: "keep-alive" + color: "666666" + description: "exempt issue from staleness checks" + - name: "question" color: "d876e3" description: "Further information is requested" @@ -34,6 +38,14 @@ color: "d876e3" description: "Request for comments" +- name: "stale" + color: "777777" + description: "Issue is stale and subject to automatic closing" + +- name: "stale-closed" + color: "444444" + description: "Issue was closed automatically due to inactivity" + - name: "wontfix" color: "ffffff" description: "This will not be worked on" diff --git a/.github/workflows/labels.yml b/.github/workflows/labels.yml index 233a5fc..7a89106 100644 --- a/.github/workflows/labels.yml +++ b/.github/workflows/labels.yml @@ -22,5 +22,4 @@ jobs: github-token: ${{ secrets.GITHUB_TOKEN }} yaml-file: .github/labels.yml exclude: | - help* - *issue + stale \ No newline at end of file diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 4f6b2e8..0e53662 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -11,14 +11,19 @@ jobs: steps: - uses: actions/stale@v8 with: - days-before-issue-stale: 30 - days-before-issue-close: 7 + exempt-draft-pr: true + exempt-issue-labels: keep-alive + exempt-pr-labels: 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.' - days-before-pr-stale: 30 - days-before-pr-close: 7 + 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.' - - exempt-all-pr-assignees: true \ No newline at end of file From 9570e0423130e04d0880e70a69211a6778900ce9 Mon Sep 17 00:00:00 2001 From: Reece Hart Date: Sun, 26 Nov 2023 15:48:16 -0800 Subject: [PATCH 03/30] update label config --- .github/labels.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/labels.yml b/.github/labels.yml index 1dc643d..f67e6ae 100644 --- a/.github/labels.yml +++ b/.github/labels.yml @@ -26,9 +26,10 @@ color: "e4e669" description: "This doesn't seem right" -- name: "keep-alive" +- name: "keep alive" color: "666666" description: "exempt issue from staleness checks" + from_name: "keep alive" - name: "question" color: "d876e3" @@ -41,11 +42,14 @@ - name: "stale" color: "777777" description: "Issue is stale and subject to automatic closing" + from_name: "Stale" -- name: "stale-closed" +- name: "stale closed" color: "444444" description: "Issue was closed automatically due to inactivity" + from_name: "stale-closed" -- name: "wontfix" +- name: "won't fix" color: "ffffff" description: "This will not be worked on" + from_name: wontfix \ No newline at end of file From 64638336f3c963b907266274730bb3aeb47f0feb Mon Sep 17 00:00:00 2001 From: Reece Hart Date: Sun, 26 Nov 2023 15:49:11 -0800 Subject: [PATCH 04/30] unexempt stale from labeler config --- .github/workflows/labels.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/labels.yml b/.github/workflows/labels.yml index 7a89106..40d0f44 100644 --- a/.github/workflows/labels.yml +++ b/.github/workflows/labels.yml @@ -21,5 +21,3 @@ jobs: with: github-token: ${{ secrets.GITHUB_TOKEN }} yaml-file: .github/labels.yml - exclude: | - stale \ No newline at end of file From 75c181cab64e87c44b593ca13cc779462c0447dd Mon Sep 17 00:00:00 2001 From: Reece Hart Date: Sun, 26 Nov 2023 15:52:32 -0800 Subject: [PATCH 05/30] exempt bug label from staleness --- .github/workflows/stale.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 0e53662..87739c1 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -12,8 +12,8 @@ jobs: - uses: actions/stale@v8 with: exempt-draft-pr: true - exempt-issue-labels: keep-alive - exempt-pr-labels: keep-alive + exempt-issue-labels: bug,keep-alive + exempt-pr-labels: bug,keep-alive days-before-close: 7 days-before-stale: 30 From a97df3c5593d339f9ce1f68504c6ad5d106f2385 Mon Sep 17 00:00:00 2001 From: Reece Hart Date: Sun, 26 Nov 2023 20:39:44 -0800 Subject: [PATCH 06/30] exempt issues from stale if associated with a milestone --- .github/workflows/stale.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 87739c1..5e17190 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -11,6 +11,7 @@ jobs: 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 From a1ba1ed943aa50131da00d64e3687d2785ae372e Mon Sep 17 00:00:00 2001 From: Reece Hart Date: Thu, 7 Dec 2023 20:40:46 -0800 Subject: [PATCH 07/30] updated stale config --- .github/workflows/stale.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 5e17190..17bac5d 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -12,18 +12,18 @@ jobs: - 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 - + days-before-issue-close: 7 + days-before-issue-stale: 90 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.' + stale-issue-message: 'This issue is stale because it has been open 90 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.' + days-before-pr-close: 7 + days-before-pr-stale: 30 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 From 4b0e4bf44788f30b385eeef32dd5a63410f47b44 Mon Sep 17 00:00:00 2001 From: Reece Hart Date: Thu, 18 Jan 2024 20:31:27 -0800 Subject: [PATCH 08/30] update CODEOWNERS to @biocommons/maintainers --- .github/CODEOWNERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index a923afc..5a8e735 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -1 +1 @@ -* @reece +* @biocommons/maintainers From 6b7dc5d6dbbd16867cd82ee8c1e46b2fd97ea69d Mon Sep 17 00:00:00 2001 From: Reece Hart Date: Tue, 30 Jan 2024 20:22:39 -0800 Subject: [PATCH 09/30] added project proposal template --- .github/ISSUE_TEMPLATE/project-propposal.md | 29 +++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE/project-propposal.md diff --git a/.github/ISSUE_TEMPLATE/project-propposal.md b/.github/ISSUE_TEMPLATE/project-propposal.md new file mode 100644 index 0000000..caa13ac --- /dev/null +++ b/.github/ISSUE_TEMPLATE/project-propposal.md @@ -0,0 +1,29 @@ +--- +name: Project Proposal +about: Create a proposal for an intern or GSoC project +title: 'Project: ...' +labels: 'project' +assignees: '' + +--- + +### Summary + +1-3 sentence summary of project + +## Potential Mentors + +- @reece + +## Required and Desired Skills + +- Python +- Relational database design, SQL + +## Expected Outcomes + +- **Headline**. Description... +- **Headline**. Description... + +## Background and Additional Information + From bb1be09aa6b8afa160c52ff4e33fb58348fbc677 Mon Sep 17 00:00:00 2001 From: Reece Hart Date: Tue, 30 Jan 2024 20:30:33 -0800 Subject: [PATCH 10/30] rearrange secions and add Value --- .github/ISSUE_TEMPLATE/project-propposal.md | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/project-propposal.md b/.github/ISSUE_TEMPLATE/project-propposal.md index caa13ac..01cb99d 100644 --- a/.github/ISSUE_TEMPLATE/project-propposal.md +++ b/.github/ISSUE_TEMPLATE/project-propposal.md @@ -9,11 +9,13 @@ assignees: '' ### Summary -1-3 sentence summary of project +1-3 sentence summary of project. -## Potential Mentors +See Background. -- @reece +## Value + +Why is this project meaningful? ## Required and Desired Skills @@ -25,5 +27,8 @@ assignees: '' - **Headline**. Description... - **Headline**. Description... -## Background and Additional Information +## Potential Mentors + +- @reece +## Background From 2283031057e7a66c7470393390f7b70d89d0f6b4 Mon Sep 17 00:00:00 2001 From: Reece Hart Date: Tue, 30 Jan 2024 20:47:58 -0800 Subject: [PATCH 11/30] use shared github actions workflow for stale --- .github/workflows/stale.yml | 25 +++---------------------- 1 file changed, 3 insertions(+), 22 deletions(-) diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 17bac5d..6066479 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -3,28 +3,9 @@ name: 'Close stale issues and PRs' on: schedule: - - cron: '1 1 * * *' + - cron: '/1 * * * *' + # - cron: '1 1 * * *' jobs: stale: - runs-on: ubuntu-latest - steps: - - uses: actions/stale@v8 - with: - exempt-all-milestones: true - exempt-issue-labels: bug,keep-alive - exempt-pr-labels: bug,keep-alive - - days-before-issue-close: 7 - days-before-issue-stale: 90 - stale-issue-label: stale - stale-issue-message: 'This issue is stale because it has been open 90 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.' - - days-before-pr-close: 7 - days-before-pr-stale: 30 - 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.' + uses: biocmmons/actions/.github/workflows/stale.yml@main From 42f0aebb6fea184bd8e443206dc0a9dbb8c9673b Mon Sep 17 00:00:00 2001 From: Reece Hart Date: Tue, 30 Jan 2024 20:49:02 -0800 Subject: [PATCH 12/30] fix cron string --- .github/workflows/stale.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 6066479..2967737 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -3,7 +3,7 @@ name: 'Close stale issues and PRs' on: schedule: - - cron: '/1 * * * *' + - cron: '*/1 * * * *' # - cron: '1 1 * * *' jobs: From 11979112aaeab3fafbdce3bd6c302b2bf03052c6 Mon Sep 17 00:00:00 2001 From: Reece Hart Date: Tue, 30 Jan 2024 20:52:31 -0800 Subject: [PATCH 13/30] fix cron string --- .github/workflows/stale.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 2967737..29b6718 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -3,7 +3,7 @@ name: 'Close stale issues and PRs' on: schedule: - - cron: '*/1 * * * *' + - cron: '* * * * *' # - cron: '1 1 * * *' jobs: From 0d4ba7b70b17e76e51ce7067955684d0900f8492 Mon Sep 17 00:00:00 2001 From: Reece Hart Date: Tue, 30 Jan 2024 20:59:25 -0800 Subject: [PATCH 14/30] fix spelling of used workflow --- .github/workflows/stale.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 29b6718..b1481fe 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -8,4 +8,4 @@ on: jobs: stale: - uses: biocmmons/actions/.github/workflows/stale.yml@main + uses: biocommons/actions/.github/workflows/stale.yml@main From 6f8873b4a700a9ab5fda3ccc4e4be92348e9ee8e Mon Sep 17 00:00:00 2001 From: Reece Hart Date: Tue, 30 Jan 2024 21:15:53 -0800 Subject: [PATCH 15/30] add workflow_dispatch to stale workflow, and revert to running nightly (UTC) --- .github/workflows/stale.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index b1481fe..0829446 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -2,9 +2,9 @@ name: 'Close stale issues and PRs' on: + workflow_dispatch: schedule: - - cron: '* * * * *' - # - cron: '1 1 * * *' + - cron: '1 1 * * *' jobs: stale: From 7c29f5042fbd8d3d485727e876fc908a94cacf0f Mon Sep 17 00:00:00 2001 From: Reece Hart Date: Tue, 30 Jan 2024 21:35:18 -0800 Subject: [PATCH 16/30] fix typo --- .../ISSUE_TEMPLATE/{project-propposal.md => project-proposal.md} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/ISSUE_TEMPLATE/{project-propposal.md => project-proposal.md} (100%) diff --git a/.github/ISSUE_TEMPLATE/project-propposal.md b/.github/ISSUE_TEMPLATE/project-proposal.md similarity index 100% rename from .github/ISSUE_TEMPLATE/project-propposal.md rename to .github/ISSUE_TEMPLATE/project-proposal.md From d4bc87e32f0f7814d3e73d47f593b7425ec1a595 Mon Sep 17 00:00:00 2001 From: Reece Hart Date: Tue, 30 Jan 2024 21:37:10 -0800 Subject: [PATCH 17/30] kebab case template filenames --- .github/ISSUE_TEMPLATE/{bug_report.md => bug-report.md} | 0 .github/ISSUE_TEMPLATE/{feature_request.md => feature-request.md} | 0 2 files changed, 0 insertions(+), 0 deletions(-) rename .github/ISSUE_TEMPLATE/{bug_report.md => bug-report.md} (100%) rename .github/ISSUE_TEMPLATE/{feature_request.md => feature-request.md} (100%) diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug-report.md similarity index 100% rename from .github/ISSUE_TEMPLATE/bug_report.md rename to .github/ISSUE_TEMPLATE/bug-report.md diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature-request.md similarity index 100% rename from .github/ISSUE_TEMPLATE/feature_request.md rename to .github/ISSUE_TEMPLATE/feature-request.md From 215f08aa95d860d6a2277a066f55d0a9afa6b3e5 Mon Sep 17 00:00:00 2001 From: Reece Hart Date: Tue, 30 Jan 2024 21:58:38 -0800 Subject: [PATCH 18/30] update labels.yml config --- .github/labels.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/labels.yml b/.github/labels.yml index f67e6ae..5d14504 100644 --- a/.github/labels.yml +++ b/.github/labels.yml @@ -31,6 +31,10 @@ description: "exempt issue from staleness checks" from_name: "keep alive" +- name: "project proposal" + color: "d876e3" + description: "project proposal for interns and GSoC students" + - name: "question" color: "d876e3" description: "Further information is requested" From 3c1840e3b0226f7bb25d5057479dec0668e7c495 Mon Sep 17 00:00:00 2001 From: Reece Hart Date: Tue, 30 Jan 2024 22:00:43 -0800 Subject: [PATCH 19/30] use clearer name for labeler action --- .github/workflows/labels.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/labels.yml b/.github/workflows/labels.yml index 40d0f44..8bdad11 100644 --- a/.github/workflows/labels.yml +++ b/.github/workflows/labels.yml @@ -1,4 +1,4 @@ -name: github +name: Synchronize labels on: push: From 4022f385648cd8b83b3fbd868cb0b1d4beac5648 Mon Sep 17 00:00:00 2001 From: Reece Hart Date: Wed, 31 Jan 2024 17:41:05 -0800 Subject: [PATCH 20/30] move ISSUE_TEMPLATE aside for testing --- .github/{ISSUE_TEMPLATE => ISSUE_TEMPLATE2}/bug-report.md | 0 .github/{ISSUE_TEMPLATE => ISSUE_TEMPLATE2}/feature-request.md | 0 .github/{ISSUE_TEMPLATE => ISSUE_TEMPLATE2}/project-proposal.md | 0 3 files changed, 0 insertions(+), 0 deletions(-) rename .github/{ISSUE_TEMPLATE => ISSUE_TEMPLATE2}/bug-report.md (100%) rename .github/{ISSUE_TEMPLATE => ISSUE_TEMPLATE2}/feature-request.md (100%) rename .github/{ISSUE_TEMPLATE => ISSUE_TEMPLATE2}/project-proposal.md (100%) diff --git a/.github/ISSUE_TEMPLATE/bug-report.md b/.github/ISSUE_TEMPLATE2/bug-report.md similarity index 100% rename from .github/ISSUE_TEMPLATE/bug-report.md rename to .github/ISSUE_TEMPLATE2/bug-report.md diff --git a/.github/ISSUE_TEMPLATE/feature-request.md b/.github/ISSUE_TEMPLATE2/feature-request.md similarity index 100% rename from .github/ISSUE_TEMPLATE/feature-request.md rename to .github/ISSUE_TEMPLATE2/feature-request.md diff --git a/.github/ISSUE_TEMPLATE/project-proposal.md b/.github/ISSUE_TEMPLATE2/project-proposal.md similarity index 100% rename from .github/ISSUE_TEMPLATE/project-proposal.md rename to .github/ISSUE_TEMPLATE2/project-proposal.md From e03b0a6d47e74e92cc683ef160d4f23b0aba71b9 Mon Sep 17 00:00:00 2001 From: Reece Hart Date: Wed, 31 Jan 2024 19:05:36 -0800 Subject: [PATCH 21/30] remove .github/ISSUE_TEMPLATE (in order to use templates in .github repo instead) --- .github/ISSUE_TEMPLATE2/bug-report.md | 24 --------------- .github/ISSUE_TEMPLATE2/feature-request.md | 20 ------------ .github/ISSUE_TEMPLATE2/project-proposal.md | 34 --------------------- 3 files changed, 78 deletions(-) delete mode 100644 .github/ISSUE_TEMPLATE2/bug-report.md delete mode 100644 .github/ISSUE_TEMPLATE2/feature-request.md delete mode 100644 .github/ISSUE_TEMPLATE2/project-proposal.md diff --git a/.github/ISSUE_TEMPLATE2/bug-report.md b/.github/ISSUE_TEMPLATE2/bug-report.md deleted file mode 100644 index 7451498..0000000 --- a/.github/ISSUE_TEMPLATE2/bug-report.md +++ /dev/null @@ -1,24 +0,0 @@ ---- -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_TEMPLATE2/feature-request.md b/.github/ISSUE_TEMPLATE2/feature-request.md deleted file mode 100644 index bbcbbe7..0000000 --- a/.github/ISSUE_TEMPLATE2/feature-request.md +++ /dev/null @@ -1,20 +0,0 @@ ---- -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/ISSUE_TEMPLATE2/project-proposal.md b/.github/ISSUE_TEMPLATE2/project-proposal.md deleted file mode 100644 index 01cb99d..0000000 --- a/.github/ISSUE_TEMPLATE2/project-proposal.md +++ /dev/null @@ -1,34 +0,0 @@ ---- -name: Project Proposal -about: Create a proposal for an intern or GSoC project -title: 'Project: ...' -labels: 'project' -assignees: '' - ---- - -### Summary - -1-3 sentence summary of project. - -See Background. - -## Value - -Why is this project meaningful? - -## Required and Desired Skills - -- Python -- Relational database design, SQL - -## Expected Outcomes - -- **Headline**. Description... -- **Headline**. Description... - -## Potential Mentors - -- @reece - -## Background From c7f5f38991014e42c4ca232c1a98a0c76d66c54d Mon Sep 17 00:00:00 2001 From: Reece Hart Date: Wed, 31 Jan 2024 19:40:49 -0800 Subject: [PATCH 22/30] migrate to endbug/label-sync --- .github/labels.yml | 59 ------------------------------------ .github/workflows/labels.yml | 31 ++++++++++++------- 2 files changed, 20 insertions(+), 70 deletions(-) delete mode 100644 .github/labels.yml diff --git a/.github/labels.yml b/.github/labels.yml deleted file mode 100644 index 5d14504..0000000 --- a/.github/labels.yml +++ /dev/null @@ -1,59 +0,0 @@ -- 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: "project proposal" - color: "d876e3" - description: "project proposal for interns and GSoC students" - -- 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 index 8bdad11..ede07bb 100644 --- a/.github/workflows/labels.yml +++ b/.github/workflows/labels.yml @@ -1,6 +1,7 @@ -name: Synchronize labels - +name: Sync labels on: + workflow_dispatch: + workflow_call: push: branches: - 'main' @@ -8,16 +9,24 @@ on: - '.github/labels.yml' - '.github/workflows/labels.yml' +permissions: + issues: write + jobs: - labeler: + labels: runs-on: ubuntu-latest + steps: - - - name: Checkout - uses: actions/checkout@v3 - - - name: Run Labeler - uses: crazy-max/ghaction-github-labeler@v4 + - uses: actions/checkout@v4 with: - github-token: ${{ secrets.GITHUB_TOKEN }} - yaml-file: .github/labels.yml + sparse-checkout: .github/labels.yml + + - uses: EndBug/label-sync@v2 + with: + config-file: | + https://raw.githubusercontent.com/biocommons/.github/main/.github/labels.yml + .github/labels.yml + + delete-other-labels: false + dry-run: true + #token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file From 0e77191d87f9cc0eb7c19526a8b7ff301196dc81 Mon Sep 17 00:00:00 2001 From: Reece Hart Date: Wed, 31 Jan 2024 20:03:31 -0800 Subject: [PATCH 23/30] migrate to endbug/label-sync, add empty labels.yml --- .github/workflows/labels.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/labels.yml b/.github/workflows/labels.yml index ede07bb..a22328a 100644 --- a/.github/workflows/labels.yml +++ b/.github/workflows/labels.yml @@ -24,9 +24,7 @@ jobs: - uses: EndBug/label-sync@v2 with: config-file: | - https://raw.githubusercontent.com/biocommons/.github/main/.github/labels.yml + https://raw.githubusercontent.com/biocommons/.github/main/etc/labels.yml .github/labels.yml - delete-other-labels: false - dry-run: true - #token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + delete-other-labels: false \ No newline at end of file From 46d631338286fb42ee01d2eab73f4aba6799f4f2 Mon Sep 17 00:00:00 2001 From: Reece Hart Date: Wed, 31 Jan 2024 20:04:25 -0800 Subject: [PATCH 24/30] migrate to endbug/label-sync, really add empty labels.yml :-/ --- .github/labels.yml | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .github/labels.yml diff --git a/.github/labels.yml b/.github/labels.yml new file mode 100644 index 0000000..070fda8 --- /dev/null +++ b/.github/labels.yml @@ -0,0 +1,3 @@ +# file must contain an array, which may be empty + +[] From 4063bee2391dd73bc93a666b7a2b3f51ce41c7ae Mon Sep 17 00:00:00 2001 From: Reece Hart Date: Wed, 31 Jan 2024 21:02:11 -0800 Subject: [PATCH 25/30] test local labels --- .github/labels.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/labels.yml b/.github/labels.yml index 070fda8..39c37d1 100644 --- a/.github/labels.yml +++ b/.github/labels.yml @@ -1,3 +1,5 @@ # file must contain an array, which may be empty -[] +- name: flubber + description: a test + color: '#012345' From b9b1abde24f57c1a42831b836968259d7b644064 Mon Sep 17 00:00:00 2001 From: Reece Hart Date: Wed, 31 Jan 2024 21:17:34 -0800 Subject: [PATCH 26/30] Revert "test local labels" This reverts commit 4063bee2391dd73bc93a666b7a2b3f51ce41c7ae. --- .github/labels.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/labels.yml b/.github/labels.yml index 39c37d1..070fda8 100644 --- a/.github/labels.yml +++ b/.github/labels.yml @@ -1,5 +1,3 @@ # file must contain an array, which may be empty -- name: flubber - description: a test - color: '#012345' +[] From bfb59ce2d5e03d86d7aca884cf6543efffd3a505 Mon Sep 17 00:00:00 2001 From: Reece Hart Date: Wed, 31 Jan 2024 21:19:35 -0800 Subject: [PATCH 27/30] enable deleting unknown labels in label-sync --- .github/workflows/labels.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/labels.yml b/.github/workflows/labels.yml index a22328a..7c7bf74 100644 --- a/.github/workflows/labels.yml +++ b/.github/workflows/labels.yml @@ -27,4 +27,4 @@ jobs: https://raw.githubusercontent.com/biocommons/.github/main/etc/labels.yml .github/labels.yml - delete-other-labels: false \ No newline at end of file + # delete-other-labels: false \ No newline at end of file From 813fb0af921fab25b5a63e1d53058490185ca2e2 Mon Sep 17 00:00:00 2001 From: Reece Hart Date: Mon, 12 Feb 2024 20:12:07 -0800 Subject: [PATCH 28/30] use stale action from .github repo --- .github/workflows/stale.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 0829446..375f67e 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -8,4 +8,4 @@ on: jobs: stale: - uses: biocommons/actions/.github/workflows/stale.yml@main + uses: biocommons/.github/actions/stale.yml@main From 41f571960faf4bf4b7bff66c542b0b7d9ad4258e Mon Sep 17 00:00:00 2001 From: Reece Hart Date: Mon, 12 Feb 2024 21:00:11 -0800 Subject: [PATCH 29/30] update stale action to use .github/workflows from worfklow-template --- .github/workflows/stale.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 375f67e..d7a6cd4 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -8,4 +8,4 @@ on: jobs: stale: - uses: biocommons/.github/actions/stale.yml@main + uses: biocommons/.github/.github/workflows/stale.yml@main From 4814cd73d1b1a416578ca320077f94fcf5a28e6d Mon Sep 17 00:00:00 2001 From: Reece Hart Date: Mon, 12 Feb 2024 21:26:50 -0800 Subject: [PATCH 30/30] updated labels workflow --- .github/workflows/labels.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/labels.yml b/.github/workflows/labels.yml index 7c7bf74..52c578c 100644 --- a/.github/workflows/labels.yml +++ b/.github/workflows/labels.yml @@ -1,7 +1,6 @@ name: Sync labels on: workflow_dispatch: - workflow_call: push: branches: - 'main' @@ -27,4 +26,4 @@ jobs: https://raw.githubusercontent.com/biocommons/.github/main/etc/labels.yml .github/labels.yml - # delete-other-labels: false \ No newline at end of file + delete-other-labels: false \ No newline at end of file