Skip to content

Commit 87795d7

Browse files
fix(checkver): skip default JSONPath for scripts
1 parent cbd7c64 commit 87795d7

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
### Bug Fixes
1313

14+
- **checkver:** Skip default GitHub JSONPath when using custom script ([#6681](https://github.com/ScoopInstaller/Scoop/issues/6681))
1415
- **core:** Fix the grep parameter in the `Invoke-GitLog` function ([#6407](https://github.com/ScoopInstaller/Scoop/issues/6407))
1516
- **buckets:** Skip Git invocation if unavailable in `new_issue_msg` ([#6591](https://github.com/ScoopInstaller/Scoop/issues/6591))
1617
- **buckets:** Fix the filtering condition when retrieving the number of manifests ([#6509](https://github.com/ScoopInstaller/Scoop/issues/6509))

bin/checkver.ps1

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,9 @@ $Queue | ForEach-Object {
179179

180180
if ($url -like 'https://api.github.com*') {
181181
# Default jsonpath/regex in GitHub API mode
182-
$jsonpath = '$.tag_name'
182+
if (-not $json.checkver.script) {
183+
$jsonpath = '$.tag_name'
184+
}
183185
if (-not $regex) {
184186
$regex = '(?:v|V)?([\d.-]+)'
185187
}

0 commit comments

Comments
 (0)