Coder Social home page Coder Social logo

serhioromano / vscode-gitflow Goto Github PK

View Code? Open in Web Editor NEW
38.0 38.0 8.0 1.55 MB

Git Flow extension for Visual Studio Code

Home Page: https://marketplace.visualstudio.com/items?itemName=Serhioromano.vscode-gitflow

License: MIT License

TypeScript 100.00%
git git-flow git-flow-avh gitflow version-manager versioning vscode vscode-extension

vscode-gitflow's People

Contributors

dependabot[bot] avatar luozhihua avatar myfonj avatar raddishiow avatar serhioromano avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

vscode-gitflow's Issues

`pre-merge-commit` seems not triggered during `Feature - Finish` action

The pre-merge-commit does not seem to be triggered during the Feature - Finish action.

I am using husky to manage my git hooks. My pre-merge-commit script is triggered when I do a manual merge from the feature branch into the develop branch.

My requirement is to increment the version (npm --no-git-tag-version version minor) of the package.json when I perform the Feature - Finish action.

Hints and suggestion are well appreciated.

Feature request : Add option to turn off `git flow init` prompt

As someone who works on a lot of projects which don't use the git flow structure it would be nice to have a vscode setting (for global and workspace) to disable the notification from popping up on every vscode startup.

Example of the notification in question:
image

Missing icons on hover for features in the Gitflow view

There are no icons to click when hovering over the features in the Gitflow view like there are for releases, hotfix, ...
Therefore, in order to finish a feature, you have to ctrl-shift-p + Git-flow: Feature - finish.
It's not really a big deal to not have the icons, but they would make the process even easier.

Finish Release: vx.x.x ERROR

Error executing: "/usr/bin/git" flow release finish -m "Finish Release: 0.1.10" -T "0.1.10" 0.1.10 : 
Error: Command failed: "/usr/bin/git" flow release finish -m "Finish Release: 0.1.10" -T "0.1.10" 0.1.10 Fatal: 
Branch 'release/Release:' does not exist and is required.

image

VSCODE:

  • 版本: 1.67.0
  • 提交: 57fd6d0195bb9b9d1b49f6da5db789060795de47
  • 日期: 2022-05-04T12:14:47.100Z
  • Electron: 17.4.1
  • Chromium: 98.0.4758.141
  • Node.js: 16.13.0
  • V8: 9.8.177.13-electron.0
  • OS: Darwin x64 21.5.0

[Suggestion] Progress indicator

It would be nice, if possible, to have some kind of progress indication for when the extension is doing something - like finishing a release.

At the moment, there is no indication that anything is happening, apart from maybe noticing the branch change in VS Code.

Multilingual support

I use the Git Flow extension daily, but I would really like it to be translated into my language, which is Brazilian Portuguese.

Is there any multilingual support available today? I couldn't find anything about it.

If needed, I can help with the translation demand into my language.

Thanks for the attention and response.

add option to edit commit message of merges

Currently all merges are commited with a standard merge message for bugfixes, hotfixes, features etc.

it would be nice to be able to edit these messages separately for each merge (into develop and into master).

Create options for default finish behaviors

The finish behaviors on this extension are great, but one suggestion is to create VS Code settings for default finish behaviors, in that way when we ask for finish a branch does come already pre-selected.

extension Error: 'flow' is not a git command

Error executing: "/usr/bin/git" flow log : Error: Command failed: "/usr/bin/git" flow log
git: 'flow' is not a git command. See 'git --help'.
The most similar commands are
reflog show
To use Git Flow extension please install Git flow (AVH).

command 'gitflow.quickPick' not found

Just installed version 1.3.11 on VS Code 1.69.2 on my mac 12.5 (Intel).

When I click on Git Flow on the bottom blue bar I get a popup that says: command 'gitflow.quickPick' not found.

How do I fix this?
I do have gitflow installed and use it from the mac terminal all the time. And I have set the gitflow.path in setting.

Request moving Summary of Actions to output window

The summary can be quite long in some cases and it can be difficult to read using the notification window. It would look much nicer to view it in an output window instead. Thanks for the great extension.

Potential issue with case for branch folder names

I've not yet been able to track down exactly what is happening, but I've had some weirdness with the case of the branch folder names and that affecting whether the branch correctly shows in the "GitFlow" panel of the "Source Control" panel.

If the folder name for the features branch I create is "Features/", it shows in this panel, but doesn't appear to be recognised by Git Flow as a Feature branch. If it's set to "features/" then it shows as a Feature branch for Git Flow purposes (and in GitKraken), but doesn't show in the panel.

I'll try and trace where this might be happening...

I'm on macOS Monterey and the latest git version, and "core.ignorecase" is set to false in the global git config.

If you need any more info, I'd be glad to provide.

Label features and co

In a label of feature, the allow caractères are only [a-z] and -.
It shoud be display when you ask for it ?

