Compare commits
1 commit
782e0bdbe2
...
e01aaadd0b
Author | SHA1 | Date | |
---|---|---|---|
e01aaadd0b |
2 changed files with 15 additions and 1 deletions
|
@ -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:
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue