PullRequestReleaseNotes.Tool
2.3.5
dotnet tool install --global PullRequestReleaseNotes.Tool --version 2.3.5
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
dotnet tool install --local PullRequestReleaseNotes.Tool --version 2.3.5
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=PullRequestReleaseNotes.Tool&version=2.3.5
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package PullRequestReleaseNotes.Tool --version 2.3.5
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Command Line Parameters
Utility can have command line parameters passed to it or have the parameters supplied via a YAML based config or a mixture of both. Command line parameter will win if the same parameter is also supplied via YAML. You can generate a sample YAML file by passing -init parameter to the utility.
TrieuNK: my fork provide following updates
- Support
-ReleaseBranchVersionTagto filter tag by git branch track name alpha/beta/rtm. - Fix incorrect hightlight rule for
release-note-highlight-labels - Use local git head branch name for release notes title and use format
yyMM<week of month>
You can use --version as a command line parameter to print the version of the PullRequestReleaseNotes application.
-PullRequestProviderName(-prpn) : Default isgithub. Other providers supported aregitlab,tfs,bitbucketandbitbucketserver.-GitHubToken(-ghpt) : Required parameter if PullRequestProviderName isgithub. Can be supplied as parameter orPRRN_GITHUB_TOKENenvironment variable.-GitHubOwner(-gho) : Default is extracted from remote url.-GitHubRepository(-ghr) : Default is extracted from remote url.-GitHubApiUrl(-glau) : Default is https://github.com-GitLabToken(-glpt) : Required parameter if PullRequestProviderName isgitlab. Can be supplied as parameter orPRRN_GITLAB_TOKENenvironment variable.-GitLabOwner(-glo) : Default is extracted from remote url.-GitLabRepository(-glr) : Default is extracted from remote url.-GitLabApiUrl(-glau) : Default is https://gitlab.com-GitLabProjectId(-glpi) : Required parameter if PullRequestProviderName isgitlab. Set it to your GitLab project identifier.-TfsUsername(-tu) : Required parameter if PullRequestProviderName istfs. For Team Services personal tokens use anything, for Team Services alternate credentials and on-premise TFS use the username.-TfsToken(-tpt) : Required parameter if PullRequestProviderName istfs. Can be supplied as parameter orPRRN_TFS_TOKENenvironment variable. For Team Services personal tokens use the token itself and for Team Services alternate credentials and on-premise TFS use the user password.-TfsCollection(-tc) : Default is extracted from remote url.-TfsRepository(-tr) : Default is extracted from remote url.-TfsApiUrl (-tau) : Required parameter if PullRequestProviderName istfs.-BitBucketServerUrl(-bbsu) : Required parameter if PullRequestProviderName isbitbucketserver.-BitBucketServerUsername(-bbsun) : Required parameter if PullRequestProviderName isbitbucketserver.-BitBucketServerPassword(-bbsp) : Required parameter if PullRequestProviderName isbitbucketserver. Can be supplied as parameter orPRRN_BITBUCKETSERVER_PASSWORDenvironment variable.-BitBucketServerProject(-bbspk) : Required parameter if PullRequestProviderName isbitbucketserver.-BitBucketServerRepository(-bbsr) : Required parameter if PullRequestProviderName isbitbucketserver.-BitBucketApiKey(-bbak) : Required parameter if PullRequestProviderName isbitbucket.-BitBucketApiSecret(-bbas) : Required parameter if PullRequestProviderName isbitbucket. Can be supplied as parameter orPRRN_BITBUCKET_SECRETenvironment variable.-BitBucketAccount(-bba) : Required parameter if PullRequestProviderName isbitbucket.-BitBucketRepository(-bbr) : Required parameter if PullRequestProviderName isbitbucket.-GitRemote(-gr) : Default ("origin"). If not found it will search through all remotes.-GitVersion(-gv) : Default ("Unreleased"). Can be supplied as parameter orGITVERSION_MAJORMINORPATCHenvironment variable.-GitTagsAnnotated(-gta) : Default ("false"). Set to "true" to only consider annotated tags as releases.-ReleaseBranchRef(-ghb) : Default is head branch.-ReleaseBranchVersionTag(-gvt) : Track name as git branch SemVersion tag, default isalpha.-ReleaseBranchHeadsOnly(-rbho) : Default is ("true"). When set to true it will only generate notes from any head branch and not pull request branches. When set to false it will generate notes for any branch.-ReleaseNoteSectioned(-rns) : Default ("false"). Set to "true" to enable note sections.-ReleaseNoteSections(-rnsl) : Default ("bug=Fixes,enhancement=Enhancements"). Key value pairs of pull request labels and their descriptions used for note sections.-ReleaseNoteSectionlessDescription(-rnsd) : Default ("Undefined").-ReleaseNoteUncategorisedDescription(-rnud) : Default ("Unclassified").-ReleaseNoteCategorised(-rnc) : Default ("false"). Set to "true" to enable note categorisation.-ReleaseNoteCategories(-rncl) : Example ("CatA=Category A,catB=Category B"). Key value pairs of pull request labels and their descriptions used for note categorisation.-ReleaseNoteCategoryPrefix(-rncp) : Default ("#"). Used to differentiate category labels from section labels.-ReleaseNoteOrderAscending(-rnoa) : Default ("false"). Used to determine the sort order of the release notes.-ReleaseNoteOrderWhen(-rnow) : Default ("merged"). Set to "created" to order release notes based on pull request creation time rather than merge time.-ReleaseNoteFormat(-rnf) : Default ("{0} {1}"). Available fields are {0} pull request title, {1} pull request url, {2} pull request number, {3} pull request created date/time, {4} pull request merged date/time, {5} pull request author username, {6} pull request author URL, {7} pull request documentation URL-ReleaseNoteDateFormat(-rndf) : Default ("MMM dd, yyyy HH:mm"). You can use any .NET standard or custom date and time format strings.-ReleaseNoteHighlightLabels(-rnhl) : Default is (""). Comma-separated list of labels which a pull request WITHOUT will be marked up as code to highlight the item in release notes.'-PublishToConfluence(-ptc) : Default ("false"). Set to "true" for all other Confluence related parameters to become active.-ConfluenceReleaseParentPageId(-cpp) : Confluence parent page identifer. Pulished page will be its child page.-ConfluenceSpaceKey(-csk) : Required parameter ifPublishToConfluenceis true.-ConfluenceUser(-cu) : Required parameter ifPublishToConfluenceis true.-ConfluencePassword(-cp) : This is the Confluence API Token. User passwords are no longer supported on Confluence for API interactions. Required parameter ifPublishToConfluenceis true.-ConfluenceApiUrl(-cau) : Required parameter ifPublishToConfluenceis true.-PublishToSlack(-pts) : Default ("false"). Set to "true" for all other Slack related parameters to become active.-SlackToken(-st) : Required parameter ifPublishToSlackis true. Set to your personal Slack token.-SlackChannels(-cau) : Required parameter ifPublishToSlackis true. Set to a comma-separated list of channel identifiers.-VerboseOutput(-v) : Default ("false"). Set to "true" to output more information about what the utility is doing.-AcceptInvalidCertificates(-aic) : Default ("false"). Set to "true" to help when using Fiddler to debug HTTP responses.-PublishToFile(-ptf) : Default ("false"). Set to "true" to output markdown to a local filename supplied byOutputFileNameparameter.-OutputFileName(-o) : Default ("Unreleased.md").-ExcludeLabel(-el) : Default ("Exclude Note"). Pull request label which once found will cause the entire pull request to be excluded from release notes.-Init(-init) : When provided the utility will generate a samplePullRequestReleaseNotes.ymlfile at the root of the Git repository and not generate any notes.
YAML File Parameters
See Command Line Parameters for details on default values or parameter usage
pull-request-provider-namerelease-note-sectionsrelease-note-sectionless-descriptionrelease-note-uncategorised-descriptionrelease-note-sectionedrelease-note-categorisedrelease-note-categoriesrelease-note-category-prefixrelease-note-order-ascendingrelease-note-order-whenrelease-note-excluderelease-note-date-formatrelease-note-formatrelease-branch-heads-onlyrelease-note-highlight-labelsgit-branch-refgit-branch-version-tag"git-repo-pathgit-remote-namegit-versiongit-tags-annotatedconfluence-publishconfluence-release-parent-page-idconfluence-space-keyconfluence-api-urlconfluence-usernameconfluence-passwordslack-publishslack-tokenslack-channelsverboseaccept-invalid-certificatesfile-publishfile-namegithub-api-urlgithub-tokengithub-ownergithub-repogitlab-tokengitlab-ownergitlab-repogitlab-api-urlgitlab-project-idtfs-api-urltfs-collectiontfs-repositorytfs-usernametfs-tokenbitbucketserver-usernamebitbucketserver-passwordbitbucketserver-urlbitbucketserver-project-keybitbucketserver-repositorybitbucket-api-keybitbucket-api-secretbitbucket-accountbitbucket-repository
Config File Sample
pull-request-provider-name: github | gitlab | tfs | bitbucketserver | bitbucket
release-branch-heads-only: true
release-note-exclude: Exclude Note
release-note-format: "{0} {1}"
release-note-date-format: "MMM dd, yyyy HH:mm"
release-note-sectioned: true
release-note-order-when: merged
release-note-sectionless-description: Undefined
release-note-sections:
- bug=Fixes
- enhancement=Enhancements
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.