Code Monkey home page Code Monkey logo

git-coco's Introduction

git-coco

git-coco is a plugin for git that makes it easier to work with AWS CodeCommit repositories.

Usage

To use git-coco, just make sure it's in your path somewhere (either by copying it to somewhere like /usr/local/bin or adding the git-coco folder into your PATH variable).

The following commands are added to git:

  • git coco ls

List all CodeCommit repositories.

  • git coco create <repo>

Creates a new repository in CodeCommit and outputs the clone url.

  • git coco clone <repo>

Clones the named repository from codecommit and configures it correctly for use with the CodeCommit git credential helper.

  • git coco rm <repo>

Removes the named repository from CodeCommit.

  • git coco init <repo>

Performs the equivalent of a git coco create followed by git coco clone. The result is a checked out copy of a new CodeCommit repository

  • git coco pr <from> <to>

Creates a pull request for the current repository that compares <from> (or the current branch if omitted) with <to> (or master if omitted).

  • git coco prlist <repo>

Lists all open pull requests for a specified repository. If repository is not specified, git-coco will search for a valid repository from git remote -v. Pull request information includes:

  • Pull Request ID
  • Pull Request Title
  • Pull Request Destination Branch
  • Pull Request Source Branch
  • Pull Request Author

git-coco's People

Contributors

jpeddicord avatar stilvoid avatar zqumei-amzn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

git-coco's Issues

git coco create does not work. @qumei

When using git create it errors out.
git coco create test-repo "Example Description"

Description does not get passed into the create function and fails the argument check.
Usage: git coco create <repo> <description>

The description variable in the codecommit command also need to be wrapped in quotation marks to prevent only the first word from being submitted as the description.

git coco pr fails when using HTTPS (GRC) with profile in remote url

When using a profile name in the remote url for a repository while using HTTPS (GRC)

git clone codecommit://CodeCommitProfile@MyDemoRepo my-demo-repo

This causes an issue with the git coco pr command since it pulls in the profile name and assigns it to the $repo variable.

An error occurred (InvalidRepositoryNameException) when calling the CreatePullRequest operation: The repository name is not valid. Repository names can be any valid combination of letters, numbers, periods, underscores, and dashes between 1 and 100 characters in length. Names are case sensitive. For more information, see Limits in the AWS CodeCommit User Guide.
https://console.aws.amazon.com/codesuite/codecommit/repositories/CodeCommitProfile@MyDemoRepo/pull-requests//changes

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.