Skip to content

Commit 931a1ce

Browse files
committed
Add workflow_run_job and repo_git_trees GitHub methods
1 parent 456030e commit 931a1ce

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/github.rs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1264,7 +1264,21 @@ struct PullRequestEventFields {}
12641264

12651265
#[derive(Debug, serde::Deserialize)]
12661266
pub struct WorkflowRunJob {
1267+
pub name: String,
12671268
pub head_sha: String,
1269+
pub conclusion: Option<JobConclusion>,
1270+
}
1271+
1272+
#[derive(Debug, serde::Deserialize)]
1273+
#[serde(rename_all = "snake_case")]
1274+
pub enum JobConclusion {
1275+
ActionRequired,
1276+
Cancelled,
1277+
Failure,
1278+
Neutral,
1279+
Skipped,
1280+
Success,
1281+
TimedOut,
12681282
}
12691283

12701284
#[derive(Clone, Debug, serde::Deserialize)]

0 commit comments

Comments
 (0)