pub struct RunTrigger {
pub event: String,
pub head_branch: Option<String>,
pub head_repository: Option<String>,
pub head_sha: String,
pub by_user: bool,
pub pull_requests: Vec<u64>,
}Expand description
What started a workflow run, as GET /repos/{owner}/{repo}/actions/runs/{id} says.
Fields§
§event: Stringpush, pull_request, schedule, workflow_dispatch, ….
head_branch: Option<String>The branch it ran on: a pull request’s head branch, which may be a fork’s.
head_repository: Option<String>owner/name of the repository its commit came from: a fork’s, for a pull request from one.
head_sha: StringThe commit it ran. A tag’s run gives the tag’s name as head_branch, so only this says whether the
branch has it.
by_user: boolWhether people, not bots or apps, started it: GitHub’s actor and triggering_actor, who re-ran it, are
both of type User.
pull_requests: Vec<u64>The pull requests into the repository it runs, by number. GitHub lists only those whose head branch is in the repository itself, and may list none once they are closed; those it lists into another repository of a fork network are left out.
Trait Implementations§
Source§impl Clone for RunTrigger
impl Clone for RunTrigger
Source§impl Debug for RunTrigger
impl Debug for RunTrigger
impl Eq for RunTrigger
Source§impl PartialEq for RunTrigger
impl PartialEq for RunTrigger
impl StructuralPartialEq for RunTrigger
Auto Trait Implementations§
impl Freeze for RunTrigger
impl RefUnwindSafe for RunTrigger
impl Send for RunTrigger
impl Sync for RunTrigger
impl Unpin for RunTrigger
impl UnsafeUnpin for RunTrigger
impl UnwindSafe for RunTrigger
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.