Class GitHubProject.Builder

    • Method Detail

      • 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 to false in order to disable .projenrc.json generation.

        Default: false

        Parameters:
        projenrcJson - Generate (once) .projenrc.json (in JSON). Set to false in 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.mergify is 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.mergify or autoMerge is 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 a clobber task which resets the repo to origin.

        Default: - true, but false for subprojects

        Parameters:
        clobber - Add a clobber task 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.
        use githubOptions.mergify instead
        (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.
        use githubOptions.mergifyOptions instead
        (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.
        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, workflows and packages scope.

        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 staleOptions for 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 stale to false.

        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