Skip to content

Commit

Permalink
Merge pull request #11 from 01123581321345589144233377/patch-1
Browse files Browse the repository at this point in the history
change list_opened_merge_requests
  • Loading branch information
dcuenot committed Apr 18, 2022
2 parents e97c2b6 + f3403c4 commit 209c797
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/infra/gitlab_client/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,10 @@ impl GitlabClient {
ci_commit_ref_name: &str,
) -> anyhow::Result<MergeRequests> {
let request = reqwest::Client::new()
.get(&format!("{}/api/v4/merge_requests", self.url))
.get(&format!("{}/api/v4/projects/{}/merge_requests", self.url, &self.ci_project_id.to_string()))
.query(&[
("source_branch", ci_commit_ref_name),
("state", "opened"),
("source_project_id", &self.ci_project_id.to_string()),
])
.header("PRIVATE-TOKEN", self.header_authorization())
.build()?;
Expand Down

0 comments on commit 209c797

Please sign in to comment.