pub enum Action {
Show 19 variants
ApproveRun {
id: i64,
seen: Option<String>,
},
ApproveRuns {
ids: Vec<i64>,
},
RejectRun {
id: i64,
keep_git_changes: bool,
infra: bool,
seen: Option<String>,
},
AddReviewTime {
id: i64,
minutes: u32,
},
SettlePrs,
StopJob {
id: i64,
},
ApproveJob {
id: i64,
},
StopWorkflow {
instance: i64,
},
AddNote {
text: String,
},
EditNote {
id: i64,
text: String,
},
RemoveNote {
id: i64,
},
Scan {
of: Selection,
offline: bool,
deps: bool,
},
Dispatch {
targets: Vec<String>,
tags: Vec<String>,
auto: bool,
count: Option<usize>,
retry: bool,
worker: WorkerChoice,
},
WorkflowRun {
name: String,
projects: Vec<String>,
tag: Option<String>,
instance: Option<i64>,
set: Vec<String>,
approve: Option<String>,
unattended: bool,
local: bool,
cap: Vec<String>,
worker: WorkerChoice,
},
ReworkRun {
id: i64,
feedback: String,
},
Publish {
ids: Vec<i64>,
all_approved: bool,
target: Target,
},
RunCampaign {
name: String,
count: Option<usize>,
},
Sync {
of: Selection,
apply: bool,
},
Verify {
of: Selection,
},
}Variants§
ApproveRun
Approves one run, read or not; the reviewer has read it. seen is
the state a front end showed it in: the run must still be in it.
ApproveRuns
Approves several runs at once, each of which must be clean.
RejectRun
AddReviewTime
SettlePrs
Reads each open pull request’s state from GitHub.
StopJob
ApproveJob
StopWorkflow
AddNote
EditNote
RemoveNote
Scan
Dispatch
WorkflowRun
Starts or resumes an instance; with approve, runs that plan.
Fields
§
worker: WorkerChoiceReworkRun
Publish
RunCampaign
Sync
Verify
Trait Implementations§
impl StructuralPartialEq for Action
Auto Trait Implementations§
impl Freeze for Action
impl RefUnwindSafe for Action
impl Send for Action
impl Sync for Action
impl Unpin for Action
impl UnsafeUnpin for Action
impl UnwindSafe for Action
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more