Skip to content

Commit 881ea6b

Browse files
chore(deps): update dependency knope to v0.16.1 (#1008)
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [knope](https://knope.tech) ([source](https://togithub.com/knope-dev/knope)) | minor | `0.14.1` -> `0.16.1` | --- ### Release Notes <details> <summary>knope-dev/knope (knope)</summary> ### [`v0.16.1`](https://togithub.com/knope-dev/knope/blob/HEAD/CHANGELOG.md#0161-2024-03-24) [Compare Source](https://togithub.com/knope-dev/knope/compare/v0.16.0...v0.16.1) ##### Features ##### Add `help_text` option to workflows `[[workflows]]` can now have `help_text`: Example: ```toml [[workflows]] name = "release" help_text = "Prepare a release" ``` The message is displayed when running `knope --help`: ```text A command line tool for automating common development tasks Usage: knope [OPTIONS] [COMMAND] Commands: release Prepare a release help Print this message or the help of the given subcommand(s) ... ``` PR [#&#8203;960](https://togithub.com/knope-dev/knope/issues/960) closes issue [#&#8203;959](https://togithub.com/knope-dev/knope/issues/959). Thanks [@&#8203;alex-way](https://togithub.com/alex-way)! ##### Use bullets to describe simple changes The previous changelog & forge release format used headers for the summary of all changes, these entries were hard to follow for simple changes like this: ```markdown ##### Features ##### A feature ##### Another header with no content in between? ``` Now, *simple* changes are described with bullets at the *top* of the section. More complex changes will come after any bullets, using the previous format: ```markdown ##### Features - A simple feature - Another simple feature ##### A complex feature Some details about that feature ``` Right now, a simple change is any change which comes from a conventional commit (whether from the commit summary or from a footer) *or* a changeset with only a header in it. Here are three simple changes: feat: A simple feature Changelog-Note: A note entry ### [`v0.16.0`](https://togithub.com/knope-dev/knope/blob/HEAD/CHANGELOG.md#0160-2024-03-20) [Compare Source](https://togithub.com/knope-dev/knope/compare/v0.15.0...v0.16.0) ##### Breaking Changes ##### Don't delete changesets for prereleases Previously, using `PrepareRelease` to create a prerelease (for example, with `--prerelease-label`) would delete all changesets, just like a full release. This was a bug, but the fix is a breaking change if you were relying on that behavior. ##### Features ##### Add a `shell` variable for `Command` steps You can now add `shell=true` to a `Command` step to run the command in the current shell. This lets you opt in to the pre-0.15.0 behavior. ```toml [[workflows.steps]] type = "Command" command = "echo $AN_ENV_VAR" shell = true ``` ### [`v0.15.0`](https://togithub.com/knope-dev/knope/blob/HEAD/CHANGELOG.md#0150-2024-03-18) [Compare Source](https://togithub.com/knope-dev/knope/compare/v0.14.1...v0.15.0) ##### Breaking Changes ##### Don't run `Command` steps in shell The `Command` step no longer attempts to run the command in a default shell for the detected operating system. This fixes a compatibility issue with Windows. If this change doesn't work for your workflow, please open an issue describing your need so we can fix it. Notably, using `&&` in a command (as was the case for some default workflows) will no longer work. Instead, split this into multiple `Command` steps. PR [#&#8203;919](https://togithub.com/knope-dev/knope/issues/919) closes issue [#&#8203;918](https://togithub.com/knope-dev/knope/issues/918). Thanks for reporting [@&#8203;alex-way](https://togithub.com/alex-way)! </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/openapi-generators/openapi-python-client). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4yNDUuMCIsInVwZGF0ZWRJblZlciI6IjM3LjI2OS4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9--> --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Dylan Anthony <[email protected]>
1 parent 43e0461 commit 881ea6b

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

.github/workflows/preview_release_pr.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
git config user.email [email protected]
1818
- uses: knope-dev/[email protected]
1919
with:
20-
version: 0.14.1
20+
version: 0.16.1
2121
- run: knope prepare-release --verbose
2222
env:
2323
GITHUB_TOKEN: ${{ secrets.PAT }}

.github/workflows/release-dry-run.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ jobs:
1313
- name: Install Knope
1414
uses: knope-dev/[email protected]
1515
with:
16-
version: 0.14.1
16+
version: 0.16.1
1717
- run: knope prepare-release --dry-run

.github/workflows/release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- name: Install Knope
2020
uses: knope-dev/[email protected]
2121
with:
22-
version: 0.14.1
22+
version: 0.16.1
2323
- name: Install Hatchling
2424
run: pip install --upgrade hatchling
2525
- name: Build

knope.toml

+2
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,15 @@ name = "prepare-release"
77

88
[[workflows.steps]]
99
type = "Command"
10+
shell = true
1011
command = "git switch -c release"
1112

1213
[[workflows.steps]]
1314
type = "PrepareRelease"
1415

1516
[[workflows.steps]]
1617
type = "Command"
18+
shell = true
1719
command = "git commit -m \"chore: prepare release $version\" && git push --force --set-upstream origin release"
1820

1921
[workflows.steps.variables]

0 commit comments

Comments
 (0)