-
Notifications
You must be signed in to change notification settings - Fork 586
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate to the Locker GitHub action for locking closed/stale issues/P…
…Rs (#2182)
- Loading branch information
1 parent
86f39f6
commit f6c0ed0
Showing
2 changed files
with
36 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Locker - Lock stale issues and PRs | ||
on: | ||
schedule: | ||
- cron: '0 9 * * *' # Once per day, early morning PT | ||
|
||
workflow_dispatch: | ||
# Manual triggering through the GitHub UI, API, or CLI | ||
inputs: | ||
daysSinceClose: | ||
required: true | ||
default: "30" | ||
daysSinceUpdate: | ||
required: true | ||
default: "30" | ||
|
||
permissions: | ||
issues: write | ||
pull-requests: write | ||
|
||
jobs: | ||
main: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Actions | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: "microsoft/vscode-github-triage-actions" | ||
path: ./actions | ||
ref: cd16cd2aad6ba2da74bb6c6f7293adddd579a90e # locker action commit sha | ||
- name: Install Actions | ||
run: npm install --production --prefix ./actions | ||
- name: Run Locker | ||
uses: ./actions/locker | ||
with: | ||
daysSinceClose: ${{ fromJson(inputs.daysSinceClose || 30) }} | ||
daysSinceUpdate: ${{ fromJson(inputs.daysSinceUpdate || 30) }} |