pub struct GhPrTriggers {
pub branches: Vec<String>,
pub exclude_branches: Vec<String>,
pub auto_cancel: bool,
pub types: Vec<String>,
}
Expand description
Trigger Github Actions pipelines per PR
Fields§
§branches: Vec<String>
Run the pipeline whenever there is a PR to these specified branches (supports glob syntax)
exclude_branches: Vec<String>
Specify any branches which should be filtered out from the list of
branches
(supports glob syntax)
auto_cancel: bool
Automatically cancel the pipeline run if a new commit lands in the
branch. Defaults to true
.
types: Vec<String>
Run the pipeline whenever the PR trigger matches the specified types
Implementations§
Source§impl GhPrTriggers
impl GhPrTriggers
Sourcepub fn new_draftable() -> GhPrTriggers
pub fn new_draftable() -> GhPrTriggers
Triggers the pipeline on the default PR events plus when a draft is marked as ready for review.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GhPrTriggers
impl RefUnwindSafe for GhPrTriggers
impl Send for GhPrTriggers
impl Sync for GhPrTriggers
impl Unpin for GhPrTriggers
impl UnwindSafe for GhPrTriggers
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