Giter Club home page Giter Club logo

git-hooks's People

Contributors

dependabot-preview[bot] avatar dependabot[bot] avatar lcombs15 avatar tiemonl avatar

Watchers

 avatar  avatar  avatar

Forkers

lcombs15

git-hooks's Issues

Setup base pipe-line on Jenkins

  • Run tests, Lint
  • A passing build must pass all checks
  • Make exe with PyInstaller ( Build artifact only for now)
  • Build badge in README
  • Webhook for Discord notification

Big Sur needs our app to be signed

Expected functionality

The hook executes

Actual functionality

image

Steps to reproduce

Run the hook on Big Sur

Version of hook

Latest

Operating System

mac OS 11

Migrate to argparse

Rather than using the raw command line arguments array and manual validation, use argparse

Hook hits run time error when commiting on a branch that doesn't have a remote

mkdir example
cd example
git init
touch A
git add A
git commit -m "Added A"
[22048] Failed to execute script commit_msg_hook
Traceback (most recent call last):
  File "src\main\commit_msg_hook.py", line 109, in <module>
  File "src\main\commit_msg_hook.py", line 104, in main
  File "src\main\hook\commit_msg_hook_runner.py", line 74, in run
  File "src\main\hook\commit_msg_hook_runner.py", line 64, in get_current_branch_name
_pygit2.GitError: reference 'refs/heads/example-branch' not found

Migrate configuration settings to file

It doesn't matter which type of file we use, could be an INI, yml, or something. Anything to make it easy to change the configuration.

  • Make another implementation of hook config
  • Mend CLI output here--should not say NOGH

Add the ability to place the issue anywhere in the issue URL

In the configuration file, it would be awesome if you could do something like:

URL=https://github.com/unthreaded/git-hooks/issues/${ISSUE}/blahblah

OR, what you do today

URL=https://github.com/unthreaded/git-hooks/issues/ (We just do URL + ISSUE)

Global install, enhanced CLI, idea

Say we install this hook somewhere, add it to the path.

Now we can say:

// Enable githooks for this repo, creates the yml file for you

githooks init

// No args gives you status information

githooks

// Allow githooks to update config for you

githooks config add-protected-branch "release/*"

This would be much easier and make more sense after #61 or something similar

Attempt to make lint.sh easier to use

You can run Lint.sh from PyCharm; however, it would be awesome if the lint issues had clickable links to the issue line. Maybe if we make the lint call from Python, PyCharm will take care if this?

Automate tag creation

It would be awesome to look into automating semantic version releases on merge to master.

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.