crambl/dependabot-changelog-writer

Generate a changelog entry from a dependabot PR, then commit and push the changes

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
changelogPath of the changelog relative to the project rootyes./CHANGELOG.md
changelog-entry-patternTemplate string defining how dependency updates are formatted in changelog entries. Uses [dep], [old], [new], [pr-link] as placeholder tokens for dependency name, old version, new version, and pull request link respectively. Tokens must appear in order: [dep], [old], [new]. The [pr-link] token is optional and may be specified at any position. Examples: - Pattern: '[dep]: [old] → [new]' produces 'npm: 1.0 → 1.2' - Pattern: 'Bump `[dep]` from [old] to [new]' produces 'Bump `npm` from 1.0 to 1.2' - Pattern: 'Bump [dep] from [old] to [new] ([pr-link])' produces 'Bump npm from 1.0 to 1.2 ([#1](https://github.com/user/repo/pull/1))' yes`[dep]`: [old] → [new] ([pr-link])
duplicate-entry-strategyStrategy for handling duplicate dependency entries in changelog's unreleased section. When a Dependabot PR updates dependency FOO from B → C, but an unreleased entry already exists for FOO (A → B): 'overwrite': Replace existing entry with combined update (A → C) 'append': Keep existing entry and add new entry (B → C) yesoverwrite
commit-messageThe commit message for the changelog entryyesUpdated changelog with updated dependencies
versionThe version/H2 header to find in the CHANGELOG to add dependabot entries to matches whether or not the version is in brackets e.g. [0.1.0] and 0.1.0 are both valid. if set to 'unreleased' it will match 'unreleased' case-insensitive. yesunreleased
section-headerThe section header to add the changelog entry underyesDependencies
push-changesWhether or not to add, commit, & push the modified changelog. Note: If no changes are made, no commit is made either.yestrue
push-tokenThe GitHub token to use for git push, defaults to workflow tokenyes${{ github.token }}
action-download-tokenThe GitHub token to use for downloading the action, defaults to workflow tokenyes${{ github.token }}

no outputs