Skip to content

Instantly share code, notes, and snippets.

@revolunet
Created November 8, 2019 00:58
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save revolunet/f33fd7036465be78ff59564e44be375d to your computer and use it in GitHub Desktop.
# get Pr id from GitHub
export PR_ID = $(git ls-remote ${CI_PROJECT_URL}.git refs/pull/[0-9]*/head | grep ${CI_COMMIT_SHA} | cut -d '/' -f3)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment