Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add stale workflow #195

Merged
merged 1 commit into from
Dec 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@
"loglevel",
"lycheeignore",
"markdownlint",
"markstale",
"materialx",
"megalinter",
"minipass",
Expand Down Expand Up @@ -164,6 +165,7 @@
"typedarray",
"universalify",
"unparser",
"unstale",
"updateable",
"vscodeignore",
"vsix",
Expand Down
46 changes: 46 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
---
###############################
###############################
## StaleBot for MegaLinter ##
###############################
###############################
name: "Stale[bot]"
on:
schedule:
# every day at 0:00 UTC
- cron: "0 0 * * *"
issue_comment:
types: [created, deleted, edited]

permissions: read-all

###############
# Run the job #
###############
jobs:
#######################
# Mark an Issue Stale #
#######################
markstale:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
# only run on schedule
if: github.event_name == 'schedule'
steps:
- name: Mark issue stale
uses: actions/stale@v8
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: "This issue has been automatically marked as stale because it has not had recent activity.\nIt will be closed in 14 days if no further activity occurs.\nThank you for your contributions.\n\nIf you think this issue should stay open, please remove the `O: stale 🤖` label or comment on the issue."
stale-pr-message: "This pull request has been automatically marked as stale because it has not had recent activity.\nIt will be closed in 14 days if no further activity occurs.\nThank you for your contributions.\n\nIf you think this pull request should stay open, please remove the `O: stale 🤖` label or comment on the pull request."
days-before-stale: 30
days-before-close: 14
stale-issue-label: "O: stale 🤖"
exempt-issue-labels: "O: backlog 🤖"
stale-pr-label: "O: stale 🤖"
exempt-pr-labels: "O: backlog 🤖"
labels-to-remove-when-unstale: "O: stale 🤖"
remove-issue-stale-when-updated: true
remove-pr-stale-when-updated: true
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## [Unreleased]

- Fix doc deployment
- Add stale workflow

## [3.0.0] 2023-12-17

Expand Down
Loading