Skip to content

Commit ae0e1d4

Browse files
Clarify Fixes line is optional, scope ISSUE_URL lookup to milestone
1 parent 120bc13 commit ae0e1d4

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

AGENTS.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,11 @@ All tests must pass and no new warnings should be introduced — the suite is co
9999

100100
Open pull requests against `main` on GitHub (`SINTEF/ci-cd`) using the `gh` CLI:
101101

102-
If the PR addresses an issue, include `Fixes #<number>` at the top of the description so GitHub closes the issue automatically on merge.
102+
If the PR addresses an issue, include `Fixes #<number>` at the top of the description so GitHub closes the issue automatically on merge. If there is no associated issue, delete that line.
103103

104104
```bash
105105
gh pr create --title "<title>" --base main --reviewer "@copilot" --body "$(cat <<'EOF'
106-
Fixes #<number>.
106+
Fixes #<number>. <!-- delete this line if there is no associated issue -->
107107
108108
<description>
109109
@@ -319,7 +319,7 @@ If the release workflow fails after the release has been published:
319319
3. **Update the release summary issue** if the fix introduced changes that should be reflected in the summary (e.g. new PRs merged as part of the fix). Reopen the issue, update the body preserving any existing sections, and close it again. `$ISSUE_URL` refers to the release summary issue created in step 3 of the normal release process — if it is no longer in scope, redefine `$ISSUE_URL`:
320320

321321
```bash
322-
ISSUE_URL=$(gh issue list --label release-summary --state closed --limit 1 --json url --jq '.[0].url')
322+
ISSUE_URL=$(gh issue list --label release-summary --milestone "v<version>" --state closed --limit 1 --json url --jq '.[0].url')
323323
```
324324

325325
Then reopen, write the updated body to a temp file (preserving existing sections), and close:

0 commit comments

Comments
 (0)