Skip to content

Commit c94cb15

Browse files
committed
Merge pull request #3 from Strider-CD/try-fix
use original repo name/owner
2 parents 9f08df2 + 6e113d4 commit c94cb15

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

worker.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,15 @@ module.exports = {
2525
return callback(null, {
2626
listen: function (emitter) {
2727
debug('listening')
28-
emitter.emit('plugin.github-status.started', job._id, projectName, token, job.plugin_data.github.pull_request)
28+
var github_repo_data = {
29+
user: job.project.provider.config.owner,
30+
repo: job.project.provider.config.repo,
31+
sha: job.plugin_data.github.pull_request.sha,
32+
}
33+
emitter.emit('plugin.github-status.started', job._id, projectName, token, github_repo_data)
2934
emitter.once('job.status.tested', function (jobId) {
3035
debug('job was tested', jobId)
31-
emitter.emit('plugin.github-status.done', jobId, projectName, token, job.plugin_data.github.pull_request)
36+
emitter.emit('plugin.github-status.done', jobId, projectName, token, github_repo_data)
3237
})
3338
}
3439
})

0 commit comments

Comments
 (0)