-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Feature: Execute scripts on events #2221
Comments
You could use Webhooks for this. You could write for example an easy PHP script which executes your custom features and which is called by the webhook. |
Or you could use git hooks (https://git-scm.com/book/en/v2/Customizing-Git-Git-Hooks) for some specific events. |
Yes, but I think it would be easier to do it with shell scripts, as most features require shell commands and you won't have problems with permissions. Git hooks are clientside, aren't they |
No, git hooks can be server side too. https://git-scm.com/book/en/v2/Customizing-Git-Git-Hooks#_server_side_hooks You could find this in your repository settings under "Git-Hooks". |
Events on push work with it, but issue listener or something like that aren't possible, are they? |
As @JonasFranzDEV said, you could use webhook do that or you can edit custom git hooks on repository settings. I think that's enough for most things. |
Why don't you just copy webhooks and execute a shell script with all of it? |
This could be a good first example/implementation for #2222 with a plugin listening on event and executing a list of shell script. |
I do exactly these things with server side githooks. I use a mix of shell / python scripts to accomplish what I want. |
Could you add a feature to execute shell scripts on specific events.
Examples what I mean with events:
The feature would be helpful as users could add their own features like notifications, automated emails, etc....
The text was updated successfully, but these errors were encountered: