Attempts to add links to the original changelogs for dependency bumps in changelog.yaml.
The link is computed automatically when the dependency name is a full route, like github.com/org/package
, or it's got from a dictionary file when present.
Example with a dictionary:
- name: Link dependencies
uses: newrelic/release-toolkit/link-dependencies@v1
with:
dictionary: .github/dictionary.yaml
Dictionary file:
dictionary:
common-library: "https://github.com/newrelic/helm-charts/releases/tag/common-library-{{.To}}"
golangci-lint: "https://github.com/golangci/golangci-lint/releases/tag/{{.To.Original}}"
Notice that the implementation for {{.To}} uses dep.To.ToString that removes the leading v if present. That is ideal since it allow us to write down a rule no matter if the version comes as vx.y.z or x.y.z.
All parameters are optional and match the ones used for the cli command flag, you can see the values and the defaults in here)
Standard policy and procedure across the New Relic GitHub organization.
New Relic has open-sourced this project. This project is provided AS-IS WITHOUT WARRANTY OR DEDICATED SUPPORT. Issues and contributions should be reported to the project here on GitHub.
We encourage you to bring your experiences and questions to the Explorers Hub where our community members collaborate on solutions and new ideas.
release-toolkit is licensed under the Apache 2.0 License.
This tool is provided by New Relic AS IS, without warranty of any kind. New Relic does not guarantee that the tool will: not cause any disruption to services or systems; provide results that are complete or 100% accurate; correct or cure any detected vulnerability; or provide specific remediation advice.