Skip to content

Commit

Permalink
Add action to lock issues/PR. (#1508)
Browse files Browse the repository at this point in the history
  • Loading branch information
janiversen committed Apr 21, 2023
1 parent 7a4c609 commit 759b222
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 59 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/lock.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: 'Lock Threads'

on:
push:
branches:
- dev
- master
tags:
- v*
pull_request:
branches:
- dev
schedule:
# Every night at 02:20 UTC.
- cron: '20 2 * * *'
workflow_dispatch:

permissions:
issues: write
pull-requests: write

concurrency:
group: lock

jobs:
action:
runs-on: ubuntu-latest
steps:
- uses: dessant/lock-threads@v4
with:
github-token: ${{ github.token }}
issue-inactive-days: '10'
pr-inactive-days: '10'
27 changes: 0 additions & 27 deletions .github/workflows/publish1.yml.NO_RUN

This file was deleted.

27 changes: 0 additions & 27 deletions .github/workflows/publish2.yml.NO_RUN

This file was deleted.

7 changes: 2 additions & 5 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,11 @@ name: Mark stale issues and pull requests
on:
schedule:
- cron: "30 1 * * *"
workflow_dispatch:

jobs:
stale:

runs-on: ubuntu-latest

steps:
- uses: actions/stale@v3
with:
Expand All @@ -22,8 +21,6 @@ jobs:
days-before-issue-close: 5
days-before-pr-close: 10
stale-issue-label: 'no-issue-activity'
exempt-issue-labels: 'Bug,Enhancements,Investigating,in progress,Documentation Update Required,3.x'
exempt-issue-labels: 'Bug,Enhancements,Investigating'
stale-pr-label: 'no-pr-activity'
exempt-pr-labels: 'IN REVIEW,Reviewing,Draft,in progress,3.x,2.5.0'
remove-stale-when-updated: true
# only-labels: "More Information Required, Not an Issue, question, Won't Do"

0 comments on commit 759b222

Please sign in to comment.