GeezerVison is showing github.com — chore(release): require notes for stable releases and remove old chan… · ogrman/opencode@c45aae7
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: .github/release/plan-release.sh +5-1Lines changed: 5 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
|
3 | 3 | # (INPUT_BUMP, INPUT_VERSION) only, and writes them to $GITHUB_OUTPUT. Nothing here reads repository files. |
4 | 4 | # |
5 | 5 | # push or dispatch on dev -> dev 0.0.0-dev-<run> npm tag dev, desktop |
6 | | -# dispatch on dev with bump/version -> latest x.y.z npm tag latest, releasers only |
| 6 | +# dispatch on dev with bump/version -> latest x.y.z npm tag latest, releasers only, notes required |
7 | 7 | # push or dispatch on beta -> beta 0.0.0-beta-<run> desktop only |
8 | 8 | # pull_request -> pr 0.0.0-pr-<run> everything, dry run |
9 | 9 | # |
@@ -20,6 +20,10 @@ case "$GITHUB_EVENT_NAME:$GITHUB_REF:$versioned" in |
20 | 20 | *) die "$GITHUB_EVENT_NAME on $GITHUB_REF cannot publish (versioned: $versioned)" ;; |
21 | 21 | esac |
22 | 22 |
|
| 23 | +if [ "$channel" = latest ] && [ -z "${INPUT_RELEASE_NOTES//[[:space:]]/}" ]; then |
| 24 | + die "Stable releases need release notes; generate them with ./script/release.ts --print" |
| 25 | +fi |
| 26 | + |
23 | 27 | if [ "$channel" = latest ]; then |
24 | 28 | actor=${GITHUB_TRIGGERING_ACTOR:-${GITHUB_ACTOR:-}} |
25 | 29 | [ -n "$actor" ] || die "Stable releases can only be started by releasers; the triggering actor is unknown" |
|
Collapse file
Copy file name to clipboardExpand all lines: .github/release/publish-discord.sh +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -9,7 +9,7 @@ payload=$(jq -n --arg tag "$tag" --arg notes "${OPENCODE_RELEASE_NOTES:-}" \ |
9 | 9 | ($notes | if length > 4000 then .[:4000] + "\n\n[Full release notes](\($url))" else . end) as $description | |
10 | 10 | { |
11 | 11 | allowed_mentions: {parse: []}, |
12 | | - embeds: [{title: "OpenCode V2 \($tag)", url: $url, color: 2829099} + if $description == "" then {} else {description: $description} end] |
| 12 | + embeds: [{title: "OpenCode V2 \($tag)", url: $url, description: $description, color: 2829099}] |
13 | 13 | }') |
14 | 14 | echo "$payload" | jq . |
15 | 15 | if dry_run; then exit 0; fi |
|
Collapse file
Copy file name to clipboardExpand all lines: .github/workflows/release.yml +2-1Lines changed: 2 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
|
24 | 24 | required: false |
25 | 25 | type: string |
26 | 26 | release_notes: |
27 | | - description: "Reviewed V2 release notes for CHANGELOG.md and the GitHub release (optional)" |
| 27 | + description: "Reviewed V2 release notes for CHANGELOG.md and the GitHub release (required with bump or version)" |
28 | 28 | required: false |
29 | 29 | type: string |
30 | 30 |
|
|
72 | 72 | GH_TOKEN: ${{ github.token }} # reads the triggering actor's repository role for stable releases |
73 | 73 | INPUT_BUMP: ${{ inputs.bump }} |
74 | 74 | INPUT_VERSION: ${{ inputs.version }} |
| 75 | + INPUT_RELEASE_NOTES: ${{ inputs.release_notes }} |
75 | 76 |
|
76 | 77 | # A versioned release builds from a commit with its versions and changelog on the dispatched dev commit, |
77 | 78 | # tagged v<version>. Runs git only. |
|
Collapse file
Copy file name to clipboardExpand all lines: .gitignore -1Lines changed: 0 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
|
31 | 31 |
|
32 | 32 | # Local dev files |
33 | 33 | opencode-dev |
34 | | -UPCOMING_CHANGELOG.md |
35 | 34 | RELEASE_REVIEW.md |
36 | 35 | logs/ |
37 | 36 | *.bun-build |
|
Collapse file
Copy file name to clipboardExpand all lines: .opencode/command/changelog.md -49Lines changed: 0 additions & 49 deletions Collapse file
Copy file name to clipboardExpand all lines: script/changelog.ts -76Lines changed: 0 additions & 76 deletions