Skip to main content

pull-request-codecommit creates a PR within CodeCommit based on your commit messages.

Project description

pull-request-codecommit

License Maintenance GitHub release Continuous Integration codecov

This tool makes it easy to create pull requests for AWS CodeCommit. It relies on the Conventional Commits standard. It looks at the git commits between the current and the destination branch. Then it tries to create a pull request with this information as input.

Installation

You can install the pull-request-codecommit tool by running the following command:

pip install pull-request-codecommit

You can update an existing installation with the following command:

pip install --upgrade pull-request-codecommit

Installation in venv

Typically, you would want to run your dependencies isolated. You can install [pull-request-codecommit][pull-request-codecommit] in a venv using the following commands:

python -m venv .venv
source .venv/bin/activate
pip install pull-request-codecommit

You need to add the .venv/bin/ path to your system PATH. This is needed for the git pr commands to function.

Configuration

The tool uses the following file ~/.aws/pull-request-codecommit. It will first load the default profile and then, if provided the profile specific settings.

[profile default]
branch=main

[profile acme-profile]
branch=develop

Usage

To use pull-request-codecommit you just execute the following command:

git pr

Auto merge

In some cases it makes sense to directly merge the pull request, in those cases you can use:

git pr --auto-merge

This will directly merge the pull request using the fast-forward merge strategy. If the merge is successful, it will:

  • Merge and close the pull request.
  • Checkout the destination branch.
  • Pull the latest changes. (This will pull the just merged changes locally)
  • Remove the working branch.

From this point you are ready for the next change.

Update existing pull request

When a pull requests exists a proposal is made to update the existing pull request.

Overwrite target branch

When you want to overwrite the target branch you need to supply the --branch <name> option:

git pr --branch my-target-branch

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pull_request_codecommit-0.5.13.tar.gz (13.2 kB view details)

Uploaded Source

Built Distribution

pull_request_codecommit-0.5.13-py3-none-any.whl (17.1 kB view details)

Uploaded Python 3

File details

Details for the file pull_request_codecommit-0.5.13.tar.gz.

File metadata

File hashes

Hashes for pull_request_codecommit-0.5.13.tar.gz
Algorithm Hash digest
SHA256 85dd633cbded3d4644872938ee839a47bad67a4b76fe4dfff34b929e356961b8
MD5 232f7618e4d7500a0229bcbfa3878e02
BLAKE2b-256 9afe6cc751f3c4491696d40898257cffbf8e1b5853513156d2c5672de3c8c262

See more details on using hashes here.

Provenance

File details

Details for the file pull_request_codecommit-0.5.13-py3-none-any.whl.

File metadata

File hashes

Hashes for pull_request_codecommit-0.5.13-py3-none-any.whl
Algorithm Hash digest
SHA256 9d289222dc982c55fb00acf8714c293d40c2771816a40aa558ec5932fe6491d4
MD5 b0b0dd3f7643ac5ad2842c2ab877575e
BLAKE2b-256 c7b42a44e68e8caf8b25a328b489af7bee063f01ceaeb0c307519f970407fc28

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page