summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorCyborus <cyborus@cyborus.xyz>2023-12-11 23:09:56 +0100
committerCyborus <cyborus@cyborus.xyz>2023-12-11 23:09:56 +0100
commit635aedc88dc4924ea3dac63f95d81620698fd5bb (patch)
tree0a4978927e507bdff7355bb5891fee7b49d68a82 /tests
parentdeletions do not return bodies (diff)
downloadforgejo-api-635aedc88dc4924ea3dac63f95d81620698fd5bb.tar.xz
forgejo-api-635aedc88dc4924ea3dac63f95d81620698fd5bb.zip
check release list before creating release
Diffstat (limited to 'tests')
-rw-r--r--tests/ci_test.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/ci_test.rs b/tests/ci_test.rs
index d8a4fa5..52e5efe 100644
--- a/tests/ci_test.rs
+++ b/tests/ci_test.rs
@@ -128,6 +128,8 @@ async fn repo(api: &forgejo_api::Forgejo) -> eyre::Result<()> {
let _ = git().args(["fetch"]).status()?;
let _ = git().args(["pull"]).status()?;
+ ensure!(api.get_releases("TestingAdmin", "test", forgejo_api::ReleaseQuery::default()).await.wrap_err("releases list not found")?.is_empty(), "there should be no releases yet");
+
let tag_opt = forgejo_api::CreateTagOption {
message: Some("This is a tag!".into()),
tag_name: "v1.0".into(),