Class PullRequestTargetOptions.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • branches

        @Stability(Experimental)
        public PullRequestTargetOptions.Builder branches​(List<String> branches)
        Sets the value of PushOptions.getBranches()
        Parameters:
        branches - When using the push, pull_request and pull_request_target events, you can configure a workflow to run on specific branches or tags. For a pull_request event, only branches and tags on the base are evaluated. If you define only tags or only branches, the workflow won't run for events affecting the undefined Git ref.
        Returns:
        this
      • paths

        @Stability(Experimental)
        public PullRequestTargetOptions.Builder paths​(List<String> paths)
        Sets the value of PushOptions.getPaths()
        Parameters:
        paths - When using the push, pull_request and pull_request_target events, you can configure a workflow to run when at least one file does not match paths-ignore or at least one modified file matches the configured paths. Path filters are not evaluated for pushes to tags.
        Returns:
        this
      • tags

        @Stability(Experimental)
        public PullRequestTargetOptions.Builder tags​(List<String> tags)
        Sets the value of PushOptions.getTags()
        Parameters:
        tags - When using the push, pull_request and pull_request_target events, you can configure a workflow to run on specific branches or tags. For a pull_request event, only branches and tags on the base are evaluated. If you define only tags or only branches, the workflow won't run for events affecting the undefined Git ref.
        Returns:
        this