brndnmtthws / labhub

GitHub bot for using GitLab CI in OSS projects
The Unlicense
32 stars 14 forks source link

Report job status in Github PR #70

Open ePirat opened 5 years ago

ePirat commented 5 years ago

It would be great if the labhub bot would send back the job status of the Gitlab build on the Github PR using the Github status API.

brndnmtthws commented 5 years ago

Hmm, I remember this being an issue for some folks. There's a discussion on GitLab about it: https://gitlab.com/gitlab-org/gitlab-ee/issues/5667#note_158209894

I suppose the bot could explicitly set the statuses, but then you might end up with the status reported twice (which I suppose does no harm aside from UX).

ePirat commented 5 years ago

It could be an optional feature. As far as I understand, the automatic reporting is something that only works on Gitlab.com but not for CE instances. Maybe I just configured it incorrectly though, how did you set that up?

brndnmtthws commented 5 years ago

I've only used gitlab.com, so it's possible that it behaves differently with self-hosted instances. I'm not familiar enough with the details.

Having the bot set the status checks isn't very difficult, it's just a matter of writing the code.