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 more