standard-release / app

Language independent GitHub App for creating GitHub Releases, following the Conventional Commits and SemVer specifications
https://github.com/apps/standard-release
Apache License 2.0
13 stars 2 forks source link

Support release template to link updated dependencies #15

Open tunnckoCore opened 6 years ago

tunnckoCore commented 6 years ago

Renovate has commit patter, on which we can parse and get the updated dependency and replace it with a link [@tunnckocore/pretty-config](link-to-resolved-homepage-of-that-package).

Should parse the locals.commit.subject to get the name update dependency <packageName> to

https://github.com/tunnckoCore/new-release-app/blob/c3d078798ba2bfb32a50b094188cfcb16f5fe7f7/src/index.js#L199-L203

let subject = locals.commit.subject
subject = subject.replace(/update dependency (.*) to/, 'https://ghub.io/$1')

locals.commit.subject = subject

image