Error executing `git-flow config list` command

Summary:
I'm encountering an error while using the "GitFlow" extension in Visual Studio Code. When I try to execute the git-flow config list command, it fails with the following error message:

ERROR: (61ms) [/opt/homebrew/bin/git-flow config list] ERROR: Error: Command failed: /opt/homebrew/bin/git-flow config list

Environment:

  • Operating System: [e.g., macOS Big Sur 11.5.1]
  • Visual Studio Code version: [e.g., 1.60.1]
  • Git version: [e.g., 2.39.2 (Apple Git-143)]
  • "GitFlow" extension version: [e.g., 1.0.0]

Steps to Reproduce:

  1. Install and activate the "GitFlow" extension in Visual Studio Code.
  2. Open a project with Git version control initialized.
  3. Run the git-flow config list command.

Expected Behavior:
The git-flow config list command should execute successfully and display the Git-Flow configuration details.

Actual Behavior:
The command fails to execute, and the error message mentioned above is shown in the output.

Additional Information:

  • The path to the git-flow binary is correctly set in the extension settings as /opt/homebrew/bin/git-flow.
  • The git-flow binary is installed and executable in the specified path.

Screenshots:
If applicable, please attach any relevant screenshots that might help in understanding the issue.

Additional Context:
I've already tried the following troubleshooting steps:

  • Updating the extension to the latest version.
  • Verifying that the path to the git-flow binary is set correctly.
  • Checking for compatibility between the extension, Git version, and git-flow version.
  • Restarting Visual Studio Code after making configuration changes.

Despite these efforts, the issue persists. I'm unable to use the git-flow commands through the extension.

Any assistance or insights into resolving this problem would be greatly appreciated.

Add option for auto publish a branch

As a suggestion add option on VS Code extension settings for auto publish a branch on starting a branch, like in features, releases. Maybe create a checkbox for each branch type, so we have more control.

Delete local tag

If the tag has not yet been published, allow me to delete it. Often you build some versions that you finally do not publish.

I can't release the branch

I create a branch prepared for release and was about to release the release and I see that the buttons to the end of the release is not, I released the course through the console but still how to do it through the extension?

What it looks like for me: https://i.imgur.com/vzZgiTA.jpeg

Pb with space in the local directory

When there is a space un the local directy, the git init failed

PS ....\visual studio Code> cd c:\Users\DXPC9379\visual studio Code\projet
Set-Location : Impossible de trouver un paramètre positionnel acceptant l'argument « studio ».
Au caractère Ligne:1 : 1
+ cd c:\Users\DXPC9379\visual studio Code\projet ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument : (:) [Set-Location], ParameterBindingException
    + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.SetLocationCommand
 
PS ....\visual studio Code> git flow init -f
Fatal: Working tree contains unstaged changes. Aborting.

Startup takes too long

  • Issue Type: Bug
  • Extension Name: vscode-gitflow
  • Extension Version: 1.3.11
  • OS Version: Windows_NT x64 10.0.19044
  • VS Code version: 1.69.2

image

getMonth bug

Hello!

Before, thx for great extension!

But)...

Javascript date getMonth() method returns the month in the specified date according to local time. The value returned by getMonth() is an integer between 0 and 11. 0 corresponds to January, 1 to February, and so on.

.replace(/\bmm\b/i, `${date.getMonth() < 10 ? '0' : ''}${date.getMonth()}`)

Why does a feature have to match regex?

Hi i;'m trying to make a feature
MYPROJECT-1234_theFeatureName
and then i get an error in saying feature name have to match [a-zA-Z0-9\-\.]*
Why is that?
this name is perfectly legal in sourctree

RDG

branches with more than 1 slash are truncated

hi,
when i have a branch with 2 or more slashes in its name, the extension truncates the name
For example:
feature/something/something-else/another-thinggets truncated and it shows feature/something

Capture d’écran 2022-07-15 à 09 30 57

replace SPACE with _ underscore

Hi,

When i start a new feature i ussualy give it a name prefixed with a number. Sourcetree is nice enough to replace the spaces in the branchname i hapen to type with underscores. Since spaces are illegal in branchnames apparantly
Vscode-gitflow does not do this. in fact it just does not create the branch at all without any feedback.
So when i create a branch in vscode-gitflow MYPROJECT-12345_This is a stupid branch i expect it to be changed to the legal branchname MYPROJECT-12345_This_is_a_stupid_branch so it can and will be created.

tnx
RDG

Feature request: make current branch better visible

I find it hard to spot which branch is current. Right now the label 'current' after the branchname often falls outside the panel with long branchnames.
So is it possible to give the current branch either a different color (green), or an icon in front of the branchname.
tnx
RDG

Not working on Windows WSL for Ubuntu 20.04

This extension works fine for me on Windows 10 but not on WSL with Ubuntu 20.04.

I'm not using a Windows mounted folder, I'm working in a project folder under $HOME.

