Interface CheckoutWith

    • Method Detail

      • getFetchDepth

        @Stability(Experimental)
        @Nullable
        default Number getFetchDepth()
        (experimental) Number of commits to fetch.

        0 indicates all history for all branches and tags.

        Default: 1

      • getLfs

        @Stability(Experimental)
        @Nullable
        default Boolean getLfs()
        (experimental) Whether LFS is enabled for the GitHub repository.

        Default: false

      • getRef

        @Stability(Experimental)
        @Nullable
        default String getRef()
        (experimental) Branch or tag name.

        Default: - the default branch is implicitly used

      • getRepository

        @Stability(Experimental)
        @Nullable
        default String getRepository()
        (experimental) The repository (owner/repo) to use.

        Default: - the default repository is implicitly used

      • getToken

        @Stability(Experimental)
        @Nullable
        default String getToken()
        (experimental) A GitHub token to use when checking out the repository.

        If the intent is to push changes back to the branch, then you must use a PAT with repo (and possibly workflows) permissions.

        Default: - the default GITHUB_TOKEN is implicitly used