Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
- Validate PR - Skip validation for PRs with fewer than 100 lines changed, excluding common lock files (`Cargo.lock`, `yarn.lock`, `package-lock.json`, `Pipfile.lock`, etc.). Tiny PRs no longer go through the issue-discussion loop.
- Add validate-pr composite action for validating non-maintainer PRs against contribution guidelines ([#153](https://github.com/getsentry/github-workflows/pull/153))

### Fixes

- Updater - Select the first branch when multiple branches point at `HEAD` ([#165](https://github.com/getsentry/github-workflows/pull/165))

## 3.3.0

### Features
Expand Down
2 changes: 1 addition & 1 deletion updater/scripts/update-dependency.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ if ("$Tag" -eq '') {
if ("$headRef" -eq '') {
throw "Couldn't determine repository head (no ref returned by ls-remote HEAD"
}
$mainBranch = (git ls-remote --heads $url | Where-Object { $_.StartsWith($headRef) }) -replace '.*\srefs/heads/', ''
$mainBranch = (git ls-remote --heads $url | Where-Object { $_.StartsWith($headRef) } | Select-Object -First 1) -replace '.*\srefs/heads/', ''
}

$url = $url -replace '\.git$', ''
Expand Down
2 changes: 1 addition & 1 deletion updater/tests/update-dependency.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ switch ($action)
$output | Should -Contain 'latestTag=0.28.0'
$output | Should -Contain 'latestTagNice=v0.28.0'
$output | Should -Contain 'url=https://github.com/getsentry/sentry-cli'
$output | Should -Contain 'mainBranch=master'
$output | Should -Contain 'mainBranch=main'
}
}

Expand Down
Loading