Skip to content

Commit f81f2a4

Browse files
authored
chore: Merge branch dev to main (#201)
This pull request will Merge branch `dev` to `main`.
2 parents 01d86eb + 4149bc6 commit f81f2a4

File tree

4 files changed

+19
-12
lines changed

4 files changed

+19
-12
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,10 @@ jobs:
7878
webhook_url: ${{ env.PORTAINER_WEBHOOK_URL }}
7979

8080
- name: Purge outdated images
81-
uses: actions/delete-package-versions@v5
81+
uses: snok/[email protected]
8282
with:
83-
package-name: 'revanced-api'
84-
package-type: 'container'
85-
min-versions-to-keep: 5
86-
delete-only-untagged-versions: 'true'
83+
account: ${{ github.repository_owner }}
8784
token: ${{ secrets.GITHUB_TOKEN }}
85+
image-names: revanced-api
86+
keep-n-most-recent: 5
87+
cut-off: 1w

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
## [1.6.1-dev.1](https://github.com/ReVanced/revanced-api/compare/v1.6.0...v1.6.1-dev.1) (2025-07-10)
2+
3+
4+
### Bug Fixes
5+
6+
* Return latest regardless of prerelease parameter for release APIs ([53bd820](https://github.com/ReVanced/revanced-api/commit/53bd82071db165741f8f08e7ec438b45abde4425))
7+
18
# [1.6.0](https://github.com/ReVanced/revanced-api/compare/v1.5.0...v1.6.0) (2025-02-04)
29

310

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
org.gradle.parallel = true
22
org.gradle.caching = true
33
kotlin.code.style = official
4-
version = 1.6.0
4+
version = 1.6.1-dev.1

src/main/kotlin/app/revanced/api/configuration/repository/GitHubBackendRepository.kt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class GitHubBackendRepository : BackendRepository("https://api.github.com", "htt
2727
prerelease: Boolean,
2828
): BackendRelease {
2929
val release: GitHubRelease = if (prerelease) {
30-
client.get(Releases(owner, repository)).body<List<GitHubRelease>>().first { it.prerelease }
30+
client.get(Releases(owner, repository)).body<List<GitHubRelease>>().first()
3131
} else {
3232
client.get(Releases.Latest(owner, repository)).body()
3333
}
@@ -99,10 +99,10 @@ class GitHubBackendRepository : BackendRepository("https://api.github.com", "htt
9999
url = user.htmlUrl,
100100
bio = user.bio,
101101
gpgKeys =
102-
BackendMember.GpgKeys(
103-
ids = gpgKeys.map { it.keyId },
104-
url = "https://github.com/${user.login}.gpg",
105-
),
102+
BackendMember.GpgKeys(
103+
ids = gpgKeys.map { it.keyId },
104+
url = "https://github.com/${user.login}.gpg",
105+
),
106106
)
107107
}
108108
}
@@ -203,7 +203,7 @@ class Organization {
203203
class Contributors(val owner: String, val repo: String, @SerialName("per_page") val perPage: Int = 100)
204204

205205
@Resource("/repos/{owner}/{repo}/releases")
206-
class Releases(val owner: String, val repo: String) {
206+
class Releases(val owner: String, val repo: String, @SerialName("per_page") val perPage: Int = 1) {
207207
@Resource("/repos/{owner}/{repo}/releases/latest")
208208
class Latest(val owner: String, val repo: String)
209209
}

0 commit comments

Comments
 (0)