CommitsApi

interface CommitsApi

Author

sunlulu.tomato

Functions

Link copied to clipboard
@POST(value = "projects/{id}/repository/commits/{sha}/cherry_pick")
abstract suspend fun cherryPickCommit(@Path(value = "id") id: String, @Path(value = "sha") sha: String, @Field(value = "branch") branch: String, @Field(value = "message") message: String? = null): Result<CommitOperatorResult>
Link copied to clipboard
@POST(value = "projects/{id}/repository/commits/{sha}/cherry_pick")
abstract suspend fun cherryPickCommitDryRun(@Path(value = "id") id: String, @Path(value = "sha") sha: String, @Field(value = "branch") branch: String, @Field(value = "message") message: String? = null, @Field(value = "dry_run") dryRun: Boolean = true): Result<DryRunResult>
Link copied to clipboard
@GET(value = "projects/{id}/repository/commits/{sha}/refs")
abstract suspend fun getRefsCommitPushTo(@Path(value = "id") id: String, @Path(value = "sha") sha: String, @Query(value = "type") type: String): Result<List<Reference>>
Link copied to clipboard
@GET(value = "projects/{id}/repository/commits/{sha}/sequence")
abstract suspend fun getSequenceOfCommit(@Path(value = "id") id: String, @Path(value = "sha") sha: String, @Query(value = "first_parent") firstParent: Boolean? = null): Result<CommitSequence>
Link copied to clipboard
@GET(value = "projects/{id}/repository/commits/{sha}")
abstract suspend fun getSingleCommit(@Path(value = "id") id: String, @Path(value = "sha") sha: String, @Query(value = "stats") stats: Boolean? = null): Result<Commit>
Link copied to clipboard
@GET(value = "projects/{id}/repository/commits")
abstract suspend fun listRepositoryCommits(@Path(value = "id") id: String, @Query(value = "ref_name") refName: String? = null, @Query(value = "since") since: String? = null, @Query(value = "until") until: String? = null, @Query(value = "path") path: String? = null, @Query(value = "author") author: String? = null, @Query(value = "all") all: Boolean? = null, @Query(value = "with_stats") withStats: Boolean? = null, @Query(value = "first_parent") fistParent: String? = null, @Query(value = "order") order: String? = null, @Query(value = "trailers") trailers: Boolean? = null): Result<List<Commit>>
Link copied to clipboard
@POST(value = "projects/{id}/repository/commits/{sha}/revert")
abstract suspend fun revertCommit(@Path(value = "id") id: String, @Path(value = "sha") sha: String, @Field(value = "branch") branch: String): Result<CommitOperatorResult>
Link copied to clipboard
@POST(value = "projects/{id}/repository/commits/{sha}/revert")
abstract suspend fun revertCommitDryRun(@Path(value = "id") id: String, @Path(value = "sha") sha: String, @Field(value = "branch") branch: String): Result<DryRunResult>