Skip to content

Commit bb86aa1

Browse files
committed
Migrate to the 'locker' GitHub action for locking closed/stale issues/PRs
1 parent d96d7b7 commit bb86aa1

File tree

2 files changed

+36
-107
lines changed

2 files changed

+36
-107
lines changed

.github/fabricbot.json

-107
Original file line numberDiff line numberDiff line change
@@ -1466,112 +1466,5 @@
14661466
}
14671467
]
14681468
}
1469-
},
1470-
{
1471-
"taskSource": "fabricbot-config",
1472-
"taskType": "scheduled",
1473-
"capabilityId": "ScheduledSearch",
1474-
"subCapability": "ScheduledSearch",
1475-
"version": "1.1",
1476-
"config": {
1477-
"taskName": "Lock stale issues and PRs",
1478-
"actions": [
1479-
{
1480-
"name": "lockIssue",
1481-
"parameters": {
1482-
"reason": "resolved",
1483-
"label": "will_lock_this"
1484-
}
1485-
}
1486-
],
1487-
"frequency": [
1488-
{
1489-
"weekDay": 0,
1490-
"hours": [
1491-
1,
1492-
7,
1493-
13,
1494-
19
1495-
],
1496-
"timezoneOffset": 0
1497-
},
1498-
{
1499-
"weekDay": 1,
1500-
"hours": [
1501-
1,
1502-
7,
1503-
13,
1504-
19
1505-
],
1506-
"timezoneOffset": 0
1507-
},
1508-
{
1509-
"weekDay": 2,
1510-
"hours": [
1511-
1,
1512-
7,
1513-
13,
1514-
19
1515-
],
1516-
"timezoneOffset": 0
1517-
},
1518-
{
1519-
"weekDay": 3,
1520-
"hours": [
1521-
1,
1522-
7,
1523-
13,
1524-
19
1525-
],
1526-
"timezoneOffset": 0
1527-
},
1528-
{
1529-
"weekDay": 4,
1530-
"hours": [
1531-
1,
1532-
7,
1533-
13,
1534-
19
1535-
],
1536-
"timezoneOffset": 0
1537-
},
1538-
{
1539-
"weekDay": 5,
1540-
"hours": [
1541-
1,
1542-
7,
1543-
13,
1544-
19
1545-
],
1546-
"timezoneOffset": 0
1547-
},
1548-
{
1549-
"weekDay": 6,
1550-
"hours": [
1551-
1,
1552-
7,
1553-
13,
1554-
19
1555-
],
1556-
"timezoneOffset": 0
1557-
}
1558-
],
1559-
"searchTerms": [
1560-
{
1561-
"name": "isClosed",
1562-
"parameters": {}
1563-
},
1564-
{
1565-
"name": "noActivitySince",
1566-
"parameters": {
1567-
"days": 30
1568-
}
1569-
},
1570-
{
1571-
"name": "isUnlocked",
1572-
"parameters": {}
1573-
}
1574-
]
1575-
}
15761469
}
15771470
]

.github/workflows/locker.yml

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Locker - Lock stale issues and PRs
2+
on:
3+
schedule:
4+
- cron: '0 9 * * *' # Once per day, early morning PT
5+
6+
workflow_dispatch:
7+
# Manual triggering through the GitHub UI, API, or CLI
8+
inputs:
9+
daysSinceClose:
10+
required: true
11+
default: "30"
12+
daysSinceUpdate:
13+
required: true
14+
default: "30"
15+
16+
permissions:
17+
issues: write
18+
pull-requests: write
19+
20+
jobs:
21+
main:
22+
runs-on: ubuntu-latest
23+
steps:
24+
- name: Checkout Actions
25+
uses: actions/checkout@v4
26+
with:
27+
repository: "microsoft/vscode-github-triage-actions"
28+
path: ./actions
29+
ref: cd16cd2aad6ba2da74bb6c6f7293adddd579a90e
30+
- name: Install Actions
31+
run: npm install --production --prefix ./actions
32+
- name: Run Locker
33+
uses: ./actions/locker
34+
with:
35+
daysSinceClose: ${{ fromJson(inputs.daysSinceClose || 30) }}
36+
daysSinceUpdate: ${{ fromJson(inputs.daysSinceUpdate || 30) }}

0 commit comments

Comments
 (0)