Skip to content
This repository was archived by the owner on Nov 8, 2018. It is now read-only.

Commit 54e1db3

Browse files
aconradjtarchie
authored andcommitted
Write the base commit to .git/base_sha
This is useful for when we need to know the SHA-1 of the base branch when the build ran which isn't necessarily the HEAD of `master` (or whatever the base branch is).
1 parent 4b89fbc commit 54e1db3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

assets/lib/commands/in.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ def output
3232
File.write('body', pr['body'])
3333
File.write('branch', pr['head']['ref'])
3434
File.write('base_branch', pr['base']['ref'])
35+
File.write('base_sha', pr['base']['sha'])
3536
File.write('userlogin', pr['user']['login'])
3637
File.write('head_sha', pr['head']['sha'])
3738
end

0 commit comments

Comments
 (0)