Skip to content

Scanning commits limited to a merge request #1088

Answered by ggjulio
Prateek-Thakare asked this question in Q&A
Discussion options

You must be logged in to vote

Hi maybe this could help:

They achieved what you want to do, but it only works on some platforms.
It may be possible to do the same using some shell script.
As they say in the first link:

git rev-list -n 1 refs/remotes/origin/<source_branch>
git rev-parse refs/remotes/origin/<target_branch>

The questions is how to retrieve the target & sources branches during the execution of the pipeline.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Prateek-Thakare
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants