Skip to content

Commit

Permalink
fix: Update github extension pull requests to include branch
Browse files Browse the repository at this point in the history
Previously we included the branch under the ref nomenclature.
This is just a simple copy of that variable to make it a little
more pallatable to people who don't follow git nomenclature.
  • Loading branch information
clintjedwards committed Jan 22, 2025
1 parent 602a22e commit 4126873
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions containers/extensions/github/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ func handlePullRequestEvent(payload interface{}) (repo, action string, metadata
"GOFER_EXTENSION_GITHUB_EVENT": "pull_request",
"GOFER_EXTENSION_GITHUB_ACTION": action,
"GOFER_EXTENSION_GITHUB_PULLREQUEST_HEAD_REF": safeDeref(event.PullRequest.Head.Ref),
"GOFER_EXTENSION_GITHUB_PULLREQUEST_BRANCH": safeDeref(event.PullRequest.Head.Ref),
"GOFER_EXTENSION_GITHUB_REPOSITORY": safeDeref(event.Repo.FullName),
"GOFER_EXTENSION_GITHUB_PULLREQUEST_HEAD_SHA": safeDeref(event.PullRequest.Head.SHA),
"GOFER_EXTENSION_GITHUB_PULLREQUEST_AUTHOR_USERNAME": safeDeref(event.PullRequest.User.Login),
Expand Down

0 comments on commit 4126873

Please sign in to comment.