-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Attempts to save version vars for release stage
Also modifies git_version to use correct branch even with a detached head. git_version will also now set azure pipelines variables when invoked with -set_ci Also simplifies the testing commands. I'm at the point where since I'm customizing nearly every option of dotnetcli@2 test theere's no reason to continue using it - it just obscure the actual command. [WIP] starts work for release notes Work done for #196
- Loading branch information
Showing
13 changed files
with
775 additions
and
105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
dataSource: "issues" | ||
prefix: "v" | ||
onlyMilestones: false | ||
groupBy: "label" | ||
changelogFilename: "CHANGELOG.md" |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
#!/usr/bin/pwsh | ||
|
||
# Create a release message and changelog. | ||
# Assumes a tag has not yet been created. | ||
param( | ||
$tag_name | ||
) | ||
|
||
if ($null -eq (Get-Module PowerShellForGitHub)) { | ||
Install-Module -Name PowerShellForGitHub -Force -Scope CurrentUser | ||
Import-Module PowerShellForGitHub | ||
} | ||
|
||
Set-GitHubConfiguration -DefaultOwnerName QutEcoacoustics -DefaultRepositoryName audio-analysis -SuppressTelemetryReminder | ||
$secureString = ($env:RELEASE_NOTES_GITHUB_TOKEN | ConvertTo-SecureString) | ||
$cred = New-Object System.Management.Automation.PSCredential "username is ignored", $secureString | ||
Set-GitHubAuthentication -Credential $cred | ||
|
||
function script:exec { | ||
[CmdletBinding()] | ||
|
||
param( | ||
[Parameter(Position = 0, Mandatory = 1)][scriptblock]$cmd, | ||
[Parameter(Position = 1, Mandatory = 0)][string]$errorMessage = ("Error executing command: {0}" -f $cmd) | ||
) | ||
& $cmd | ||
if ($lastexitcode -ne 0) { | ||
throw $errorMessage | ||
} | ||
} | ||
|
||
$old_tag_name = exec { git describe --abbrev=0 --always } | ||
#$old_tag_date = exec { git log -1 --format=%ai $old_tag_name } | ||
|
||
|
||
$compare_message = "[Compare $old_tag_name...$tag_name](https://github.com/QutBioacoustics/audio-analysis/compare/$old_tag_name...$tag_name)" | ||
|
||
|
||
|
||
|
||
|
||
# list all issues and PRs | ||
|
||
|
||
|
||
# list all commits | ||
# link author | ||
# cite issues |
Oops, something went wrong.