| 1 |
When creating changie fragments as part of your team workflow, you may have |
| 2 |
suggestions or comments about the kind, body or custom fields that are |
| 3 |
changed outside of the changie tool. |
| 4 |
As changie fragments are plain yaml files there is nothing wrong with editing |
| 5 |
these after creating the fragment. |
| 6 |
However, it is possible to create invalid fragments when doing so, |
| 7 |
one such example is if you typo a kind or invalid custom prompt answer. |
| 8 |
|
| 9 |
One way to prevent this issue from causing later problems is to run |
| 10 |
changie as part of your CI tests. |
| 11 |
|
| 12 |
This currently does not validate custom prompts meet validation rules such as min length. |
| 13 |
This is likely to be extended in the future. |
| 14 |
|
| 15 |
Below is an example if you are using the github action. |
| 16 |
|
| 17 |
```yaml |
| 18 |
- name: Validate changie fragment is valid |
| 19 |
uses: miniscruff/changie-action@VERSION # view action repo for latest version |
| 20 |
with: |
| 21 |
version: latest # use the latest changie version |
| 22 |
# dry run may not be required as you likely aren't |
| 23 |
# committing the changes anyway, but it will print |
| 24 |
# to stdout this way |
| 25 |
args: batch major --dry-run |
| 26 |
``` |