Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

CodeCommit

import { CodeCommit } from "https://aws-api.deno.dev/v0.3/services/codecommit.ts?docs=full";
class CodeCommit {
constructor(apiFactory: client.ApiFactory);
async associateApprovalRuleTemplateWithRepository(params: AssociateApprovalRuleTemplateWithRepositoryInput, opts?: client.RequestOptions): Promise<void>;
async batchDescribeMergeConflicts(params: BatchDescribeMergeConflictsInput, opts?: client.RequestOptions): Promise<BatchDescribeMergeConflictsOutput>;
async batchGetCommits(params: BatchGetCommitsInput, opts?: client.RequestOptions): Promise<BatchGetCommitsOutput>;
async batchGetRepositories(params: BatchGetRepositoriesInput, opts?: client.RequestOptions): Promise<BatchGetRepositoriesOutput>;
async createApprovalRuleTemplate(params: CreateApprovalRuleTemplateInput, opts?: client.RequestOptions): Promise<CreateApprovalRuleTemplateOutput>;
async createBranch(params: CreateBranchInput, opts?: client.RequestOptions): Promise<void>;
async createCommit(params: CreateCommitInput, opts?: client.RequestOptions): Promise<CreateCommitOutput>;
async createPullRequest(params: CreatePullRequestInput, opts?: client.RequestOptions): Promise<CreatePullRequestOutput>;
async createPullRequestApprovalRule(params: CreatePullRequestApprovalRuleInput, opts?: client.RequestOptions): Promise<CreatePullRequestApprovalRuleOutput>;
async createRepository(params: CreateRepositoryInput, opts?: client.RequestOptions): Promise<CreateRepositoryOutput>;
async createUnreferencedMergeCommit(params: CreateUnreferencedMergeCommitInput, opts?: client.RequestOptions): Promise<CreateUnreferencedMergeCommitOutput>;
async deleteApprovalRuleTemplate(params: DeleteApprovalRuleTemplateInput, opts?: client.RequestOptions): Promise<DeleteApprovalRuleTemplateOutput>;
async deleteBranch(params: DeleteBranchInput, opts?: client.RequestOptions): Promise<DeleteBranchOutput>;
async deleteCommentContent(params: DeleteCommentContentInput, opts?: client.RequestOptions): Promise<DeleteCommentContentOutput>;
async deleteFile(params: DeleteFileInput, opts?: client.RequestOptions): Promise<DeleteFileOutput>;
async deletePullRequestApprovalRule(params: DeletePullRequestApprovalRuleInput, opts?: client.RequestOptions): Promise<DeletePullRequestApprovalRuleOutput>;
async deleteRepository(params: DeleteRepositoryInput, opts?: client.RequestOptions): Promise<DeleteRepositoryOutput>;
async describeMergeConflicts(params: DescribeMergeConflictsInput, opts?: client.RequestOptions): Promise<DescribeMergeConflictsOutput>;
async describePullRequestEvents(params: DescribePullRequestEventsInput, opts?: client.RequestOptions): Promise<DescribePullRequestEventsOutput>;
async disassociateApprovalRuleTemplateFromRepository(params: DisassociateApprovalRuleTemplateFromRepositoryInput, opts?: client.RequestOptions): Promise<void>;
async evaluatePullRequestApprovalRules(params: EvaluatePullRequestApprovalRulesInput, opts?: client.RequestOptions): Promise<EvaluatePullRequestApprovalRulesOutput>;
async getApprovalRuleTemplate(params: GetApprovalRuleTemplateInput, opts?: client.RequestOptions): Promise<GetApprovalRuleTemplateOutput>;
async getBlob(params: GetBlobInput, opts?: client.RequestOptions): Promise<GetBlobOutput>;
async getBranch(params?: GetBranchInput, opts?: client.RequestOptions): Promise<GetBranchOutput>;
async getComment(params: GetCommentInput, opts?: client.RequestOptions): Promise<GetCommentOutput>;
async getCommentReactions(params: GetCommentReactionsInput, opts?: client.RequestOptions): Promise<GetCommentReactionsOutput>;
async getCommentsForComparedCommit(params: GetCommentsForComparedCommitInput, opts?: client.RequestOptions): Promise<GetCommentsForComparedCommitOutput>;
async getCommentsForPullRequest(params: GetCommentsForPullRequestInput, opts?: client.RequestOptions): Promise<GetCommentsForPullRequestOutput>;
async getCommit(params: GetCommitInput, opts?: client.RequestOptions): Promise<GetCommitOutput>;
async getDifferences(params: GetDifferencesInput, opts?: client.RequestOptions): Promise<GetDifferencesOutput>;
async getFile(params: GetFileInput, opts?: client.RequestOptions): Promise<GetFileOutput>;
async getFolder(params: GetFolderInput, opts?: client.RequestOptions): Promise<GetFolderOutput>;
async getMergeCommit(params: GetMergeCommitInput, opts?: client.RequestOptions): Promise<GetMergeCommitOutput>;
async getMergeConflicts(params: GetMergeConflictsInput, opts?: client.RequestOptions): Promise<GetMergeConflictsOutput>;
async getMergeOptions(params: GetMergeOptionsInput, opts?: client.RequestOptions): Promise<GetMergeOptionsOutput>;
async getPullRequest(params: GetPullRequestInput, opts?: client.RequestOptions): Promise<GetPullRequestOutput>;
async getPullRequestApprovalStates(params: GetPullRequestApprovalStatesInput, opts?: client.RequestOptions): Promise<GetPullRequestApprovalStatesOutput>;
async getPullRequestOverrideState(params: GetPullRequestOverrideStateInput, opts?: client.RequestOptions): Promise<GetPullRequestOverrideStateOutput>;
async getRepository(params: GetRepositoryInput, opts?: client.RequestOptions): Promise<GetRepositoryOutput>;
async getRepositoryTriggers(params: GetRepositoryTriggersInput, opts?: client.RequestOptions): Promise<GetRepositoryTriggersOutput>;
async listApprovalRuleTemplates(params?: ListApprovalRuleTemplatesInput, opts?: client.RequestOptions): Promise<ListApprovalRuleTemplatesOutput>;
async listBranches(params: ListBranchesInput, opts?: client.RequestOptions): Promise<ListBranchesOutput>;
async listPullRequests(params: ListPullRequestsInput, opts?: client.RequestOptions): Promise<ListPullRequestsOutput>;
async listRepositories(params?: ListRepositoriesInput, opts?: client.RequestOptions): Promise<ListRepositoriesOutput>;
async listRepositoriesForApprovalRuleTemplate(params: ListRepositoriesForApprovalRuleTemplateInput, opts?: client.RequestOptions): Promise<ListRepositoriesForApprovalRuleTemplateOutput>;
async listTagsForResource(params: ListTagsForResourceInput, opts?: client.RequestOptions): Promise<ListTagsForResourceOutput>;
async mergeBranchesByFastForward(params: MergeBranchesByFastForwardInput, opts?: client.RequestOptions): Promise<MergeBranchesByFastForwardOutput>;
async mergeBranchesBySquash(params: MergeBranchesBySquashInput, opts?: client.RequestOptions): Promise<MergeBranchesBySquashOutput>;
async mergeBranchesByThreeWay(params: MergeBranchesByThreeWayInput, opts?: client.RequestOptions): Promise<MergeBranchesByThreeWayOutput>;
async mergePullRequestByFastForward(params: MergePullRequestByFastForwardInput, opts?: client.RequestOptions): Promise<MergePullRequestByFastForwardOutput>;
async mergePullRequestBySquash(params: MergePullRequestBySquashInput, opts?: client.RequestOptions): Promise<MergePullRequestBySquashOutput>;
async mergePullRequestByThreeWay(params: MergePullRequestByThreeWayInput, opts?: client.RequestOptions): Promise<MergePullRequestByThreeWayOutput>;
async overridePullRequestApprovalRules(params: OverridePullRequestApprovalRulesInput, opts?: client.RequestOptions): Promise<void>;
async postCommentForComparedCommit(params: PostCommentForComparedCommitInput, opts?: client.RequestOptions): Promise<PostCommentForComparedCommitOutput>;
async postCommentForPullRequest(params: PostCommentForPullRequestInput, opts?: client.RequestOptions): Promise<PostCommentForPullRequestOutput>;
async postCommentReply(params: PostCommentReplyInput, opts?: client.RequestOptions): Promise<PostCommentReplyOutput>;
async putCommentReaction(params: PutCommentReactionInput, opts?: client.RequestOptions): Promise<void>;
async putFile(params: PutFileInput, opts?: client.RequestOptions): Promise<PutFileOutput>;
async putRepositoryTriggers(params: PutRepositoryTriggersInput, opts?: client.RequestOptions): Promise<PutRepositoryTriggersOutput>;
async tagResource(params: TagResourceInput, opts?: client.RequestOptions): Promise<void>;
async testRepositoryTriggers(params: TestRepositoryTriggersInput, opts?: client.RequestOptions): Promise<TestRepositoryTriggersOutput>;
async untagResource(params: UntagResourceInput, opts?: client.RequestOptions): Promise<void>;
async updateApprovalRuleTemplateContent(params: UpdateApprovalRuleTemplateContentInput, opts?: client.RequestOptions): Promise<UpdateApprovalRuleTemplateContentOutput>;
async updateApprovalRuleTemplateDescription(params: UpdateApprovalRuleTemplateDescriptionInput, opts?: client.RequestOptions): Promise<UpdateApprovalRuleTemplateDescriptionOutput>;
async updateApprovalRuleTemplateName(params: UpdateApprovalRuleTemplateNameInput, opts?: client.RequestOptions): Promise<UpdateApprovalRuleTemplateNameOutput>;
async updateComment(params: UpdateCommentInput, opts?: client.RequestOptions): Promise<UpdateCommentOutput>;
async updateDefaultBranch(params: UpdateDefaultBranchInput, opts?: client.RequestOptions): Promise<void>;
async updatePullRequestApprovalRuleContent(params: UpdatePullRequestApprovalRuleContentInput, opts?: client.RequestOptions): Promise<UpdatePullRequestApprovalRuleContentOutput>;
async updatePullRequestApprovalState(params: UpdatePullRequestApprovalStateInput, opts?: client.RequestOptions): Promise<void>;
async updatePullRequestDescription(params: UpdatePullRequestDescriptionInput, opts?: client.RequestOptions): Promise<UpdatePullRequestDescriptionOutput>;
async updatePullRequestStatus(params: UpdatePullRequestStatusInput, opts?: client.RequestOptions): Promise<UpdatePullRequestStatusOutput>;
async updatePullRequestTitle(params: UpdatePullRequestTitleInput, opts?: client.RequestOptions): Promise<UpdatePullRequestTitleOutput>;
async updateRepositoryDescription(params: UpdateRepositoryDescriptionInput, opts?: client.RequestOptions): Promise<void>;
async updateRepositoryName(params: UpdateRepositoryNameInput, opts?: client.RequestOptions): Promise<void>;
 
static ApiMetadata: client.ApiMetadata;
}

