-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Validate kinds match config in fragment when batching release notes (#…
…711) * Add changie fragment checks in CI
- Loading branch information
1 parent
49bf31d
commit fcad6bc
Showing
6 changed files
with
59 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
kind: fixed | ||
body: Validate kinds match config in fragment when batching release notes | ||
time: 2024-09-08T00:46:31.38990871-07:00 | ||
custom: | ||
Issue: "688" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
When creating changie fragments as part of your team workflow, you may have | ||
suggestions or comments about the kind, body or custom fields that are | ||
changed outside of the changie tool. | ||
As changie fragments are plain yaml files there is nothing wrong with editing | ||
these after creating the fragment. | ||
However, it is possible to create invalid fragments when doing so, | ||
one such example is if you typo a kind or invalid custom prompt answer. | ||
|
||
One way to prevent this issue from causing later problems is to run | ||
changie as part of your CI tests. | ||
|
||
This currently does not validate custom prompts meet validation rules such as min length. | ||
This is likely to be extended in the future. | ||
|
||
Below is an example if you are using the github action. | ||
|
||
```yaml | ||
- name: Validate changie fragment is valid | ||
uses: miniscruff/changie-action@VERSION # view action repo for latest version | ||
with: | ||
version: latest # use the latest changie version | ||
# dry run may not be required as you likely aren't | ||
# committing the changes anyway, but it will print | ||
# to stdout this way | ||
args: batch major --dry-run | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters