mirror of
https://github.com/Lissy93/dashy.git
synced 2024-12-01 12:42:13 +03:00
🕋 Updates workflows for closing bad issues
This commit is contained in:
parent
84fd542f5c
commit
5f6b53b2ae
21
.github/workflows/close-incomplete-issues.yml
vendored
Normal file
21
.github/workflows/close-incomplete-issues.yml
vendored
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
# Close any issue that does not match any of the issue templates
|
||||||
|
name: Close Non-Compliant Issues
|
||||||
|
on:
|
||||||
|
issues:
|
||||||
|
types: [opened, edited]
|
||||||
|
jobs:
|
||||||
|
auto_close_issues:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v1
|
||||||
|
- name: Automatically close issues that don't follow the issue template
|
||||||
|
uses: lucasbento/auto-close-issues@v1.0.2
|
||||||
|
with:
|
||||||
|
github-token: ${{ secrets.BOT_GITHUB_TOKEN }}
|
||||||
|
closed-issues-label: '🙁 Auto-Closed'
|
||||||
|
issue-close-message: |
|
||||||
|
Hello @${issue.user.login} 👋
|
||||||
|
Unfortunately your issue does not follow the format outlined in the template, and has therefore been auto-closed.
|
||||||
|
To ensure that all relevant info is included, please either update or recreate your issue, and complete the sub-headings provided.
|
||||||
|
Thank you :)
|
29
.github/workflows/close-stale-issues.yml
vendored
Normal file
29
.github/workflows/close-stale-issues.yml
vendored
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
# Closes any issues that no longer have user interaction
|
||||||
|
name: 'Close stale issues and PRs'
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
schedule:
|
||||||
|
- cron: '0 1 * * *' # Run at 01:00 each day
|
||||||
|
jobs:
|
||||||
|
stale:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/stale@v4
|
||||||
|
with:
|
||||||
|
repo-token: ${{ secrets.BOT_GITHUB_TOKEN }}
|
||||||
|
days-before-stale: 42
|
||||||
|
days-before-close: 5
|
||||||
|
operations-per-run: 30
|
||||||
|
remove-stale-when-updated: true
|
||||||
|
enable-statistics: true
|
||||||
|
stale-issue-message: 'This issue has gone 6 weeks without an update. To keep the ticket open, please indicate that it is still relevant in a comment below. Otherwise it will be closed in 5 working days.'
|
||||||
|
stale-pr-message: 'This PR is stale because it has been open 6 weeks with no activity. Either remove the stale label or comment below with a short update, otherwise this PR will be closed in 5 days.'
|
||||||
|
close-issue-message: 'This issue was automatically closed because it has been stalled for over 6 weeks with no activity.'
|
||||||
|
close-pr-message: 'This pull request was automatically closed because it has been stalled for over 6 weeks with no activity.'
|
||||||
|
stale-issue-label: '⚰️ Stale'
|
||||||
|
close-issue-label: '🕸️ Inactive'
|
||||||
|
stale-pr-label: '⚰️ Stale'
|
||||||
|
close-pr-label: '🕸️ Inactive'
|
||||||
|
exempt-issue-labels: '📌 Keep Open'
|
||||||
|
exempt-pr-labels: '📌 Keep Open'
|
||||||
|
labels-to-add-when-unstale: '📌 Keep Open'
|
1
.github/workflows/issue-spam-control.yml
vendored
1
.github/workflows/issue-spam-control.yml
vendored
@ -1,5 +1,6 @@
|
|||||||
# Will add a comment and close new issues opened by users that may be spam, or have not starred
|
# Will add a comment and close new issues opened by users that may be spam, or have not starred
|
||||||
# Is still a work in progress, will also detect if user has previous activity in repo and check when joined GH
|
# Is still a work in progress, will also detect if user has previous activity in repo and check when joined GH
|
||||||
|
name: Issue Spam Control
|
||||||
on:
|
on:
|
||||||
issues:
|
issues:
|
||||||
types: [opened, reopened]
|
types: [opened, reopened]
|
||||||
|
Loading…
Reference in New Issue
Block a user