I've installed the git flow extension:

$ sudo apt install git-flow

Opening GitLens Accordian to show GitFlow and it just appears to be stuck loading (progress bar is moving) but it never loads
I've observed the same symptoms on multiple WSL distro installs of Ubuntu.
I can't find an Git Flow log under the Terminal / Output tab to see what's going on so also unable to diagnose.

I saw your instructions for MacOS to configure gitflow.path parameter to /usr/local/bin/git-flow.
Is something similar required? If so, /usr/local/bin/git-flow does not exits on the Ubuntu install.

I really appreciate this plugin and rather hopeful I can get it to work on WSL / Ubuntu.

Prefer `git.path` VSC preference over Git on system path and enable portable mode

This extension currently does not work with "portable" settings scenario: having stand-alone git executables unpacked on path referenced by git.path in VSCode enables VSC to perform common "native" Git operations as well as most other Git -related extensions.

Not having git executable in system's "%path%" currently yields

Command failed: git version 'git' is not recognized as an internal or external command, operable program or batch file.

error and makes this extension fail upon launch.

command 'gitflow.switchRepo' not found

I have the folowing error :
Error running command gitflow.switchRepo: command 'gitflow.switchRepo' not found. This is likely caused by the extension that contributes gitflow.switchRepo.

I'm in 1.3.22 version

Making this extension available on OpenVSX marketplace

First thank you for this great extension!

I have been using your extension with VsCode on my work hours and really enjoying it.
But i like to keep my personal computer free with only OSS software so I prefer to use VsCodium (an OSS fork of VsCode).
The thing is that VsCodium uses OpenVSX as a marketplace (because Microsoft limits the uses of it's marketplace to VsCode only).

So i was wondering if you would be open to make it available on this alternate marketplace.
It is supposed to be pain free but i haven't actually tried it or anything soooo i'm no one to tell.
Here is the documentation on how to proceed if you are interested.
There is also a bot that update the packages nightly.

I'll try to help you in any way i can.
Thank you for your time!

Not working under OSX (git-flow config list error)

I can't seem to get the extension to work properly under MacOS. The gitflow and versions area are blank and I get an error when I try to refresh either.

Notes:

  • I have manually entered the git-flow path as suggested.
  • I am able to run git flow commands from the command line using git flow... so it seems git-flow is installed correctly
  • git-flow is installed using homebrew as suggested at https://github.com/nvie/gitflow/wiki/Mac-OS-X

Here is the Git Flow output from VS code:

INFO: (0ms) [activate] Extension activate
INFO: (0ms) [Root] /Users/bpalmint/repos/mdao4grid (project)/mdao4grid
INFO: (0ms) [/usr/bin/git] Git found (path)
INFO: (20ms) ["/usr/bin/git" version] git version 2.37.1 (Apple Git-137.1)

INFO: (22ms) ["/usr/bin/git" status] On branch develop
Your branch is up to date with 'origin/develop'.

nothing to commit, working tree clean

INFO: (60ms) [/opt/homebrew/bin/git-flow version] 0.4.1

ERROR: (53ms) [/opt/homebrew/bin/git-flow config list] ERROR: Error: Command failed: /opt/homebrew/bin/git-flow config list
INFO: (19ms) ["/usr/bin/git" rev-parse --abbrev-ref HEAD] develop

ERROR: (8205ms) [/opt/homebrew/bin/git-flow config list] ERROR: Error: Command failed: /opt/homebrew/bin/git-flow config list
INFO: (26ms) ["/usr/bin/git" rev-parse --abbrev-ref HEAD] develop

Configuration:
MacOS 12.6.1
VSCode v1.74.0
vscode-gitflow v1.3.22
git-flow v0.4.1 (as seen above)

Set Tag name on finish Release or HotFix

hi,
with git command in terminal when i finish a release or hotfix i can specify the tag name with parameter -T or --tagname

Is possibile with this extension?

thanks

Very long activation time

Hi,
the extension is good, but it takes a lot of time to activate:

image

Is this normal? Does it depend by the repo complexity?

Thanks

Support git hooks like gitflow-avh

gitflow-avh adds git hooks based on feature / bugfixes...:

I personally use it to forbid git flow feature finish to force the developers to create a PR on Github as recommended here https://stackoverflow.com/a/64436619/2714285

Triggering those hooks from your extension would be really nice to ensure the CI/CD pipe is followed (no merge in develop without a valid PR)

Anyway, thank you for your work!

Finish a branch which creates a tag

Feature request

  • Accept a given text on finish as the -m parameter value

As is

At the moment a fixed tag message is used and in the dropdown on finishing a branch the -m option is not available.

image

If I put there some text, e.g. "Feature release" it is ignored and a fixed message "Finish ..." is generated:

image

(Did not checked yet what happen if I provide there a -m "My message", may be it will accepted?)

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.