AWS CodeCommit is a fully-managed source control service that makes it easy for companies to host secure and highly scalable private Git repositories.
This is a workspace where you can find the following AWS SDK for JavaScript version 3 (v3) AWS CodeBuild examples:
- Create a branch
- Commit changes to repo
- Create a pull request
- Create a repository
- Delete a branch
- Delete a repository
- Describe pull request events
- Get merge options
- Get informtion about a pull request
- Get informatino about a repository
- List your repositories
- Merge branches
Note: All code examples are written in ECMAscript 6 (ES6). For guidelines on converting to CommonJS, see JavaScript ES6/CommonJS syntax.
-
Clone the AWS SDK Code Samples repo to your local environment. See the Github documentation for instructions.
-
Install the dependencies listed in the package.json.
npm install node -g
cd javascriptv3/example_code/codecommit
npm install
-
In your text editor, update user variables specified in the
Inputssection of the sample file. -
Run sample code:
cd src
node [example name].js
For more information see, the README.