pub struct PullRequestFilter {
pub branch: Option<String>,
pub comment_control: Option<String>,
pub invert_regex: Option<bool>,
}Expand description
PullRequestFilter contains filter properties for matching GitHub Pull Requests.
This type is not used in any activity, and only used as part of another schema.
Fields§
§branch: Option<String>Regex of branches to match. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
comment_control: Option<String>If CommentControl is enabled, depending on the setting, builds may not fire until a repository writer comments /gcbrun on a pull request or /gcbrun is in the pull request description. Only PR comments that contain /gcbrun will trigger builds. If CommentControl is set to disabled, comments with /gcbrun from a user with repository write permission or above will still trigger builds to run.
invert_regex: Option<bool>If true, branches that do NOT match the git_ref will trigger a build.
Trait Implementations§
Source§impl Clone for PullRequestFilter
impl Clone for PullRequestFilter
Source§fn clone(&self) -> PullRequestFilter
fn clone(&self) -> PullRequestFilter
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PullRequestFilter
impl Debug for PullRequestFilter
Source§impl Default for PullRequestFilter
impl Default for PullRequestFilter
Source§fn default() -> PullRequestFilter
fn default() -> PullRequestFilter
Source§impl<'de> Deserialize<'de> for PullRequestFilter
impl<'de> Deserialize<'de> for PullRequestFilter
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Serialize for PullRequestFilter
impl Serialize for PullRequestFilter
impl Part for PullRequestFilter
Auto Trait Implementations§
impl Freeze for PullRequestFilter
impl RefUnwindSafe for PullRequestFilter
impl Send for PullRequestFilter
impl Sync for PullRequestFilter
impl Unpin for PullRequestFilter
impl UnwindSafe for PullRequestFilter
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more