Replies: 1 comment 1 reply
-
Hi! Good point. This is not possible right now as you guessed, and I don't think it'll be possible short-term. Running custom scripts like this would have a great impact security-wise as you mentioned. If we were to trigger something like this, it'd probably be via webhook or some other integration like GitHub Actions. At this point, you're better off using GitHub Actions to achieve your complete workflow for this I think 😢 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What
Do you think adding a pre/post hooks in the mergify actions could be something interesting to be enabled?
Why
Some of the users of
mergify
asked the below:Use case:
Given two branches with one of them changing some of the go import paths. I'd like to enable the backport with a pre-hook run to transform go paths from one way to another one.
Therefore, I'd like to configure
mergify.yml
with something like:Where
scripts/transform.sh
transforms some paths in the code from the backport.Rationale
This could be helpful to extend mergify with some more custom, though it might also require some contracts to avoid any security expose or timeout the script if it takes longer than xx seconds.
Beta Was this translation helpful? Give feedback.
All reactions