§Constructors

§
new CodeCommit(apiFactory: client.ApiFactory)
[src]

§Methods

§
associateApprovalRuleTemplateWithRepository(params: AssociateApprovalRuleTemplateWithRepositoryInput, opts?: client.RequestOptions): Promise<void>
[src]

Creates an association between an approval rule template and a specified repository. Then, the next time a pull request is created in the repository where the destination reference (if specified) matches the destination reference (branch) for the pull request, an approval rule that matches the template conditions is automatically created for that pull request. If no destination references are specified in the template, an approval rule that matches the template contents is created for all pull requests in that repository.

§

Creates an association between an approval rule template and one or more specified repositories.

§

Returns information about one or more merge conflicts in the attempted merge of two commit specifiers using the squash or three-way merge strategy.

§

Removes the association between an approval rule template and one or more specified repositories.

§
batchGetCommits(params: BatchGetCommitsInput, opts?: client.RequestOptions): Promise<BatchGetCommitsOutput>
[src]

Returns information about the contents of one or more commits in a repository.

§

Returns information about one or more repositories.

Note: The description field for a repository accepts all HTML characters and all valid Unicode characters. Applications that do not HTML-encode the description and display it in a webpage can expose users to potentially malicious code. Make sure that you HTML-encode the description field in any application that uses this API to display the repository description on a webpage.

