Skip to content

Commit 6e7b398

Browse files
committed
Build octorust
1 parent 979f81b commit 6e7b398

File tree

6 files changed

+49
-9
lines changed

6 files changed

+49
-9
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ $(GITHUB_SPEC): $(GITHUB_SPEC_DIR)
196196
curl -sSL $(GITHUB_SPEC_REMOTE) -o $@
197197

198198
github: target/debug/generator $(GITHUB_SPEC)
199-
./target/debug/generator -i $(GITHUB_SPEC) -v 0.3.1 \
199+
./target/debug/generator -i $(GITHUB_SPEC) -v 0.3.2 \
200200
-o github \
201201
-n octorust \
202202
--proper-name GitHub \

github/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "octorust"
33
description = "A fully generated & opinionated API client for the GitHub API."
4-
version = "0.3.1"
4+
version = "0.3.2"
55
documentation = "https://docs.rs/octorust/"
66
repository = "https://github.com/oxidecomputer/third-party-api-clients/tree/main/github"
77
readme = "README.md"

github/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ To install the library, add the following to your `Cargo.toml` file.
3737

3838
```toml
3939
[dependencies]
40-
octorust = "0.3.1"
40+
octorust = "0.3.2"
4141
```
4242

4343
## Basic example
@@ -57,7 +57,7 @@ let github = Client::new(
5757
```
5858

5959
If you are a GitHub enterprise customer, you will want to create a client with the
60-
[Client#host_override](https://docs.rs/octorust/0.3.1/octorust/struct.Client.html#method.host_override) method.
60+
[Client#host_override](https://docs.rs/octorust/0.3.2/octorust/struct.Client.html#method.host_override) method.
6161

6262
## Feature flags
6363

@@ -71,7 +71,7 @@ To enable this, add the following to your `Cargo.toml` file:
7171

7272
```toml
7373
[dependencies]
74-
octorust = { version = "0.3.1", features = ["httpcache"] }
74+
octorust = { version = "0.3.2", features = ["httpcache"] }
7575
```
7676

7777
Then use the `Client::custom` constructor to provide a cache implementation.

github/src/actions.rs

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3009,6 +3009,46 @@ impl Actions {
30093009
)
30103010
.await
30113011
}
3012+
/**
3013+
* Re-run failed jobs from a workflow run.
3014+
*
3015+
* This function performs a `POST` to the `/repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs` endpoint.
3016+
*
3017+
* Re-run all of the failed jobs and their dependent jobs in a workflow run using the `id` of the workflow run. You must authenticate using an access token with the `repo` scope to use this endpoint.
3018+
*
3019+
* FROM: <https://docs.github.com/rest/reference/actions#re-run-workflow-failed-jobs>
3020+
*
3021+
* **Parameters:**
3022+
*
3023+
* * `owner: &str`
3024+
* * `repo: &str`
3025+
* * `run_id: i64` -- The id of the workflow run.
3026+
*/
3027+
pub async fn re_run_workflow_failed_jobs(
3028+
&self,
3029+
owner: &str,
3030+
repo: &str,
3031+
run_id: i64,
3032+
) -> Result<()> {
3033+
let url = self.client.url(
3034+
&format!(
3035+
"/repos/{}/{}/actions/runs/{}/rerun-failed-jobs",
3036+
crate::progenitor_support::encode_path(owner),
3037+
crate::progenitor_support::encode_path(repo),
3038+
crate::progenitor_support::encode_path(&run_id.to_string()),
3039+
),
3040+
None,
3041+
);
3042+
self.client
3043+
.post(
3044+
&url,
3045+
crate::Message {
3046+
body: None,
3047+
content_type: None,
3048+
},
3049+
)
3050+
.await
3051+
}
30123052
/**
30133053
* Get workflow run usage.
30143054
*

github/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
//!
3636
//! ```toml
3737
//! [dependencies]
38-
//! octorust = "0.3.1"
38+
//! octorust = "0.3.2"
3939
//! ```
4040
//!
4141
//! ## Basic example
@@ -55,7 +55,7 @@
5555
//! ```
5656
//!
5757
//! If you are a GitHub enterprise customer, you will want to create a client with the
58-
//! [Client#host_override](https://docs.rs/octorust/0.3.1/octorust/struct.Client.html#method.host_override) method.
58+
//! [Client#host_override](https://docs.rs/octorust/0.3.2/octorust/struct.Client.html#method.host_override) method.
5959
//!
6060
//! ## Feature flags
6161
//!
@@ -69,7 +69,7 @@
6969
//!
7070
//! ```toml
7171
//! [dependencies]
72-
//! octorust = { version = "0.3.1", features = ["httpcache"] }
72+
//! octorust = { version = "0.3.2", features = ["httpcache"] }
7373
//! ```
7474
//!
7575
//! Then use the `Client::custom` constructor to provide a cache implementation.

0 commit comments

Comments
 (0)