Skip to content

Commit

Permalink
migrate stale action from actions repo
Browse files Browse the repository at this point in the history
  • Loading branch information
reece committed Feb 13, 2024
1 parent 84ebe4c commit ac75415
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 22 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ on:

jobs:
stale:
uses: biocommons/actions/.github/workflows/stale.yml@main
uses: biocommons/.github/actions/stale.yml@main
46 changes: 25 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ This repo contains biocommons-wide configuration and templates.

The contents of this repo are used in various ways by GitHub. Here's a summary:

- actions/ contains GitHub Actions with configuration that is used by biocommons repos.

- .github/ISSUE_TEMPLATE are used by all organization repos directly. Changes to these templates will be available to other organizations repos. NOTE: If repos have their own .github/ISSUE_TEMPLATE directory, these templates will not be available (so don't do that).

- .github/workflows are *templates* available for manual selective incorporation into other repos.
Expand All @@ -16,24 +18,26 @@ The contents of this repo are used in various ways by GitHub. Here's a summary:

---

snafu$ tree */ .github/
docs/
├── CODE_OF_CONDUCT.md
├── CONTRIBUTING.md
├── GOVERNANCE.md
└── SUPPORT.md
etc/
└── labels.yml
profile/
└── README.md
.github/
├── CODEOWNERS
├── ISSUE_TEMPLATE
│   ├── bug-report.md
│   ├── feature-request.md
│   └── project-proposal.md
├── labels.yml
└── workflows
├── labels.yml
├── python-package.yml
└── stale.yml
snafu$ tree */ .github/
actions/
└── stale.yml
docs/
├── CODE_OF_CONDUCT.md
├── CONTRIBUTING.md
├── GOVERNANCE.md
└── SUPPORT.md
etc/
└── labels.yml
profile/
└── README.md
.github/
├── CODEOWNERS
├── ISSUE_TEMPLATE
│   ├── bug-report.md
│   ├── feature-request.md
│   └── project-proposal.md
├── labels.yml
└── workflows
├── labels.yml
├── python-package.yml
└── stale.yml
26 changes: 26 additions & 0 deletions actions/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: 'Close stale issues and PRs'
on: workflow_call

jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v9
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.'

0 comments on commit ac75415

Please sign in to comment.