mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
bb69483e77
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.
15 lines
746 B
TypeScript
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)}`;
|
|
}
|