Skip to content

Commit abfffd7

Browse files
committed
Merge pull request github#500 from github/update-1399588824
Sync changes from upstream repository
2 parents 9340abe + 3588eac commit abfffd7

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

content/guides/building-a-ci-server.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ that we're processing on the CI:
120120
#!ruby
121121
def process_pull_request(pull_request)
122122
puts "Processing pull request..."
123-
@client.create_status(pull_request['head']['repo']['full_name'], pull_request['head']['sha'], 'pending')
123+
@client.create_status(pull_request['base']['repo']['full_name'], pull_request['head']['sha'], 'pending')
124124
end
125125

126126
We're doing three very basic things here:
@@ -136,9 +136,9 @@ be sure to update the status once more. In our example, we'll just set it to `"s
136136

137137
#!ruby
138138
def process_pull_request(pull_request)
139-
@client.create_status(pull_request['head']['repo']['full_name'], pull_request['head']['sha'], 'pending')
139+
@client.create_status(pull_request['base']['repo']['full_name'], pull_request['head']['sha'], 'pending')
140140
sleep 2 # do busy work...
141-
@client.create_status(pull_request['head']['repo']['full_name'], pull_request['head']['sha'], 'success')
141+
@client.create_status(pull_request['base']['repo']['full_name'], pull_request['head']['sha'], 'success')
142142
puts "Pull request processed!"
143143
end
144144

0 commit comments

Comments
 (0)