Package io.github.cdklabs.projen.github
Class GitHub.Builder
- java.lang.Object
-
- io.github.cdklabs.projen.github.GitHub.Builder
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description GitHubbuild()static GitHub.Buildercreate(Project project)GitHub.BuilderdownloadLfs(Boolean downloadLfs)(experimental) Download files in LFS in workflows.GitHub.Buildermergify(Boolean mergify)(experimental) Whether mergify should be enabled on this repository or not.GitHub.BuildermergifyOptions(MergifyOptions mergifyOptions)(experimental) Options for Mergify.GitHub.BuilderprojenCredentials(GithubCredentials projenCredentials)(experimental) Choose a method of providing GitHub API access for projen workflows.GitHub.BuilderprojenTokenSecret(String projenTokenSecret)Deprecated.useprojenCredentialsGitHub.BuilderpullRequestLint(Boolean pullRequestLint)(experimental) Add a workflow that performs basic checks for pull requests, like validating that PRs follow Conventional Commits.GitHub.BuilderpullRequestLintOptions(PullRequestLintOptions pullRequestLintOptions)(experimental) Options for configuring a pull request linter.GitHub.Builderworkflows(Boolean workflows)(experimental) Enables GitHub workflows.
-
-
-
Method Detail
-
create
@Stability(Experimental) public static GitHub.Builder create(Project project)
- Parameters:
project- This parameter is required.- Returns:
- a new instance of
GitHub.Builder.
-
downloadLfs
@Stability(Experimental) public GitHub.Builder downloadLfs(Boolean downloadLfs)
(experimental) Download files in LFS in workflows.Default: true if the associated project has `lfsPatterns`, `false` otherwise
- Parameters:
downloadLfs- Download files in LFS in workflows. This parameter is required.- Returns:
this
-
mergify
@Stability(Experimental) public GitHub.Builder mergify(Boolean mergify)
(experimental) Whether mergify should be enabled on this repository or not.Default: true
- Parameters:
mergify- Whether mergify should be enabled on this repository or not. This parameter is required.- Returns:
this
-
mergifyOptions
@Stability(Experimental) public GitHub.Builder mergifyOptions(MergifyOptions mergifyOptions)
(experimental) Options for Mergify.Default: - default options
- Parameters:
mergifyOptions- Options for Mergify. This parameter is required.- Returns:
this
-
projenCredentials
@Stability(Experimental) public GitHub.Builder projenCredentials(GithubCredentials projenCredentials)
(experimental) Choose a method of providing GitHub API access for projen workflows.Default: - use a personal access token named PROJEN_GITHUB_TOKEN
- Parameters:
projenCredentials- Choose a method of providing GitHub API access for projen workflows. This parameter is required.- Returns:
this
-
projenTokenSecret
@Stability(Deprecated) @Deprecated public GitHub.Builder projenTokenSecret(String projenTokenSecret)
Deprecated.- use
projenCredentials
(deprecated) The name of a secret which includes a GitHub Personal Access Token to be used by projen workflows.This token needs to have the
repo,workflowsandpackagesscope.Default: "PROJEN_GITHUB_TOKEN"
- Parameters:
projenTokenSecret- The name of a secret which includes a GitHub Personal Access Token to be used by projen workflows. This parameter is required.- Returns:
this
- use
-
pullRequestLint
@Stability(Experimental) public GitHub.Builder pullRequestLint(Boolean pullRequestLint)
(experimental) Add a workflow that performs basic checks for pull requests, like validating that PRs follow Conventional Commits.Default: true
- Parameters:
pullRequestLint- Add a workflow that performs basic checks for pull requests, like validating that PRs follow Conventional Commits. This parameter is required.- Returns:
this
-
pullRequestLintOptions
@Stability(Experimental) public GitHub.Builder pullRequestLintOptions(PullRequestLintOptions pullRequestLintOptions)
(experimental) Options for configuring a pull request linter.Default: - see defaults in `PullRequestLintOptions`
- Parameters:
pullRequestLintOptions- Options for configuring a pull request linter. This parameter is required.- Returns:
this
-
workflows
@Stability(Experimental) public GitHub.Builder workflows(Boolean workflows)
(experimental) Enables GitHub workflows.If this is set to
false, workflows will not be created.Default: true
- Parameters:
workflows- Enables GitHub workflows. This parameter is required.- Returns:
this
-
-