feedback icon indicating copy to clipboard operation
feedback copied to clipboard

Include Github username in build metadata

Open melinath opened this issue 7 years ago • 2 comments

Github webhooks include usernames in their data; we would like to be able to extract Github usernames from buildkite webhooks (for builds triggered by Github) so that we can use them to match build failures to specific users in a separate application.

(It would also be fine with us if this were included in creator information if that would be preferable to y'all.)

melinath avatar Oct 08 '18 18:10 melinath

Good suggestion! Sounds like something a lot of people might want.

If you need something immediately, you can fetch the original webhook JSON string payload (sent by GitHub) using the GraphQL API:

query {
  build(slug:"$BUILDKITE_ORGANIZATION_SLUG/$BUILDKITE_PIPELINE_SLUG/$BUILDKITE_BUILD_NUMBER") {
    source {
      ... on BuildSourceWebhook {
        payload
      }
    }
  }
}

toolmantim avatar Oct 09 '18 01:10 toolmantim

hmm, that's an interesting workaround, thanks

melinath avatar Oct 17 '18 21:10 melinath