You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit a5893d4
Browse filesBrowse the repository at this point in the historyBrowse files
Require GitHub Issues to be enabled before installing Squad Agentic Workflows, and fail closed when the authenticated user cannot update the repository setting.
Copy file name to clipboardExpand all lines: .squad-templates/skills/gh-aw-enlistment/SKILL.md
+56-5Lines changed: 56 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,8 +7,8 @@ source: "Operationalized from the authoritative Squad gh-aw guide (docs/src/cont
7
7
triggers: [set up Squad agentic workflows, enlist this repo in Squad, enlist my repository in Squad, install Squad gh-aw workflows, install Squad agentic workflows, add Squad gh aw workflows, bootstrap Squad in this repo, onboard this repo to Squad, set up /squad slash commands, gh aw add squad]
# 2. Require GitHub Issues, then allow GitHub Actions to create pull requests
37
+
issues_enabled="$(gh api "repos/${owner_repo}" --jq '.has_issues')"
38
+
if [ "${issues_enabled}"!="true" ];then
39
+
echo"GitHub Issues are disabled; enabling them before workflow installation."
40
+
if! gh api --method PATCH "repos/${owner_repo}" \
41
+
-F has_issues=true --silent;then
42
+
echo"STOP: GitHub Issues are disabled and could not be enabled.">&2
43
+
echo"A repository administrator must enable Settings > General > Features > Issues, then rerun this quick start.">&2
44
+
exit 1
45
+
fi
46
+
fi
47
+
48
+
test"$(gh api "repos/${owner_repo}" --jq '.has_issues')" = "true"|| {
49
+
echo"STOP: GitHub Issues must be enabled before installing Squad workflows.">&2
50
+
exit 1
51
+
}
52
+
37
53
gh api --method PUT "repos/${owner_repo}/actions/permissions/workflow" \
38
54
-f default_workflow_permissions=read \
39
55
-F can_approve_pull_request_reviews=true
@@ -104,6 +120,15 @@ contains the complete seven-workflow set. For a repeatable upgrade, pin all
104
120
seven entries to one reviewed commit as described in
105
121
[Upgrading the workflows](#upgrading-the-workflows).
106
122
123
+
Step 2 deliberately checks Issues before creating the bootstrap branch or
124
+
installing any workflow. Squad commands are issue comments, and the merged
125
+
bootstrap creates a research/proposals issue; without Issues, the installation
126
+
PR could merge but the bootstrap journey could not complete. Reading
127
+
`.has_issues` is safe for normal repository access. Enabling it through
128
+
`PATCH /repos/{owner}/{repo}` requires repository administration permission. If
129
+
that update fails, stop before installation and ask an administrator to enable
130
+
**Settings → General → Features → Issues**, then rerun the quick start.
131
+
107
132
> Step 7 stages `.github/skills/` because `gh aw add` installs the Squad skills
108
133
> alongside the workflows, and it deliberately does not stage `.github/aw/logs/`.
109
134
> Downloaded workflow logs are local diagnostic output — see [ignoring downloaded
@@ -136,13 +161,43 @@ issues exist.
136
161
| Requirement | Details |
137
162
|-------------|---------|
138
163
| GitHub repo with Copilot | Copilot must be enabled for the repository |
164
+
| GitHub Issues | Required for `/squad` issue comments and the bootstrap research/proposals issue; a repository administrator must be available to enable Issues if they are disabled |
139
165
|`gh` CLI |[Install the GitHub CLI](https://cli.github.com/) and authenticate with `gh auth login`|
issues_enabled="$(gh api "repos/${owner_repo}" --jq '.has_issues')"
181
+
182
+
if [ "${issues_enabled}"!="true" ];then
183
+
if! gh api --method PATCH "repos/${owner_repo}" \
184
+
-F has_issues=true --silent;then
185
+
echo"STOP: A repository administrator must enable Settings > General > Features > Issues.">&2
186
+
exit 1
187
+
fi
188
+
fi
189
+
190
+
test"$(gh api "repos/${owner_repo}" --jq '.has_issues')" = "true"|| {
191
+
echo"STOP: GitHub Issues must be enabled before installing Squad workflows.">&2
192
+
exit 1
193
+
}
194
+
```
195
+
196
+
The GET is non-mutating, and the conditional PATCH makes this safe to rerun.
197
+
Changing `has_issues` requires repository administration permission. If the
198
+
PATCH fails, do not continue to `gh aw add`: have an administrator enable Issues
199
+
in repository settings, then rerun the supported quick start.
200
+
146
201
### Allow workflow-created pull requests
147
202
148
203
Squad opens pull requests through GitHub Actions. Enable this repository setting
@@ -384,6 +439,7 @@ Use this checklist for the initial bootstrap and after any workflow update:
384
439
385
440
| Stage | Action | Expected evidence |
386
441
|-------|--------|-------------------|
442
+
| Repository readiness | Confirm `.has_issues` is `true`; if it is `false`, enable it before installing workflows | GitHub Issues are available for `/squad` comments and the bootstrap research/proposals issue; insufficient administration permission stops the install before a bootstrap PR is created |
387
443
| Install | Run the seven-workflow `gh aw add` command on a bootstrap branch | All seven `.md`/`.lock.yml` pairs exist, with shared imports, `.github/aw/`, installed skills, and `.gitattributes` included in the diff |
388
444
| Compile | Review any first-install safe-update report, approve only the documented entries, then run `gh aw compile --strict` without approval | All seven workflows succeed, only documented warnings remain, and all fourteen source/lock files exist |
389
445
| Bootstrap review | Open the PR, request `@copilot`, wait for checks, and merge only after human approval | The default branch receives the complete generated install as one human-reviewable change |
Copy file name to clipboardExpand all lines: packages/squad-cli/templates/skills/gh-aw-enlistment/SKILL.md
+56-5Lines changed: 56 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,8 +7,8 @@ source: "Operationalized from the authoritative Squad gh-aw guide (docs/src/cont
7
7
triggers: [set up Squad agentic workflows, enlist this repo in Squad, enlist my repository in Squad, install Squad gh-aw workflows, install Squad agentic workflows, add Squad gh aw workflows, bootstrap Squad in this repo, onboard this repo to Squad, set up /squad slash commands, gh aw add squad]
0 commit comments