devtron
devtron copied to clipboard
Able to trigger ci using git hash from another branch
Checklist:
- [x] I've searched in the docs and FAQ for my answer
- [x] I've included steps to reproduce the bug.
Describe the bug
We set branch for builds on UI and commit hashes are shown from the same branch for us to trigger but if we trigger using API, we are able to pass commit hash from any branch and there is no option to pass branch name with that using the API
To Reproduce
- Trigger a CI from UI
- Trigger the same using commit hash from another branch
Expected behavior
It shouldn't run the build if hash is from another branch or option to pass branch name should also be there in API
Current behavior
It gets triggered using commit hash from any branch using API
AB#21