Skip to content
Open
Show file tree
Hide file tree
Changes from 4 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 @@ -7,6 +7,10 @@
- **buckets|scoop-info:** Switch git log date format to ISO 8601 to avoid locale issues ([#6446](https://github.com/ScoopInstaller/Scoop/issues/6446))
- **scoop-version:** Fix logic error caused by missing brackets ([#6463](https://github.com/ScoopInstaller/Scoop/issues/6463))

### Features

**checkver**: Add GitLab to `checkver` ([#5508](https://github.com/ScoopInstaller/Scoop/issues/5508))

## [v0.5.3](https://github.com/ScoopInstaller/Scoop/compare/v0.5.2...v0.5.3) - 2025-08-11

### Features
Expand Down
18 changes: 18 additions & 0 deletions bin/checkver.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,24 @@ $Queue | ForEach-Object {
if ($json.checkver.PSObject.Properties.Count -eq 1) { $useGithubAPI = $true }
}

# GitLab
if ($regex) {
$gitlabRegex = $regex
} else {
$gitlabRegex = '/-/releases/(?:v|V)?([\d.]+)'
}
if ($json.checkver -eq 'gitlab') {
if (!$json.homepage.StartsWith('https://gitlab.com/')) {
error "$name checkver expects the homepage to be a GitLab"
}
$url = $json.checkver.gitlab.TrimEnd('/') + '/-/releases?format=atom'
$regex = $gitlabRegex
}
if ($json.checkver.gitlab) {
$url = $json.checkver.gitlab.TrimEnd('/') + '/-/releases?format=atom'
$regex = $gitlabRegex
}

# SourceForge
if ($regex) {
$sourceforgeRegex = $regex
Expand Down
4 changes: 4 additions & 0 deletions schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,10 @@
"format": "uri",
"type": "string"
},
"gitlab": {
"format": "url",
"type": "string"
},
"re": {
"format": "regex",
"type": "string",
Expand Down
Loading