Skip to content
This repository was archived by the owner on Oct 25, 2022. It is now read-only.

Commit c9a3259

Browse files
authored
Merge pull request #228 from nils-a/bugfix/GH-227
replaced the fixed target_commitish of "master"
2 parents d71f3d4 + 108d7e1 commit c9a3259

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

AU/Plugins/GitReleases.ps1

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@ param(
2525
[string]$dateFormat = '{0:yyyy-MM-dd}',
2626

2727
# Force creating a release when a package have been updated and not just been pushed.
28-
[switch]$Force
28+
[switch]$Force,
29+
30+
# The name of the branch, to create the release at
31+
[string]$Branch = 'master'
2932
)
3033

3134
function GetOrCreateRelease() {
@@ -48,7 +51,7 @@ function GetOrCreateRelease() {
4851

4952
$json = @{
5053
"tag_name" = $tagName
51-
"target_commitish" = "master"
54+
"target_commitish" = $Branch
5255
"name" = $releaseName
5356
"body" = $releaseDescription
5457
"draft" = $false

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
- New plugin: Gitlab ([#195](https://github.com/majkinetor/au/pull/195))
1111
- Gist: option for secret gist and Enterprise API
1212
- Improved Powershell 7 compatibility ([#208](https://github.com/majkinetor/au/issues/208))
13+
- Added a `Branch` parameter to GitReleases ([#227](https://github.com/majkinetor/au/issues/227))
1314

1415
## 2019.5.22
1516

0 commit comments

Comments
 (0)