Compare commits

...

8 Commits

Author SHA1 Message Date
semantic-release-bot
c71cbd0466 chore: Release v1.6.1 [skip ci]
## [1.6.1](https://github.com/ReVanced/revanced-api/compare/v1.6.0...v1.6.1) (2025-07-11)

### Bug Fixes

* Return latest regardless of prerelease parameter for release APIs ([53bd820](53bd82071d))
2025-07-11 10:12:16 +00:00
oSumAtrIX
f81f2a4f0e chore: Merge branch dev to main (#201)
This pull request will Merge branch `dev` to `main`.
2025-07-11 12:10:05 +02:00
semantic-release-bot
4149bc6bdb chore: Release v1.6.1-dev.1 [skip ci]
## [1.6.1-dev.1](https://github.com/ReVanced/revanced-api/compare/v1.6.0...v1.6.1-dev.1) (2025-07-10)

### Bug Fixes

* Return latest regardless of prerelease parameter for release APIs ([53bd820](53bd82071d))
2025-07-10 20:24:45 +00:00
oSumAtrIX
53bd82071d fix: Return latest regardless of prerelease parameter for release APIs 2025-06-27 23:24:26 +02:00
oSumAtrIX
ea86e9685f ci: Use action from other repo to purge unused images for consistency 2025-04-09 15:00:36 +02:00
oSumAtrIX
3242e551fd ci: Don't keep tagged images when purging them 2025-04-09 14:45:07 +02:00
semantic-release-bot
01d86ebba8 chore: Release v1.6.0 [skip ci]
# [1.6.0](https://github.com/ReVanced/revanced-api/compare/v1.5.0...v1.6.0) (2025-02-04)

### Features

* Add status page link to about ([8a957cd](8a957cd797))
* Add support for prereleases ([c25bc8b](c25bc8b4ba))
* Allow setting `Announcement.createdAt` when creating an announcement ([7f6e29d](7f6e29de52))
* Make some announcements schema fields nullable ([db22874](db22874f06))
2025-02-04 00:14:22 +00:00
oSumAtrIX
989094309f chore: Merge branch dev to main (#196)
This pull request will Merge branch `dev` to `main`.
2025-02-04 01:12:19 +01:00
4 changed files with 36 additions and 12 deletions

View File

@@ -78,10 +78,10 @@ jobs:
webhook_url: ${{ env.PORTAINER_WEBHOOK_URL }}
- name: Purge outdated images
uses: actions/delete-package-versions@v5
uses: snok/container-retention-policy@v3.0.0
with:
package-name: 'revanced-api'
package-type: 'container'
min-versions-to-keep: 5
delete-only-untagged-versions: 'true'
account: ${{ github.repository_owner }}
token: ${{ secrets.GITHUB_TOKEN }}
image-names: revanced-api
keep-n-most-recent: 5
cut-off: 1w

View File

@@ -1,3 +1,27 @@
## [1.6.1](https://github.com/ReVanced/revanced-api/compare/v1.6.0...v1.6.1) (2025-07-11)
### Bug Fixes
* Return latest regardless of prerelease parameter for release APIs ([53bd820](https://github.com/ReVanced/revanced-api/commit/53bd82071db165741f8f08e7ec438b45abde4425))
## [1.6.1-dev.1](https://github.com/ReVanced/revanced-api/compare/v1.6.0...v1.6.1-dev.1) (2025-07-10)
### Bug Fixes
* Return latest regardless of prerelease parameter for release APIs ([53bd820](https://github.com/ReVanced/revanced-api/commit/53bd82071db165741f8f08e7ec438b45abde4425))
# [1.6.0](https://github.com/ReVanced/revanced-api/compare/v1.5.0...v1.6.0) (2025-02-04)
### Features
* Add status page link to about ([8a957cd](https://github.com/ReVanced/revanced-api/commit/8a957cd797e7e42f43670baaed60ac0d3543342f))
* Add support for prereleases ([c25bc8b](https://github.com/ReVanced/revanced-api/commit/c25bc8b4ba2bd4bf1708f19dc8bc228a7f54d548))
* Allow setting `Announcement.createdAt` when creating an announcement ([7f6e29d](https://github.com/ReVanced/revanced-api/commit/7f6e29de5205f63ac4aaea490c844b58e14000c8))
* Make some announcements schema fields nullable ([db22874](https://github.com/ReVanced/revanced-api/commit/db22874f063bae0c9e7f0c99a20cdf1b16addd89))
# [1.6.0-dev.3](https://github.com/ReVanced/revanced-api/compare/v1.6.0-dev.2...v1.6.0-dev.3) (2024-12-25)

View File

@@ -1,4 +1,4 @@
org.gradle.parallel = true
org.gradle.caching = true
kotlin.code.style = official
version = 1.6.0-dev.3
version = 1.6.1

View File

@@ -27,7 +27,7 @@ class GitHubBackendRepository : BackendRepository("https://api.github.com", "htt
prerelease: Boolean,
): BackendRelease {
val release: GitHubRelease = if (prerelease) {
client.get(Releases(owner, repository)).body<List<GitHubRelease>>().first { it.prerelease }
client.get(Releases(owner, repository)).body<List<GitHubRelease>>().first()
} else {
client.get(Releases.Latest(owner, repository)).body()
}
@@ -99,10 +99,10 @@ class GitHubBackendRepository : BackendRepository("https://api.github.com", "htt
url = user.htmlUrl,
bio = user.bio,
gpgKeys =
BackendMember.GpgKeys(
ids = gpgKeys.map { it.keyId },
url = "https://github.com/${user.login}.gpg",
),
BackendMember.GpgKeys(
ids = gpgKeys.map { it.keyId },
url = "https://github.com/${user.login}.gpg",
),
)
}
}
@@ -203,7 +203,7 @@ class Organization {
class Contributors(val owner: String, val repo: String, @SerialName("per_page") val perPage: Int = 100)
@Resource("/repos/{owner}/{repo}/releases")
class Releases(val owner: String, val repo: String) {
class Releases(val owner: String, val repo: String, @SerialName("per_page") val perPage: Int = 1) {
@Resource("/repos/{owner}/{repo}/releases/latest")
class Latest(val owner: String, val repo: String)
}