§

Creates a template for approval rules that can then be associated with one or more repositories in your AWS account. When you associate a template with a repository, AWS CodeCommit creates an approval rule that matches the conditions of the template for all pull requests that meet the conditions of the template. For more information, see "AssociateApprovalRuleTemplateWithRepository".

§
createBranch(params: CreateBranchInput, opts?: client.RequestOptions): Promise<void>
[src]

Creates a branch in a repository and points the branch to a commit.

Note: Calling the create branch operation does not set a repository's default branch. To do this, call the update default branch operation.

§
createCommit(params: CreateCommitInput, opts?: client.RequestOptions): Promise<CreateCommitOutput>
[src]

Creates a commit for a repository on the tip of a specified branch.

§

Creates a pull request in the specified repository.

§

Creates an approval rule for a pull request.

§
createRepository(params: CreateRepositoryInput, opts?: client.RequestOptions): Promise<CreateRepositoryOutput>
[src]

Creates a new, empty repository.

§

Creates an unreferenced commit that represents the result of merging two branches using a specified merge strategy. This can help you determine the outcome of a potential merge. This API cannot be used with the fast-forward merge strategy because that strategy does not create a merge commit.

Note: This unreferenced merge commit can only be accessed using the GetCommit API or through git commands such as git fetch. To retrieve this commit, you must specify its commit ID or otherwise reference it.

