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

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

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:

pull-request-codecommit

Auto merge

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

pull-request-codecommit --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:

pull-request-codecommit --branch my-target-branch

Testing locally

./create_repo.sh

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.3.1.tar.gz (14.4 kB view details)

Uploaded Source

File details

Details for the file pull-request-codecommit-0.3.1.tar.gz.

File metadata

  • Download URL: pull-request-codecommit-0.3.1.tar.gz
  • Upload date:
  • Size: 14.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for pull-request-codecommit-0.3.1.tar.gz
Algorithm Hash digest
SHA256 6fe52d61f10b626a410a055704fab4967e9735369f516fdc406dded167284cec
MD5 9bb7924593ddcf24d66da94b5615c43f
BLAKE2b-256 242f7843ccde6b46dc692f4b3288a3ce3adde537d32d0e4d09acb0dbb3c591b9

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