Skip to content

Commit

Permalink
Merge pull request #505 from SiaFoundation/nate/add-changelog-generation
Browse files Browse the repository at this point in the history
Automate changelog
  • Loading branch information
n8maninger authored Nov 18, 2024
2 parents 20e3fb8 + bc248c4 commit e0d4db1
Show file tree
Hide file tree
Showing 4 changed files with 96 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/automate_changelog_generation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
default: patch
---

# Automate changelog generation
26 changes: 26 additions & 0 deletions .github/workflows/prepare-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
on:
push:
branches: [master]

permissions:
contents: write
pull-requests: write

name: Create Release PR
jobs:
prepare-release:
if: "!contains(github.event.head_commit.message, 'chore: prepare release')" # Skip merges from releases
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
fetch-depth: 0
- name: Configure Git
run: |
git config --global user.name GitHub Actions
git config user.email [email protected]
- uses: knope-dev/action@407e9ef7c272d2dd53a4e71e39a7839e29933c48
- run: knope prepare-release --verbose
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
continue-on-error: true
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
## 1.1.2

### Breaking changes
* Max collateral no longer auto-calculates and is visible in "Basic" pricing mode (https://github.com/SiaFoundation/hostd/pull/421)

### Features
* Migrated sectors are included in volume writes (https://github.com/SiaFoundation/hostd/pull/395)
* Timeout was increased when writing large merkle proofs for slow connections (https://github.com/SiaFoundation/hostd/pull/408)

### Fixed
* Fixed an error when renters attempted to trim a large number of sectors from a contract https://github.com/SiaFoundation/hostd/pull/410
* Fixed the calculation for unconfirmed transactions (https://github.com/SiaFoundation/hostd/pull/415)
* Fixed an issue where transaction information would not show when clicking a transaction in the wallet (https://github.com/SiaFoundation/hostd/pull/416)
* `hostd` will no longer crash on startup if the explorer is unavailable or misconfigured (https://github.com/SiaFoundation/hostd/pull/430)
51 changes: 51 additions & 0 deletions knope.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
[package]
changelog = "CHANGELOG.md"

[[workflows]]
name = "document-change"

[[workflows.steps]]
type = "CreateChangeFile"

[[workflows]]
name = "prepare-release"

[[workflows.steps]]
type = "Command"
command = "git switch -c release"

[[workflows.steps]]
type = "PrepareRelease"

[[workflows.steps]]
type = "Command"
command = "git commit -m \"chore: prepare release $version\""

[[workflows.steps]]
type = "Command"
command = "git push --force --set-upstream origin release"

[workflows.steps.variables]
"$version" = "Version"

[[workflows.steps]]
type = "CreatePullRequest"
base = "main"

[workflows.steps.title]
template = "chore: prepare release $version"
variables = { "$version" = "Version" }

[workflows.steps.body]
template = "This PR was created automatically. Merging it will finalize the changelog for $version\n\n$changelog"
variables = { "$changelog" = "ChangelogEntry", "$version" = "Version" }

[[workflows]]
name = "release"

[[workflows.steps]]
type = "Release"

[github]
owner = "SiaFoundation"
repo = "hostd"

0 comments on commit e0d4db1

Please sign in to comment.