§

Deletes a specified approval rule template. Deleting a template does not remove approval rules on pull requests already created with the template.

§
deleteBranch(params: DeleteBranchInput, opts?: client.RequestOptions): Promise<DeleteBranchOutput>
[src]

Deletes a branch from a repository, unless that branch is the default branch for the repository.

§

Deletes the content of a comment made on a change, file, or commit in a repository.

§
deleteFile(params: DeleteFileInput, opts?: client.RequestOptions): Promise<DeleteFileOutput>
[src]

Deletes a specified file from a specified branch. A commit is created on the branch that contains the revision. The file still exists in the commits earlier to the commit that contains the deletion.

§

Deletes an approval rule from a specified pull request. Approval rules can be deleted from a pull request only if the pull request is open, and if the approval rule was created specifically for a pull request and not generated from an approval rule template associated with the repository where the pull request was created. You cannot delete an approval rule from a merged or closed pull request.

§
deleteRepository(params: DeleteRepositoryInput, opts?: client.RequestOptions): Promise<DeleteRepositoryOutput>
[src]

Deletes a repository. If a specified repository was already deleted, a null repository ID is returned.

! IMPORTANT: ! Deleting a repository also deletes all associated objects and metadata. ! After a repository is deleted, all future push calls to the deleted repository fail.

§

Returns information about one or more merge conflicts in the attempted merge of two commit specifiers using the squash or three-way merge strategy. If the merge option for the attempted merge is specified as FAST_FORWARD_MERGE, an exception is thrown.

§

Returns information about one or more pull request events.

§
disassociateApprovalRuleTemplateFromRepository(params: DisassociateApprovalRuleTemplateFromRepositoryInput, opts?: client.RequestOptions): Promise<void>
[src]

Removes the association between a template and a repository so that approval rules based on the template are not automatically created when pull requests are created in the specified repository. This does not delete any approval rules previously created for pull requests through the template association.

§

Evaluates whether a pull request has met all the conditions specified in its associated approval rules.

§

Returns information about a specified approval rule template.

§
getBlob(params: GetBlobInput, opts?: client.RequestOptions): Promise<GetBlobOutput>
[src]

Returns the base-64 encoded content of an individual blob in a repository.

§
getBranch(params?: GetBranchInput, opts?: client.RequestOptions): Promise<GetBranchOutput>
[src]

Returns information about a repository branch, including its name and the last commit ID.

§
getComment(params: GetCommentInput, opts?: client.RequestOptions): Promise<GetCommentOutput>
[src]

Returns the content of a comment made on a change, file, or commit in a repository.

Note: Reaction counts might include numbers from user identities who were deleted after the reaction was made. For a count of reactions from active identities, use GetCommentReactions.

