From ef06a62d88fa69205e039d2aa60ca4a7f486fce2 Mon Sep 17 00:00:00 2001 From: James Stevenson Date: Thu, 11 Jul 2024 09:19:47 -0400 Subject: [PATCH 1/3] chore(python): update issue template requirements --- .../.github/ISSUE_TEMPLATE/bug-report.yaml | 2 +- .../.github/ISSUE_TEMPLATE/feature-request.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/python/{{cookiecutter.project_slug}}/.github/ISSUE_TEMPLATE/bug-report.yaml b/python/{{cookiecutter.project_slug}}/.github/ISSUE_TEMPLATE/bug-report.yaml index 858602f..5b3f7c8 100644 --- a/python/{{cookiecutter.project_slug}}/.github/ISSUE_TEMPLATE/bug-report.yaml +++ b/python/{{cookiecutter.project_slug}}/.github/ISSUE_TEMPLATE/bug-report.yaml @@ -82,4 +82,4 @@ body: - "Yes, but I can only provide ideas and feedback." - "No, I cannot contribute." validations: - required: true + required: false diff --git a/python/{{cookiecutter.project_slug}}/.github/ISSUE_TEMPLATE/feature-request.yaml b/python/{{cookiecutter.project_slug}}/.github/ISSUE_TEMPLATE/feature-request.yaml index 521cd0b..2e1ae64 100644 --- a/python/{{cookiecutter.project_slug}}/.github/ISSUE_TEMPLATE/feature-request.yaml +++ b/python/{{cookiecutter.project_slug}}/.github/ISSUE_TEMPLATE/feature-request.yaml @@ -57,4 +57,4 @@ body: - "Yes, but I can only provide ideas and feedback." - "No, I cannot contribute." validations: - required: true + required: false From 3d8fe1d435dfc11b664b64464ad999274dff9491 Mon Sep 17 00:00:00 2001 From: James Stevenson Date: Thu, 11 Jul 2024 09:30:09 -0400 Subject: [PATCH 2/3] update stale --- .github/workflows/stale.yml | 6 +-- .../.github/workflows/reusable-stale.yaml | 46 ------------------- 2 files changed, 3 insertions(+), 49 deletions(-) delete mode 100644 python/{{cookiecutter.project_slug}}/.github/workflows/reusable-stale.yaml diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 47682f2..6a7b133 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -6,21 +6,21 @@ on: jobs: stale-high-priority: - uses: ./.github/workflows/reusable-stale.yaml + uses: genomicmedlab/software-templates/.github/workflows/reusable-stale.yaml with: days-before-issue-stale: 90 days-before-pr-stale: 1 labels: priority:high stale-medium-priority: - uses: ./.github/workflows/reusable-stale.yaml + uses: genomicmedlab/software-templates/.github/workflows/reusable-stale.yaml with: days-before-issue-stale: 135 days-before-pr-stale: 3 labels: priority:medium stale-low-priority: - uses: ./.github/workflows/reusable-stale.yaml + uses: genomicmedlab/software-templates/.github/workflows/reusable-stale.yaml with: days-before-issue-stale: 180 days-before-pr-stale: 7 diff --git a/python/{{cookiecutter.project_slug}}/.github/workflows/reusable-stale.yaml b/python/{{cookiecutter.project_slug}}/.github/workflows/reusable-stale.yaml deleted file mode 100644 index b249f01..0000000 --- a/python/{{cookiecutter.project_slug}}/.github/workflows/reusable-stale.yaml +++ /dev/null @@ -1,46 +0,0 @@ -name: Reusable Stalebot Workflow - -on: - workflow_call: - inputs: - days-before-close: - default: 14 - type: number - days-before-issue-stale: - required: true - type: number - days-before-pr-stale: - required: true - type: number - exempt-labels: - default: stale-exempt - description: Comma-separated list of labels to exclude from stalebot - type: string - labels: - default: "" - description: Comma-separated list of labels to apply to stalebot - type: string - -jobs: - stale: - runs-on: ubuntu-latest - steps: - - name: Mark issues and PRs as stale - uses: actions/stale@v9 - with: - only-labels: {{ "${{ inputs.labels }}" }} - exempt-issue-labels: {{ "${{ inputs.exempt-labels }}" }} - exempt-pr-labels: {{ "${{ inputs.exempt-labels }}" }} - remove-stale-when-updated: true - days-before-close: {{ "${{ inputs.days-before-close }}" }} - - days-before-issue-stale: {{ "${{ inputs.days-before-issue-stale }}" }} - stale-issue-label: stale - stale-issue-message: This issue is stale because it has been open {{ "${{ inputs.days-before-issue-stale }}" }} days with no activity. This issue will be closed if no further activity occurs in {{ "${{ inputs.days-before-close }}" }} days. - close-issue-label: closed-by-stale - close-issue-message: This issue was closed because it has been stalled for {{ "${{ inputs.days-before-close }}" }} days with no activity. - - days-before-pr-stale: {{ "${{ inputs.days-before-pr-stale }}" }} - stale-pr-label: stale - stale-pr-message: This PR is stale because it has been open {{ "${{ inputs.days-before-pr-stale }}" }} day(s) with no activity. Please review this PR. - days-before-pr-close: -1 From f0830d548366ad85728128b36acfd8a2bc26f0d0 Mon Sep 17 00:00:00 2001 From: Kori Kuzma Date: Mon, 15 Jul 2024 13:56:31 -0400 Subject: [PATCH 3/3] fix(cicd): add reference to stalebot --- .github/workflows/stale.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 6a7b133..66bb861 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -6,21 +6,21 @@ on: jobs: stale-high-priority: - uses: genomicmedlab/software-templates/.github/workflows/reusable-stale.yaml + uses: genomicmedlab/software-templates/.github/workflows/reusable-stale.yaml@main with: days-before-issue-stale: 90 days-before-pr-stale: 1 labels: priority:high stale-medium-priority: - uses: genomicmedlab/software-templates/.github/workflows/reusable-stale.yaml + uses: genomicmedlab/software-templates/.github/workflows/reusable-stale.yaml@main with: days-before-issue-stale: 135 days-before-pr-stale: 3 labels: priority:medium stale-low-priority: - uses: genomicmedlab/software-templates/.github/workflows/reusable-stale.yaml + uses: genomicmedlab/software-templates/.github/workflows/reusable-stale.yaml@main with: days-before-issue-stale: 180 days-before-pr-stale: 7