Files
angular__angular/tools/release/git/github-urls.ts
T
Paul Gschwendtner bb69483e77 build: publish script should should note where to paste changelog (#15218)
Currently we still cannot cut the Github release automatically because
the publish script does not have API access. Though it's sometimes
not quite clear for the caretaker what he needs to do manually. In
the meanwhile we make this _slighty_ more clear by adding a
note that indicates where the release notes should be copy-pasted
to.
2019-02-19 17:34:12 -08:00

15 lines
746 B
TypeScript

/** Gets a Github URL that refers to a lists of recent commits within a specified branch. */
export function getGithubBranchCommitsUrl(owner: string, repository: string, branchName: string) {
return `https://github.com/${owner}/${repository}/commits/${branchName}`;
}
/** Gets a Github URL that can be used to create a new release from a given tag. */
export function getGithubNewReleaseUrl(options: {owner: string, repository: string,
tagName: string, releaseTitle: string, body: string}) {
return `https://github.com/${options.owner}/${options.repository}/releases/new?` +
`tag=${encodeURIComponent(options.tagName)}&` +
`title=${encodeURIComponent(options.releaseTitle)}&` +
`body=${encodeURIComponent(options.body)}`;
}