§

Returns information about reactions to a specified comment ID. Reactions from users who have been deleted will not be included in the count.

§

Returns information about comments made on the comparison between two commits.

Note: Reaction counts might include numbers from user identities who were deleted after the reaction was made. For a count of reactions from active identities, use GetCommentReactions.

§

Returns comments made on a pull request.

Note: Reaction counts might include numbers from user identities who were deleted after the reaction was made. For a count of reactions from active identities, use GetCommentReactions.

§
getCommit(params: GetCommitInput, opts?: client.RequestOptions): Promise<GetCommitOutput>
[src]

Returns information about a commit, including commit message and committer information.

§
getDifferences(params: GetDifferencesInput, opts?: client.RequestOptions): Promise<GetDifferencesOutput>
[src]

Returns information about the differences in a valid commit specifier (such as a branch, tag, HEAD, commit ID, or other fully qualified reference). Results can be limited to a specified path.

§
getFile(params: GetFileInput, opts?: client.RequestOptions): Promise<GetFileOutput>
[src]

Returns the base-64 encoded contents of a specified file and its metadata.

§
getFolder(params: GetFolderInput, opts?: client.RequestOptions): Promise<GetFolderOutput>
[src]

Returns the contents of a specified folder in a repository.

§
getMergeCommit(params: GetMergeCommitInput, opts?: client.RequestOptions): Promise<GetMergeCommitOutput>
[src]

Returns information about a specified merge commit.

§

Returns information about merge conflicts between the before and after commit IDs for a pull request in a repository.

§
getMergeOptions(params: GetMergeOptionsInput, opts?: client.RequestOptions): Promise<GetMergeOptionsOutput>
[src]

Returns information about the merge options available for merging two specified branches. For details about why a merge option is not available, use GetMergeConflicts or DescribeMergeConflicts.

§
getPullRequest(params: GetPullRequestInput, opts?: client.RequestOptions): Promise<GetPullRequestOutput>
[src]

Gets information about a pull request in a specified repository.

§

Gets information about the approval states for a specified pull request. Approval states only apply to pull requests that have one or more approval rules applied to them.

§

Returns information about whether approval rules have been set aside (overridden) for a pull request, and if so, the Amazon Resource Name (ARN) of the user or identity that overrode the rules and their requirements for the pull request.

§
getRepository(params: GetRepositoryInput, opts?: client.RequestOptions): Promise<GetRepositoryOutput>
[src]

Returns information about a repository.

Note: The description field for a repository accepts all HTML characters and all valid Unicode characters. Applications that do not HTML-encode the description and display it in a webpage can expose users to potentially malicious code. Make sure that you HTML-encode the description field in any application that uses this API to display the repository description on a webpage.

§

Gets information about triggers configured for a repository.

§

Lists all approval rule templates in the specified AWS Region in your AWS account. If an AWS Region is not specified, the AWS Region where you are signed in is used.

§

Lists all approval rule templates that are associated with a specified repository.

§
listBranches(params: ListBranchesInput, opts?: client.RequestOptions): Promise<ListBranchesOutput>
[src]

Gets information about one or more branches in a repository.

§
listPullRequests(params: ListPullRequestsInput, opts?: client.RequestOptions): Promise<ListPullRequestsOutput>
[src]

Returns a list of pull requests for a specified repository. The return list can be refined by pull request status or pull request author ARN.

§
listRepositories(params?: ListRepositoriesInput, opts?: client.RequestOptions): Promise<ListRepositoriesOutput>
[src]

Gets information about one or more repositories.

§

Lists all repositories associated with the specified approval rule template.

§

Gets information about AWS tags for a specified Amazon Resource Name (ARN) in AWS CodeCommit. For a list of valid resources in AWS CodeCommit, see CodeCommit Resources and Operations in the_AWS CodeCommit User Guide_.

§

Merges two branches using the fast-forward merge strategy.

§

Merges two branches using the squash merge strategy.

§

Merges two specified branches using the three-way merge strategy.

§

Attempts to merge the source commit of a pull request into the specified destination branch for that pull request at the specified commit using the fast-forward merge strategy. If the merge is successful, it closes the pull request.

