Uh oh!
There was an error while loading. Please reload this page.
chore: add knope release workflow - #41
Conversation
Code Review Completed! 🔥The code review was successfully completed based on your current configurations. Kody Guide: Usage and ConfigurationInteracting with Kody
Current Kody ConfigurationReview OptionsThe following review options are enabled or disabled:
|
e9b4832 to
43363caCompare| version: 0.21.7 | ||
| - name: Create Release | ||
| run: knope release --verbose |
There was a problem hiding this comment.
The manual knope release --verbose run fails outright when there are no release-worthy Conventional Commits since the last tag, because knope's PrepareRelease defaults to allow_empty=false and this repo has no .changeset/ directory. A workflow_dispatch release after only chore/docs/cosmetic commits (this very change is a chore: PR) aborts the job instead of reporting 'nothing to release', and the operator cannot force a version without a manual conflict-free path. Either add a [workflows.release] config that sets allow_empty = true (or uses changesets), or document that operators must pass knope release --override-version vX.Y.Z when bumping from a clean/chore-only commit range.
run: knope release --verbose --override-version v0.4.0 # or add allow_empty=true / changesets workflow in knope.tomlPrompt for LLM
File .github/workflows/release.yml:
Line 30:
The manual `knope release --verbose` run fails outright when there are no release-worthy Conventional Commits since the last tag, because knope's PrepareRelease defaults to allow_empty=false and this repo has no `.changeset/` directory. A workflow_dispatch release after only chore/docs/cosmetic commits (this very change is a `chore:` PR) aborts the job instead of reporting 'nothing to release', and the operator cannot force a version without a manual conflict-free path. Either add a `[workflows.release]` config that sets `allow_empty = true` (or uses changesets), or document that operators must pass `knope release --override-version vX.Y.Z` when bumping from a clean/chore-only commit range.
Suggested Code:
run: knope release --verbose --override-version v0.4.0 # or add allow_empty=true / changesets workflow in knope.toml
Talk to Kody by mentioning @kody
Was this suggestion helpful? React with 👍 or 👎 to help Kody learn from this interaction.
| [package] | ||
| versioned_files = ["go.mod"] | ||
| changelog = "CHANGELOG.md" |
There was a problem hiding this comment.
knope.toml declares changelog = "CHANGELOG.md", but no CHANGELOG.md exists anywhere in the repo. Knope's release/prepare steps update an existing changelog file, so with the file absent the changelog update has no target and the new automated release can fail or silently skip changelog generation, breaking the release workflow it was created to automate. Add an empty CHANGELOG.md (e.g. a # Changelog header) to the repository before running knope, and/or run knope release --dry-run first to confirm behavior.
# Commit an empty CHANGELOG.md to the repo first, e.g.:# # Changelog
[package]
versioned_files = ["go.mod"]
changelog = "CHANGELOG.md"Prompt for LLM
File knope.toml:
Line 1 to 3:
knope.toml declares `changelog = "CHANGELOG.md"`, but no CHANGELOG.md exists anywhere in the repo. Knope's release/prepare steps update an existing changelog file, so with the file absent the changelog update has no target and the new automated release can fail or silently skip changelog generation, breaking the release workflow it was created to automate. Add an empty `CHANGELOG.md` (e.g. a `# Changelog` header) to the repository before running knope, and/or run `knope release --dry-run` first to confirm behavior.
Suggested Code:
# Commit an empty CHANGELOG.md to the repo first, e.g.:
# # Changelog
[package]
versioned_files = ["go.mod"]
changelog = "CHANGELOG.md"
Talk to Kody by mentioning @kody
Was this suggestion helpful? React with 👍 or 👎 to help Kody learn from this interaction.
Code Coverage ReportTotal Coverage: 88.8% Generated from commit: b406ae0 |
Uh oh!
There was an error while loading. Please reload this page.
Adds knope release automation mirroring the ipfs-sdk/portal-sdk setup: a manual Release workflow that bumps the versioned go.mod and opens a GitHub release.
Matches local Go CI; tags the go.mod module line at v0.3.18 and commits go.sum for reproducible builds.
Summary
This pull request adds an automated release workflow for the repository using Knope, a release automation tool.
Changes
New Files Added
.github/workflows/release.yml- A GitHub Actions workflow that:knope.toml- A Knope configuration file that:go.modfilesCHANGELOG.mdLumeWeb/queryutilPurpose
This change introduces an automated release process that will handle version bumps, changelog generation, and GitHub releases when triggered, streamlining the release management workflow for the project.