Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate to the Locker GitHub action for locking closed/stale issues/PRs #2182

Merged
merged 1 commit into from
Dec 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
95 changes: 0 additions & 95 deletions .github/fabricbot.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,101 +87,6 @@
]
}
},
{
"taskType": "scheduled",
"capabilityId": "ScheduledSearch",
"subCapability": "ScheduledSearch",
"version": "1.1",
"config": {
"frequency": [
{
"weekDay": 0,
"hours": [
3,
15
],
"timezoneOffset": 2
},
{
"weekDay": 1,
"hours": [
3,
15
],
"timezoneOffset": 2
},
{
"weekDay": 2,
"hours": [
3,
15
],
"timezoneOffset": 2
},
{
"weekDay": 3,
"hours": [
3,
15
],
"timezoneOffset": 2
},
{
"weekDay": 4,
"hours": [
3,
15
],
"timezoneOffset": 2
},
{
"weekDay": 5,
"hours": [
3,
15
],
"timezoneOffset": 2
},
{
"weekDay": 6,
"hours": [
3,
15
],
"timezoneOffset": 2
}
],
"searchTerms": [
{
"name": "isClosed",
"parameters": {}
},
{
"name": "noActivitySince",
"parameters": {
"days": 30
}
},
{
"name": "isUnlocked",
"parameters": {}
},
{
"name": "isIssue",
"parameters": {}
}
],
"taskName": "Lock issues closed without activity for over 30 days",
"actions": [
{
"name": "lockIssue",
"parameters": {
"reason": "resolved"
}
}
]
}
},
{
"taskType": "trigger",
"capabilityId": "PrAutoLabel",
Expand Down
36 changes: 36 additions & 0 deletions .github/workflows/locker.yml
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) }}