-
Notifications
You must be signed in to change notification settings - Fork 0
chore: promote dev → main — add workflow_dispatch to squad-mark-released #129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -63,12 +63,12 @@ jobs: | |
| run: | | ||
| gh issue comment "$ISSUE_NUMBER" --body "✅ **Release flow triggered.** | ||
|
|
||
| - Version bump: \`${BUMP}\` | ||
| - \`squad-milestone-release.yml\` dispatched — this will create the tag, push it, and publish a GitHub Release. | ||
| - \`release-blog.yml\` will fire automatically on release publish and create a \`squad:bilbo\` blog brief. | ||
| - Once Bilbo's PR merges, \`blog-readme-sync.yml\` will update \`README.md\` (the Page). | ||
| - Version bump: \`${BUMP}\` | ||
| - \`squad-milestone-release.yml\` dispatched — this will create the tag, push it, and publish a GitHub Release. | ||
| - \`release-blog.yml\` will fire automatically on release publish and create a \`squad:bilbo\` blog brief. | ||
| - Once Bilbo's PR merges, \`blog-readme-sync.yml\` will update \`README.md\` (the Page). | ||
|
|
||
| Closing this review issue." | ||
| Closing this review issue." | ||
|
Comment on lines
64
to
+71
|
||
|
|
||
| gh issue close "$ISSUE_NUMBER" --reason completed | ||
|
|
||
|
|
@@ -109,25 +109,25 @@ Closing this review issue." | |
| run: | | ||
| BODY="## Blog Post Brief: ${MILESTONE_TITLE} | ||
|
|
||
| Bilbo, Ralph has reviewed the **${MILESTONE_TITLE}** milestone and decided: **blog post only** (no release). | ||
| Bilbo, Ralph has reviewed the **${MILESTONE_TITLE}** milestone and decided: **blog post only** (no release). | ||
|
|
||
| ### Post metadata | ||
| - **Suggested filename:** \`docs/blog/${PUBLISH_DATE}-${SLUG}.md\` | ||
| - **Suggested publish date:** ${PUBLISH_DATE} | ||
| - **Review issue:** ${REVIEW_ISSUE_URL} (see for full issue list) | ||
| ### Post metadata | ||
| - **Suggested filename:** \`docs/blog/${PUBLISH_DATE}-${SLUG}.md\` | ||
| - **Suggested publish date:** ${PUBLISH_DATE} | ||
| - **Review issue:** ${REVIEW_ISSUE_URL} (see for full issue list) | ||
|
|
||
| ### Suggested post structure | ||
| 1. **Summary** — what this milestone accomplished (2–3 sentences) | ||
| 2. **What was built** — key features, fixes, or improvements with context | ||
| 3. **Technical highlights** — architecture decisions, tricky problems solved, patterns introduced | ||
| 4. **What's next** — follow-up work planned | ||
| ### Suggested post structure | ||
| 1. **Summary** — what this milestone accomplished (2–3 sentences) | ||
| 2. **What was built** — key features, fixes, or improvements with context | ||
| 3. **Technical highlights** — architecture decisions, tricky problems solved, patterns introduced | ||
| 4. **What's next** — follow-up work planned | ||
|
|
||
| ### Instructions | ||
| - Write the post to \`docs/blog/${PUBLISH_DATE}-${SLUG}.md\` | ||
| - Update \`docs/blog/index.md\` to add the new post at the top of the Recent Posts table | ||
| - Follow existing post style (see \`docs/blog/2026-04-04-release-v0-7-0.md\`) | ||
| - Open a PR targeting \`main\` when complete | ||
| - Close both this issue and the review issue (#${REVIEW_ISSUE_NUMBER}) in the PR description" | ||
| ### Instructions | ||
| - Write the post to \`docs/blog/${PUBLISH_DATE}-${SLUG}.md\` | ||
| - Update \`docs/blog/index.md\` to add the new post at the top of the Recent Posts table | ||
| - Follow existing post style (see \`docs/blog/2026-04-04-release-v0-7-0.md\`) | ||
| - Open a PR targeting \`main\` when complete | ||
| - Close both this issue and the review issue (#${REVIEW_ISSUE_NUMBER}) in the PR description" | ||
|
Comment on lines
110
to
+130
|
||
|
|
||
| gh issue create \ | ||
| --title "Blog post: ${MILESTONE_TITLE} — milestone recap" \ | ||
|
|
@@ -141,10 +141,10 @@ Bilbo, Ralph has reviewed the **${MILESTONE_TITLE}** milestone and decided: **bl | |
| run: | | ||
| gh issue comment "$ISSUE_NUMBER" --body "📝 **Blog-only path selected.** | ||
|
|
||
| A \`squad:bilbo\` blog brief issue has been created. Once Bilbo's PR merges: | ||
| - \`docs/blog/index.md\` will be updated (the blog page) | ||
| - \`blog-readme-sync.yml\` will update \`README.md\` (the Page) | ||
| A \`squad:bilbo\` blog brief issue has been created. Once Bilbo's PR merges: | ||
| - \`docs/blog/index.md\` will be updated (the blog page) | ||
| - \`blog-readme-sync.yml\` will update \`README.md\` (the Page) | ||
|
|
||
| Closing this review issue." | ||
| Closing this review issue." | ||
|
Comment on lines
142
to
+148
|
||
|
|
||
| gh issue close "$ISSUE_NUMBER" --reason completed | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -46,31 +46,31 @@ jobs: | |
| run: | | ||
| BODY="## Blog Post Brief: ${RELEASE_NAME} | ||
|
|
||
| Bilbo, a new GitHub Release has been published. Please write a dev blog post for **${RELEASE_NAME}**. | ||
| Bilbo, a new GitHub Release has been published. Please write a dev blog post for **${RELEASE_NAME}**. | ||
|
|
||
| ### Post metadata | ||
| - **Suggested filename:** \`docs/blog/${PUBLISH_DATE}-release-${SLUG}.md\` | ||
| - **Suggested publish date:** ${PUBLISH_DATE} | ||
| - **Release:** [${TAG}](${RELEASE_URL}) | ||
| - **Changelog range:** [\`${PREV_TAG}...${TAG}\`](https://github.com/${{ github.repository }}/compare/${PREV_TAG}...${TAG}) | ||
| ### Post metadata | ||
| - **Suggested filename:** \`docs/blog/${PUBLISH_DATE}-release-${SLUG}.md\` | ||
| - **Suggested publish date:** ${PUBLISH_DATE} | ||
| - **Release:** [${TAG}](${RELEASE_URL}) | ||
| - **Changelog range:** [\`${PREV_TAG}...${TAG}\`](https://github.com/${{ github.repository }}/compare/${PREV_TAG}...${TAG}) | ||
|
|
||
| ### Release notes | ||
| $(gh api "repos/${{ github.repository }}/releases/tags/${TAG}" --jq '.body // "No release notes provided."') | ||
| ### Release notes | ||
| $(gh api "repos/${{ github.repository }}/releases/tags/${TAG}" --jq '.body // "No release notes provided."') | ||
|
|
||
| ### Suggested post structure | ||
| 1. **Summary** — what this release delivers in 2–3 sentences | ||
| 2. **What's New** — feature sections with code snippets and context | ||
| 3. **Bug Fixes / Improvements** — notable fixes | ||
| 4. **How to Upgrade** — any steps required (migrations, config changes) | ||
| 5. **Stats** — test counts, coverage numbers, PR count | ||
| 6. **What's Next** — upcoming work | ||
| ### Suggested post structure | ||
| 1. **Summary** — what this release delivers in 2–3 sentences | ||
| 2. **What's New** — feature sections with code snippets and context | ||
| 3. **Bug Fixes / Improvements** — notable fixes | ||
| 4. **How to Upgrade** — any steps required (migrations, config changes) | ||
| 5. **Stats** — test counts, coverage numbers, PR count | ||
| 6. **What's Next** — upcoming work | ||
|
|
||
| ### Instructions | ||
| - Write the post to \`docs/blog/${PUBLISH_DATE}-release-${SLUG}.md\` | ||
| - Update \`docs/blog/index.md\` to add the new post at the top of the Recent Posts table | ||
| - Follow existing post style (see \`docs/blog/2026-04-04-release-v0-7-0.md\`) | ||
| - Open a PR targeting \`main\` when complete | ||
| - Close this issue in the PR description with \`Closes #<this-issue>\`" | ||
| ### Instructions | ||
| - Write the post to \`docs/blog/${PUBLISH_DATE}-release-${SLUG}.md\` | ||
| - Update \`docs/blog/index.md\` to add the new post at the top of the Recent Posts table | ||
| - Follow existing post style (see \`docs/blog/2026-04-04-release-v0-7-0.md\`) | ||
| - Open a PR targeting \`main\` when complete | ||
| - Close this issue in the PR description with \`Closes #<this-issue>\`" | ||
|
Comment on lines
47
to
+73
|
||
|
|
||
| gh issue create \ | ||
| --title "Blog post: ${RELEASE_NAME} — release recap" \ | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,6 +3,7 @@ name: Squad Mark Released | |
| on: | ||
| release: | ||
| types: [published, released] | ||
| workflow_dispatch: {} | ||
|
|
||
| permissions: | ||
| repository-projects: write | ||
|
|
@@ -15,8 +16,8 @@ env: | |
|
|
||
| jobs: | ||
| mark-released: | ||
| # Skip pre-releases (insider builds) and drafts — only real releases move items | ||
| if: ${{ !github.event.release.prerelease && !github.event.release.draft }} | ||
| # Skip pre-releases and drafts on release events; always run on manual dispatch | ||
| if: ${{ github.event_name == 'workflow_dispatch' || (!github.event.release.prerelease && !github.event.release.draft) }} | ||
| runs-on: ubuntu-latest | ||
|
Comment on lines
3
to
21
|
||
|
|
||
| steps: | ||
|
|
@@ -92,4 +93,5 @@ jobs: | |
| } | ||
| } while (cursor); | ||
|
|
||
| core.notice(`🎉 Moved ${moved} item(s) from Done → Released for ${context.payload.release.tag_name}`); | ||
| const tagName = context.payload.release?.tag_name ?? 'manual dispatch'; | ||
| core.notice(`🎉 Moved ${moved} item(s) from Done → Released for ${tagName}`); | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
BODYstring here has leading indentation on almost every line. That whitespace will be preserved in the created issue and will cause Markdown to render large sections as code blocks (headings/tables/lists won’t format as intended). Remove the leading spaces from the BODY content (or use a heredoc with no indent) so the milestone review issue is readable and the checklist table renders properly.