Code Monkey home page Code Monkey logo

githooks's Introduction

  • ๐Ÿ‘‹ Hi, Iโ€™m @Lakshmikanth2001

githooks's People

Contributors

9amtech avatar aisy-yang avatar lakshmikanth2001 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

9amtech aisy-yang

githooks's Issues

Can't find java

Just installed this extension on Windows using WSL2 and noticed it wasn't loading. I found the output for the extension and saw these errors logged.

[2023-12-21 18:23:02.696] [INFO]: GitHooks extension is now active!
[2023-12-21 18:23:02.960] [INFO]: hooksPathArray [object Promise],[object Promise],[object Promise],[object Promise],[object Promise],[object Promise],[object Promise]
[2023-12-21 18:23:03.750] [ERROR]: Unable to read or locate hooksDirectory failed with following error : 
 Error: No valid git hook directories found
[2023-12-21 18:23:03.751] [ERROR]: Failed to execute shell command: which java. Error: Error: Command failed: which java

[2023-12-21 18:23:03.751] [WARN]: unable to detect java launguage path

Nowhere in the extension overview does it say java is a dependency.

Building Regex for file path inside `./.git/hook` in vscode extension

  • Current Regex just verifies whether .git and hook both are present in path or not which not an accurate way to tell whether file belongs to ./git/hook this path
"editor/title": [
				{
					"when": "resourcePath =~ /(?=.*\\.git)(?=.*hooks).*/",
					"command": "git-hooks.runCurrentHook",
					"group": "navigation"
				}
			]

Updated this regex to view the runButton only inside .git/hooks directory

Q&A - Why `GitHooks.hooksDirectory` + monorepo support state

This issue would have fit better in a github discussion Q&A, but this repository doesn't have one yet

Hello!

Why did you choose to feature a GitHooks.hooksDirectory setting rather than to force it to git config core.hooksPath?
Also, do your extension support multiple repositories in a workspace, such as the monorepo use-case?

Thanks!

Local paths always stored in the settings.json

I have found this extension quite useful.
But I noticed it has now started always updating setting.json for my workspace.
And it is using an absolute path. This isn't good for my projects as they they are shared as part of the team. The settings.json are useful for syncing with other team members. But the absolute path for the git hooks isn't good.
Ideally, it wouldn't always save the default path.
Ideally, it would support the ${workspaceFolder} variable, so at least if it does save. It could then save the path relative to the workspace folder.

Thanks

GitHooks not checking hooksPath

As of Git 2.9.0, you can run 'git config [--set] core.hooksPath ' to tell git where the hooks directory is. By setting at the global or system level, it will affect every repo. Thus on my system I have done 'git config --global core.hooksPath $HOME/.githooks'. Now I only have to update one location to maintain my hooks.

Running 'git config [--get] core.hooksPath' will let you see what the value is that will be used (or blank if not set).

However, GitHooks only looks in the local .git/hooks directory. I consider this a bug, since GitHooks is not usable in this situation.

Bug in `0.0.14` version

Run Hook button is display in all files in version 0.0.14 which is fixed in 0.0.15 version please take the latest version update

extension can't be installed/enabled

Searching the marketplace for this extension yields no result, be that via the name, or the full identifier.
Even installing the extension via the .vsix file does not actually seem to install it.

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.