Skip to content

Commit b5ea366

Browse files
authored
Tweak autopilot workflow (#661)
1 parent 3461373 commit b5ea366

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed
Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
name: Auto-assign Issues to Copilot
1+
name: Autopilot
22

33
on:
44
workflow_dispatch:
55
schedule:
6-
- cron: "0 0 * * 1"
6+
# 17:00 UTC on Monday, Wednesday, and Friday
7+
# 17:00 UTC is (usually) 10:00 PDT
8+
- cron: "0 17 * * 1,3,5"
79

810
permissions:
911
issues: write
@@ -16,7 +18,7 @@ jobs:
1618
uses: actions/checkout@v5
1719
- name: Assign issue to copilot
1820
run: |
19-
issue_number=$(gh issue list --state open --label 'copilot-candidate' --search 'no:assignee' --json number --jq '.[].number' | shuf -n 1)
21+
issue_number=$(gh issue list --state open --label 'autopilot-candidate' --search 'no:assignee' --json number --jq '.[].number' | shuf -n 1)
2022
gh issue edit $issue_number --add-assignee "@copilot"
2123
env:
2224
GH_TOKEN: ${{ secrets.AUTOPILOT_PAT }}

0 commit comments

Comments
 (0)