Skip to content

Commit

Permalink
Merge pull request #58 from pauby/feat/add-lock-closed
Browse files Browse the repository at this point in the history
  • Loading branch information
AdmiringWorm authored Dec 5, 2024
2 parents 82609b1 + 50c67d1 commit ddabd12
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -139,3 +139,14 @@ group:
chocolatey/docs
chocolatey/chocolatey-ansible
chocolatey/home
- files:
- source: .github/workflows/lock-closed.yml
dest: .github/workflows/lock-closed.yml
replace: true # we want to replace this file to ensure consistent policy across all repositories
repos: |
chocolatey/rhino-licensing
# chocolatey/choco
# chocolatey/ChocolateyGUI
# chocolatey/docs
# chocolatey/chocolatey-ansible
# chocolatey/home
36 changes: 36 additions & 0 deletions .github/workflows/lock-closed.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: "Lock Closed Issues and PRs"

on:
schedule:
- cron: '0 5 * * *'
workflow_dispatch:

permissions:
issues: write
pull-requests: write
discussions: write

concurrency:
group: lock-threads

jobs:
action:
runs-on: ubuntu-latest
steps:
# https://github.com/dessant/lock-threads
- uses: dessant/[email protected]
with:
exclude-issue-closed-before: "2024-06-01T00:00:00Z"
issue-inactive-days: 30
issue-lock-reason: "resolved"
issue-comment: >
This issue has been automatically locked since as there has not been any recent activity after it was closed.
Please open a new issue for related bugs.
pr-inactive-days: 30
exclude-pr-closed-before: "2024-06-01T00:00:00Z"
pr-lock-reason: "resolved"
discussion-inactive-days: 60
pr-comment: >
This pull request has been automatically locked since there has not been any recent activity after it was closed.
Please open a new pull request.
log-output: true

0 comments on commit ddabd12

Please sign in to comment.