§

Attempts to merge the source commit of a pull request into the specified destination branch for that pull request at the specified commit using the squash merge strategy. If the merge is successful, it closes the pull request.

§

Attempts to merge the source commit of a pull request into the specified destination branch for that pull request at the specified commit using the three-way merge strategy. If the merge is successful, it closes the pull request.

§
overridePullRequestApprovalRules(params: OverridePullRequestApprovalRulesInput, opts?: client.RequestOptions): Promise<void>
[src]

Sets aside (overrides) all approval rule requirements for a specified pull request.

§

Posts a comment on the comparison between two commits.

§

Posts a comment on a pull request.

§
postCommentReply(params: PostCommentReplyInput, opts?: client.RequestOptions): Promise<PostCommentReplyOutput>
[src]

Posts a comment in reply to an existing comment on a comparison between commits or a pull request.

§
putCommentReaction(params: PutCommentReactionInput, opts?: client.RequestOptions): Promise<void>
[src]

Adds or updates a reaction to a specified comment for the user whose identity is used to make the request. You can only add or update a reaction for yourself. You cannot add, modify, or delete a reaction for another user.

§
putFile(params: PutFileInput, opts?: client.RequestOptions): Promise<PutFileOutput>
[src]

Adds or updates a file in a branch in an AWS CodeCommit repository, and generates a commit for the addition in the specified branch.

§

Replaces all triggers for a repository. Used to create or delete triggers.

§
tagResource(params: TagResourceInput, opts?: client.RequestOptions): Promise<void>
[src]

Adds or updates tags for a resource in AWS CodeCommit. For a list of valid resources in AWS CodeCommit, see CodeCommit Resources and Operations in the AWS CodeCommit User Guide.

§

Tests the functionality of repository triggers by sending information to the trigger target. If real data is available in the repository, the test sends data from the last commit. If no data is available, sample data is generated.

§
untagResource(params: UntagResourceInput, opts?: client.RequestOptions): Promise<void>
[src]

Removes tags for a resource in AWS CodeCommit. For a list of valid resources in AWS CodeCommit, see CodeCommit Resources and Operations in the AWS CodeCommit User Guide.

§

Updates the content of an approval rule template. You can change the number of required approvals, the membership of the approval rule, and whether an approval pool is defined.

§

Updates the description for a specified approval rule template.

§

Updates the name of a specified approval rule template.

§
updateComment(params: UpdateCommentInput, opts?: client.RequestOptions): Promise<UpdateCommentOutput>
[src]

Replaces the contents of a comment.

§
updateDefaultBranch(params: UpdateDefaultBranchInput, opts?: client.RequestOptions): Promise<void>
[src]

Sets or changes the default branch name for the specified repository.

Note: If you use this operation to change the default branch name to the current default branch name, a success message is returned even though the default branch did not change.

§

Updates the structure of an approval rule created specifically for a pull request. For example, you can change the number of required approvers and the approval pool for approvers.

§
updatePullRequestApprovalState(params: UpdatePullRequestApprovalStateInput, opts?: client.RequestOptions): Promise<void>
[src]

Updates the state of a user's approval on a pull request. The user is derived from the signed-in account when the request is made.

§

Replaces the contents of the description of a pull request.

§

Updates the status of a pull request.

§

Replaces the title of a pull request.

§
updateRepositoryDescription(params: UpdateRepositoryDescriptionInput, opts?: client.RequestOptions): Promise<void>
[src]

Sets or changes the comment or description for a repository.

Note: The description field for a repository accepts all HTML characters and all valid Unicode characters. Applications that do not HTML-encode the description and display it in a webpage can expose users to potentially malicious code. Make sure that you HTML-encode the description field in any application that uses this API to display the repository description on a webpage.

§
updateRepositoryName(params: UpdateRepositoryNameInput, opts?: client.RequestOptions): Promise<void>
[src]

Renames a repository. The repository name must be unique across the calling AWS account. Repository names are limited to 100 alphanumeric, dash, and underscore characters, and cannot include certain characters. The suffix .git is prohibited. For more information about the limits on repository names, see Limits in the AWS CodeCommit User Guide.

§Static Properties