Skip to content
This repository was archived by the owner on Nov 30, 2021. It is now read-only.

Commit

Permalink
actions: stale bot (#415)
Browse files Browse the repository at this point in the history
* actions: stale bot

* filter diff on build

* fix

* more fixes
  • Loading branch information
fedekunze authored Jul 28, 2020
1 parent 30353ce commit 0dc45bc
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: technote-space/get-diff-action@v1
id: git_diff
with:
SUFFIX_FILTER: |
.go
.mod
.sum
- run: |
make build
if: "env.GIT_DIFF != ''"
22 changes: 22 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: "Close stale issues & pull requests"
on:
schedule:
- cron: "0 0 * * *"

jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-pr-message: "This pull request has been automatically marked as stale because it has not had
recent activity. It will be closed in 7 days-before-close if no further activity occurs. Thank you
for your contributions."
stale-issue-message: "This issue 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."
days-before-stale: 21
days-before-close: 7
exempt-issue-labels: "Status: On Ice, Status: Blocked, Type: Bug, Type: Security, Type: Meta-Issue, Type: Enhancement, Epic"
exempt-pr-labels: "Status: On Ice, Status: Blocked, Type: Bug, Type: Security, Type: Meta-Issue, Type: Enhancement, Epic"
stale-pr-label: "stale"
stale-issue-label: "stale"

0 comments on commit 0dc45bc

Please sign in to comment.