devtron icon indicating copy to clipboard operation
devtron copied to clipboard

Able to trigger ci using git hash from another branch

Open dheeth opened this issue 3 years ago • 0 comments

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

  1. Trigger a CI from UI
  2. 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

dheeth avatar Aug 03 '22 05:08 dheeth