Class GitHubProject.Builder
- java.lang.Object
-
- io.github.cdklabs.projen.github.GitHubProject.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<GitHubProject>
- Enclosing class:
- GitHubProject
@Stability(Deprecated) @Deprecated public static final class GitHubProject.Builder extends Object implements software.amazon.jsii.Builder<GitHubProject>
Deprecated.(deprecated) A fluent builder forGitHubProject.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description GitHubProject.BuilderautoApproveOptions(AutoApproveOptions autoApproveOptions)Deprecated.(experimental) Enable and configure the 'auto approve' workflow.GitHubProject.BuilderautoMerge(Boolean autoMerge)Deprecated.(experimental) Enable automatic merging on GitHub.GitHubProject.BuilderautoMergeOptions(AutoMergeOptions autoMergeOptions)Deprecated.(experimental) Configure options for automatic merging on GitHub.GitHubProjectbuild()Deprecated.GitHubProject.Builderclobber(Boolean clobber)Deprecated.(experimental) Add aclobbertask which resets the repo to origin.GitHubProject.BuildercommitGenerated(Boolean commitGenerated)Deprecated.(experimental) Whether to commit the managed files by default.static GitHubProject.Buildercreate()Deprecated.GitHubProject.BuilderdevContainer(Boolean devContainer)Deprecated.(experimental) Add a VSCode development environment (used for GitHub Codespaces).GitHubProject.Buildergithub(Boolean github)Deprecated.(experimental) Enable GitHub integration.GitHubProject.BuildergithubOptions(GitHubOptions githubOptions)Deprecated.(experimental) Options for GitHub integration.GitHubProject.BuildergitIgnoreOptions(IgnoreFileOptions gitIgnoreOptions)Deprecated.(experimental) Configuration options for .gitignore file.GitHubProject.BuildergitOptions(GitOptions gitOptions)Deprecated.(experimental) Configuration options for git.GitHubProject.Buildergitpod(Boolean gitpod)Deprecated.(experimental) Add a Gitpod development environment.GitHubProject.Builderlogging(LoggerOptions logging)Deprecated.(experimental) Configure logging options such as verbosity.GitHubProject.Buildermergify(Boolean mergify)Deprecated.usegithubOptions.mergifyinsteadGitHubProject.BuildermergifyOptions(MergifyOptions mergifyOptions)Deprecated.usegithubOptions.mergifyOptionsinsteadGitHubProject.Buildername(String name)Deprecated.(experimental) This is the name of your project.GitHubProject.Builderoutdir(String outdir)Deprecated.(experimental) The root directory of the project.GitHubProject.Builderparent(Project parent)Deprecated.(experimental) The parent project, if this project is part of a bigger project.GitHubProject.BuilderprojectType(ProjectType projectType)Deprecated.no longer supported at the base project levelGitHubProject.BuilderprojenCommand(String projenCommand)Deprecated.(experimental) The shell command to use in order to run the projen CLI.GitHubProject.BuilderprojenCredentials(GithubCredentials projenCredentials)Deprecated.(experimental) Choose a method of providing GitHub API access for projen workflows.GitHubProject.BuilderprojenrcJson(Boolean projenrcJson)Deprecated.(experimental) Generate (once) .projenrc.json (in JSON).GitHubProject.BuilderprojenrcJsonOptions(ProjenrcJsonOptions projenrcJsonOptions)Deprecated.(experimental) Options for .projenrc.json.GitHubProject.BuilderprojenTokenSecret(String projenTokenSecret)Deprecated.useprojenCredentialsGitHubProject.Builderreadme(SampleReadmeProps readme)Deprecated.(experimental) The README setup.GitHubProject.Builderrenovatebot(Boolean renovatebot)Deprecated.(experimental) Use renovatebot to handle dependency upgrades.GitHubProject.BuilderrenovatebotOptions(RenovatebotOptions renovatebotOptions)Deprecated.(experimental) Options for renovatebot.GitHubProject.Builderstale(Boolean stale)Deprecated.(experimental) Auto-close of stale issues and pull request.GitHubProject.BuilderstaleOptions(StaleOptions staleOptions)Deprecated.(experimental) Auto-close stale issues and pull requests.GitHubProject.Buildervscode(Boolean vscode)Deprecated.(experimental) Enable VSCode integration.
-
-
-
Method Detail
-
create
@Stability(Deprecated) @Deprecated public static GitHubProject.Builder create()
Deprecated.- Returns:
- a new instance of
GitHubProject.Builder.
-
name
@Stability(Experimental) public GitHubProject.Builder name(String name)
Deprecated.(experimental) This is the name of your project.Default: $BASEDIR
- Parameters:
name- This is the name of your project. This parameter is required.- Returns:
this
-
commitGenerated
@Stability(Experimental) public GitHubProject.Builder commitGenerated(Boolean commitGenerated)
Deprecated.(experimental) Whether to commit the managed files by default.Default: true
- Parameters:
commitGenerated- Whether to commit the managed files by default. This parameter is required.- Returns:
this
-
gitIgnoreOptions
@Stability(Experimental) public GitHubProject.Builder gitIgnoreOptions(IgnoreFileOptions gitIgnoreOptions)
Deprecated.(experimental) Configuration options for .gitignore file.- Parameters:
gitIgnoreOptions- Configuration options for .gitignore file. This parameter is required.- Returns:
this
-
gitOptions
@Stability(Experimental) public GitHubProject.Builder gitOptions(GitOptions gitOptions)
Deprecated.(experimental) Configuration options for git.- Parameters:
gitOptions- Configuration options for git. This parameter is required.- Returns:
this
-
logging
@Stability(Experimental) public GitHubProject.Builder logging(LoggerOptions logging)
Deprecated.(experimental) Configure logging options such as verbosity.Default: {}
- Parameters:
logging- Configure logging options such as verbosity. This parameter is required.- Returns:
this
-
outdir
@Stability(Experimental) public GitHubProject.Builder outdir(String outdir)
Deprecated.(experimental) The root directory of the project.Relative to this directory, all files are synthesized.
If this project has a parent, this directory is relative to the parent directory and it cannot be the same as the parent or any of it's other subprojects.
Default: "."
- Parameters:
outdir- The root directory of the project. This parameter is required.- Returns:
this
-
parent
@Stability(Experimental) public GitHubProject.Builder parent(Project parent)
Deprecated.(experimental) The parent project, if this project is part of a bigger project.- Parameters:
parent- The parent project, if this project is part of a bigger project. This parameter is required.- Returns:
this
-
projenCommand
@Stability(Experimental) public GitHubProject.Builder projenCommand(String projenCommand)
Deprecated.(experimental) The shell command to use in order to run the projen CLI.Can be used to customize in special environments.
Default: "npx projen"
- Parameters:
projenCommand- The shell command to use in order to run the projen CLI. This parameter is required.- Returns:
this
-
projenrcJson
@Stability(Experimental) public GitHubProject.Builder projenrcJson(Boolean projenrcJson)
Deprecated.(experimental) Generate (once) .projenrc.json (in JSON). Set tofalsein order to disable .projenrc.json generation.Default: false
- Parameters:
projenrcJson- Generate (once) .projenrc.json (in JSON). Set tofalsein order to disable .projenrc.json generation. This parameter is required.- Returns:
this
-
projenrcJsonOptions
@Stability(Experimental) public GitHubProject.Builder projenrcJsonOptions(ProjenrcJsonOptions projenrcJsonOptions)
Deprecated.(experimental) Options for .projenrc.json.Default: - default options
- Parameters:
projenrcJsonOptions- Options for .projenrc.json. This parameter is required.- Returns:
this
-
renovatebot
@Stability(Experimental) public GitHubProject.Builder renovatebot(Boolean renovatebot)
Deprecated.(experimental) Use renovatebot to handle dependency upgrades.Default: false
- Parameters:
renovatebot- Use renovatebot to handle dependency upgrades. This parameter is required.- Returns:
this
-
renovatebotOptions
@Stability(Experimental) public GitHubProject.Builder renovatebotOptions(RenovatebotOptions renovatebotOptions)
Deprecated.(experimental) Options for renovatebot.Default: - default options
- Parameters:
renovatebotOptions- Options for renovatebot. This parameter is required.- Returns:
this
-
autoApproveOptions
@Stability(Experimental) public GitHubProject.Builder autoApproveOptions(AutoApproveOptions autoApproveOptions)
Deprecated.(experimental) Enable and configure the 'auto approve' workflow.Default: - auto approve is disabled
- Parameters:
autoApproveOptions- Enable and configure the 'auto approve' workflow. This parameter is required.- Returns:
this
-
autoMerge
@Stability(Experimental) public GitHubProject.Builder autoMerge(Boolean autoMerge)
Deprecated.(experimental) Enable automatic merging on GitHub.Has no effect if
github.mergifyis set to false.Default: true
- Parameters:
autoMerge- Enable automatic merging on GitHub. This parameter is required.- Returns:
this
-
autoMergeOptions
@Stability(Experimental) public GitHubProject.Builder autoMergeOptions(AutoMergeOptions autoMergeOptions)
Deprecated.(experimental) Configure options for automatic merging on GitHub.Has no effect if
github.mergifyorautoMergeis set to false.Default: - see defaults in `AutoMergeOptions`
- Parameters:
autoMergeOptions- Configure options for automatic merging on GitHub. This parameter is required.- Returns:
this
-
clobber
@Stability(Experimental) public GitHubProject.Builder clobber(Boolean clobber)
Deprecated.(experimental) Add aclobbertask which resets the repo to origin.Default: - true, but false for subprojects
- Parameters:
clobber- Add aclobbertask which resets the repo to origin. This parameter is required.- Returns:
this
-
devContainer
@Stability(Experimental) public GitHubProject.Builder devContainer(Boolean devContainer)
Deprecated.(experimental) Add a VSCode development environment (used for GitHub Codespaces).Default: false
- Parameters:
devContainer- Add a VSCode development environment (used for GitHub Codespaces). This parameter is required.- Returns:
this
-
github
@Stability(Experimental) public GitHubProject.Builder github(Boolean github)
Deprecated.(experimental) Enable GitHub integration.Enabled by default for root projects. Disabled for non-root projects.
Default: true
- Parameters:
github- Enable GitHub integration. This parameter is required.- Returns:
this
-
githubOptions
@Stability(Experimental) public GitHubProject.Builder githubOptions(GitHubOptions githubOptions)
Deprecated.(experimental) Options for GitHub integration.Default: - see GitHubOptions
- Parameters:
githubOptions- Options for GitHub integration. This parameter is required.- Returns:
this
-
gitpod
@Stability(Experimental) public GitHubProject.Builder gitpod(Boolean gitpod)
Deprecated.(experimental) Add a Gitpod development environment.Default: false
- Parameters:
gitpod- Add a Gitpod development environment. This parameter is required.- Returns:
this
-
mergify
@Stability(Deprecated) @Deprecated public GitHubProject.Builder mergify(Boolean mergify)
Deprecated.usegithubOptions.mergifyinstead(deprecated) 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(Deprecated) @Deprecated public GitHubProject.Builder mergifyOptions(MergifyOptions mergifyOptions)
Deprecated.usegithubOptions.mergifyOptionsinstead(deprecated) Options for mergify.Default: - default options
- Parameters:
mergifyOptions- Options for mergify. This parameter is required.- Returns:
this
-
projectType
@Stability(Deprecated) @Deprecated public GitHubProject.Builder projectType(ProjectType projectType)
Deprecated.no longer supported at the base project level(deprecated) Which type of project this is (library/app).Default: ProjectType.UNKNOWN
- Parameters:
projectType- Which type of project this is (library/app). This parameter is required.- Returns:
this
-
projenCredentials
@Stability(Experimental) public GitHubProject.Builder projenCredentials(GithubCredentials projenCredentials)
Deprecated.(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 GitHubProject.Builder projenTokenSecret(String projenTokenSecret)
Deprecated.useprojenCredentials(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
-
readme
@Stability(Experimental) public GitHubProject.Builder readme(SampleReadmeProps readme)
Deprecated.(experimental) The README setup.Default: - { filename: 'README.md', contents: '# replace this' }
Example:
"{ filename: 'readme.md', contents: '# title' }"- Parameters:
readme- The README setup. This parameter is required.- Returns:
this
-
stale
@Stability(Experimental) public GitHubProject.Builder stale(Boolean stale)
Deprecated.(experimental) Auto-close of stale issues and pull request.See
staleOptionsfor options.Default: false
- Parameters:
stale- Auto-close of stale issues and pull request. This parameter is required.- Returns:
this
-
staleOptions
@Stability(Experimental) public GitHubProject.Builder staleOptions(StaleOptions staleOptions)
Deprecated.(experimental) Auto-close stale issues and pull requests.To disable set
staletofalse.Default: - see defaults in `StaleOptions`
- Parameters:
staleOptions- Auto-close stale issues and pull requests. This parameter is required.- Returns:
this
-
vscode
@Stability(Experimental) public GitHubProject.Builder vscode(Boolean vscode)
Deprecated.(experimental) Enable VSCode integration.Enabled by default for root projects. Disabled for non-root projects.
Default: true
- Parameters:
vscode- Enable VSCode integration. This parameter is required.- Returns:
this
-
build
@Stability(Deprecated) @Deprecated public GitHubProject build()
Deprecated.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<GitHubProject>- Returns:
- a newly built instance of
GitHubProject.
-
-