Compare commits

..

1 commit

Author SHA1 Message Date
e01aaadd0b WIP: test: add more tests to forge-github crate
All checks were successful
ci/woodpecker/push/cron-docker-builder Pipeline was successful
ci/woodpecker/push/push-next Pipeline was successful
ci/woodpecker/push/tag-created Pipeline was successful
2024-06-05 08:02:03 +01:00
2 changed files with 15 additions and 1 deletions

View file

@ -4,7 +4,7 @@ steps:
- event: tag
ref: refs/tags/v*
# INFO: https://woodpecker-ci.org/plugins/Gitea%20Release
image: docker.io/woodpeckerci/plugin-gitea-release:0.3.2
image: docker.io/woodpeckerci/plugin-gitea-release:0.3.1
settings:
base_url: https://git.kemitix.net
api_key:

View file

@ -523,6 +523,20 @@ mod github {
use super::*;
pub fn a_commit_state(
state: impl AsRef<str>, // TODO change this to GithubState
net: &mut MockNetwork,
repo_details: &git::RepoDetails,
commit: &git::Commit,
) {
let response = json!([{"state":state.as_ref()}]);
net.add_get_response(
a_commit_status_url(repo_details, commit).as_str(),
StatusCode::OK,
response.to_string().as_str(),
)
}
pub fn commit_states(
states: &[GithubState],
net: &mut MockNetwork,