Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: arbitrary post push hooks #46

Closed
ghostsquad opened this issue Apr 24, 2020 · 3 comments
Closed

feat: arbitrary post push hooks #46

ghostsquad opened this issue Apr 24, 2020 · 3 comments

Comments

@ghostsquad
Copy link

since git doesn't allow for arbitrary post-push hooks, it would be cool if gacp supported it.

would indirectly solve #45 and #44

@vivaxy
Copy link
Owner

vivaxy commented Apr 25, 2020

Great idea.
We can have some gacp hooks.

@ghostsquad
Copy link
Author

@vivaxy this still needs documentation

@vivaxy
Copy link
Owner

vivaxy commented Apr 29, 2020

@ghostsquad See here: f0d5adf#diff-04c6e90faac2675aa89e2176d2eec7d8R49

If you'd like to config globally, you can create a .gacprc file in your home folder(~/.gacprc). If you'd like to use this hook in a certain project, you can add a .gacprc file in your project root.

The config can be like:

{
  "hooks": {
    "postpush": "${your command}"
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants