Skip to content

Commit

Permalink
Merge pull request #22 from voxpupuli/doc_metadata_update
Browse files Browse the repository at this point in the history
doc: add how to update a metadata.json, also update general example config
  • Loading branch information
rwaffen authored Sep 25, 2024
2 parents 910e05a + dd40097 commit 35d2055
Showing 1 changed file with 29 additions and 4 deletions.
33 changes: 29 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,9 @@ plugins:
groupBy: 'type'
commitGroupsSort: 'title'
commitsSort: 'header'
linkCompare: true
linkReferences: true
parserOpts:
# detect JIRA issues in merge commits
issuePrefixes: ['SUP', 'BUG', 'FEATURE']
mergePattern: "^Merge branch '(.*)' into (.*)$"
mergeCorrespondence: ['branch_src', 'branch_dst']
noteKeywords: ["BREAKING CHANGE", "BREAKING CHANGES", "BREAKING"]
presetConfig:
issueUrlFormat: "https://jira.example.com/browse/{{prefix}}{{id}}"
Expand All @@ -73,13 +69,42 @@ plugins:
- { type: 'test', section: '🚥 Tests' }

- path: '@semantic-release/changelog'
changelogFile: 'CHANGELOG.md'

- path: '@semantic-release/git'
assets:
- 'CHANGELOG.md'

verifyConditions:
- '@semantic-release/changelog'
- '@semantic-release/git'
```
### Update metadata.json of a Puppet module
This refers to the example config from above...
```yaml
plugins:
#...
- path: 'semantic-release-replace-plugin'
replacements:
- files: ['metadata.json']
from: "\"version\": \".*\""
to: "\"version\": \"${nextRelease.version}\""
countMatches: true
results:
- file: 'metadata.json'
hasChanged: true
numMatches: 1
numReplacements: 1
#...
- path: '@semantic-release/git'
assets:
# ...
- 'metadata.json'
```
### Gitlab
This is a example to use this container in Gitlab.
Expand Down

0 comments on commit 35d2055

Please sign in to comment.