Giter Site home page Giter Site logo

ksercs / gitcherry Goto Github PK

View Code? Open in Web Editor NEW
5.0 2.0 1.0 63.76 MB

One-click cherry-picking and pull request creating right in Visual Studio Code

License: MIT License

TypeScript 98.01% JavaScript 1.99%
git vscode vscode-extension cherry-pick pull-request pull-request-management

gitcherry's People

Contributors

jtoming830 avatar ksercs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

doytsujin

gitcherry's Issues

Reviewers are not added to pull request anymore

Log

INFO: Payload is getting
INFO: First commit: {"hash":"7be3e796c35a79ac20069300ef2778702da9df3a","date":"2021-05-03T15:13:47+03:00","message":"first","refs":"","body":"","author_name":"ksercs","author_email":"[email protected]"}
INFO: Title input is shown
INFO: Accepted title: first
INFO: Description input is created
INFO: Accepted description: 
INFO: start pull requests creating
INFO: prepared payload: {"title":"first","description":"","upstreams":["19_2"],"reviewers":[],"labels":["WIP"]}
INFO: branch: m__master, localBranch: m, baseUpstreamBranch: master, upstreams: 19_2
INFO: git checkout m__19_2
INFO: now at branch: m__19_2
INFO: Commits are pushed to the branch m__19_2
INFO: Start PR creating: 19_2
INFO: login: ksercs
INFO: Pull request creating payload: {"owner":"jtoming830","repo":"dxCherry","base":"19_2","head":"ksercs:m__19_2","title":"first","body":""}
INFO: Pull request is created
INFO: PR is customized
INFO: checkout back to m__master
INFO: git checkout m__master
INFO: now at branch: m__master

Command GitCherry.cherry_pick not found

Steps to reproduce:

  1. Installed gitcherry
  2. Clicked on cherry pick

Actual result:
Getting command 'gitcherry.cherry_pick' not found

When I click on the "cherries" I get that message. When I click on the right pointing arrow. I get GetCherry.pull_request not found

It seems like it is missing something installed?
Expected result:

Log

<!--
Please attach the log lines from `GitCherry` output channel.
-->

Standalone pull request creating raises NoCommitError

Log

INFO: Payload is getting
INFO: First commit: undefined
ERROR: There is no new commits in "contentReady_renovation__21_2" branch
ERROR: There is no new commits in "contentReady_renovation__21_2" branch
ERROR: no payload

It is not possible to cancel cherry picking operation if finish cherry picking manually

Steps to reproduce:

  1. Start cherry picking to branch where conflicts are exists.
  2. Extension says that you should resolve conflicts.
  3. Resolve conflicts, commit them and push to remote branch.
  4. Checkout to master or another branch.
  5. Open extension and click Cancel Cherry Pick button.

Current behaviour:
Error occurred and previous cherry picking is not canceled. Only after VSCode reloading cherry picking continues working.

Expected behaviour:
Cancel cherry picking should works if user finish cherry picking manually.

Add a possibility to cherry pick when there is not staged changes

Steps to reproduce

  1. Change 2 files
  2. Commit changed in the single file
  3. Try to cherry-pick

Actual result: Not staged changes are found. error is raised
Expected result: No errors is raised, cherry picking is successful

Log

INFO: You are logged in GitHub as ksercs
INFO: Payload is getting
INFO: First commit: {"hash":"3a6eb656538dc4c266b525bc91a0547b4c00d74d","date":"2021-06-13T19:06:23+03:00","message":"first change","refs":"HEAD -> jjj__master","body":"","author_name":"ksercs","author_email":"[email protected]"}
INFO: branch: jjj__master, localBranch: jjj, baseUpstreamBranch: master, upstreams: 20_1
INFO: start cherry picking
INFO: prepared payload: {"0":{"title":"first change","description":"","upstreams":["20_1"],"reviewers":[],"labels":[]}}
INFO: commits are picked: firstCommit=[object Object], lastCommit=[object Object]
INFO: cherryState set: {"upstreams":["20_1"],"firstCommit":"3a6eb656538dc4c266b525bc91a0547b4c00d74d","lastCommit":"3a6eb656538dc4c266b525bc91a0547b4c00d74d","isAborted":false,"currentBranchToCherryPick":""}
INFO: start cherry-picking to 20_1
INFO: no local branch jjj__20_1
INFO: git fetch upstream 20_1
INFO: git checkout upstream/20_1
ERROR: Not staged changes are found. Your local changes to the following files would be overwritten by checkout:
	README.md
Please commit your changes or stash them before you switch branches.
Aborting

ERROR: Error: error: Your local changes to the following files would be overwritten by checkout:
	README.md
Please commit your changes or stash them before you switch branches.
Aborting

Offer: maybe we should make stash before check out during cherry pick and make stash apply after that?

The 'refusing to allow an OAuth App to create or update workflow' error is not handled

Steps to reproduce:

  1. Make sure that you have invalid login information for github stored in Windows Credentials Manager
  2. Create a pull request for a branch (on upstream) created after April 2021

Actual result: dxCherry shows that it attempted to make a pull request and then nothing. In fact, the following error appeared (in log for dxCherry): ! [remote rejected] master -> master (refusing to allow an OAuth App to create or update workflow .github/workflows/file.yml without workflow scope)

Expected result: dxSherry shows that this error appeared

Solution is described at: gitextensions/gitextensions#4916 (comment)

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.