Skip to content

Commit

Permalink
Revert "Stop GitHub Actions from closing tickets"
Browse files Browse the repository at this point in the history
This reverts commit d005002.

Signed-off-by: Takuro Ashie <[email protected]>
  • Loading branch information
ashie committed Mar 29, 2023
1 parent 206b46b commit 8941f92
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/issue-auto-closer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Autocloser
on: [issues]
jobs:
autoclose:
runs-on: ubuntu-latest
steps:
- name: Autoclose issues that did not follow issue template
uses: roots/[email protected]
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
issue-close-message: "@${issue.user.login} this issue was automatically closed because it did not follow the issue template"
issue-pattern: "(.*Describe the bug.*)|(.*Is your feature request related to a problem.*)"
22 changes: 22 additions & 0 deletions .github/workflows/stale-actions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: "Mark or close stale issues and PRs"
on:
schedule:
- cron: "00 10 * * *"

jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
days-before-stale: 90
days-before-close: 30
stale-issue-message: "This issue has been automatically marked as stale because it has been open 90 days with no activity. Remove stale label or comment or this issue will be closed in 30 days"
stale-pr-message: "This PR has been automatically marked as stale because it has been open 90 days with no activity. Remove stale label or comment or this PR will be closed in 30 days"
close-issue-message: "This issue was automatically closed because of stale in 30 days"
close-pr-message: "This PR was automatically closed because of stale in 30 days"
stale-pr-label: "stale"
stale-issue-label: "stale"
exempt-issue-labels: "bug,enhancement,feature request,pending,work_in_progress,v1,v2"
exempt-pr-labels: "bug,enhancement,feature request,pending,work_in_progress,v1,v2"

0 comments on commit 8941f92

Please sign in to comment.