Skip to content

Instantly share code, notes, and snippets.

@toshimaru
Last active August 2, 2023 02:06
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save toshimaru/f14386ab69394e6ffb54aa799b9b124b to your computer and use it in GitHub Desktop.
Save toshimaru/f14386ab69394e6ffb54aa799b9b124b to your computer and use it in GitHub Desktop.

gihub.ref vs gihub.head_ref

Trigger event pull_request pull_request_target
gihub.ref refs/pull/53/merge refs/heads/main
gihub.head_ref test/pull_request_target test/pull_request_target
  • main: default branch
  • test/pull_request_target: topic branch name
  • 53: pull request number
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment