Skip to content

Commit 6ddb985

Browse files
committed
Address comments
1 parent d220307 commit 6ddb985

3 files changed

Lines changed: 9 additions & 8 deletions

File tree

.github/agents/issue-manager.agent.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ The members of the `microsoft/azure-storage-explorer` GitHub team can be
2525
fetched with:
2626

2727
```
28-
gh api /orgs/microsoft/teams/azure-storage-explorer/members --jq '.[].login'
28+
gh api --paginate /orgs/microsoft/teams/azure-storage-explorer/members --jq '.[].login'
2929
```
3030

3131
Always fetch fresh membership at the start of a task — do not hardcode logins.

.github/skills/stale-issue-cleanup/SKILL.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ An issue is stale when ALL of the following are true:
3131
Run this command to get the list of Storage Explorer team member logins:
3232

3333
```
34-
gh api /orgs/microsoft/teams/azure-storage-explorer/members --jq '.[].login'
34+
gh api --paginate /orgs/microsoft/teams/azure-storage-explorer/members --jq '.[].login'
3535
```
3636

3737
Store these logins for comparison throughout the process.
@@ -50,7 +50,7 @@ gh api graphql -f query='
5050
title
5151
updatedAt
5252
issueType { name }
53-
labels(first: 10) {
53+
labels(first: 50) {
5454
nodes { name }
5555
}
5656
comments(last: 1) {

.github/workflows/stale-issue-cleanup.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,21 @@
11
name: Stale Issue Cleanup
22

33
# Authentication:
4-
# This workflow requires a token with issues:write and read:org scopes.
4+
# This workflow requires a token with the following scopes:
5+
# - issues:write (to comment on and close issues)
6+
# - read:org (to read team membership)
7+
# - read:project and project (to update the Resolution project field)
58
# For experimentation, use a PAT stored as STALE_ISSUES_TOKEN repo secret.
69
# For production, replace with a GitHub App token to avoid manual renewal:
710
# - Register one "Storage Explorer Automation" GitHub App in the microsoft org
8-
# - Grant it issues:write and members:read permissions
11+
# - Grant it issues:write, members:read, and projects:write permissions
912
# - Install it on this repo (and any other repos your agents need)
1013
# - Use actions/create-github-app-token to generate tokens at runtime
1114
# - One app can serve all agent workflows
1215

1316
on:
1417
schedule:
15-
# Every other Monday at 9:00 AM UTC (biweekly)
16-
- cron: '0 9 1,15 * *'
18+
- cron: "0 9 1,15 * *" # Twice monthly
1719
workflow_dispatch: # Allow manual triggers
1820

1921
permissions:
@@ -39,7 +41,6 @@ jobs:
3941
agency copilot \
4042
--agent issue-manager \
4143
--prompt "Find and close stale bug issues." \
42-
--allow-all-tools \
4344
--share stale-cleanup-log.md
4445
4546
- name: Upload session log

0 commit comments

Comments
 (0)