Skip to content

Instantly share code, notes, and snippets.

@int128
Last active June 28, 2018 12:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save int128/2263e9b80b874fe67196d13665beb837 to your computer and use it in GitHub Desktop.
Save int128/2263e9b80b874fe67196d13665beb837 to your computer and use it in GitHub Desktop.
AWS CodeBuild, GitBucket and GitLab

AWS CodeBuild to GitBucket access

GET /USER/REPO/info/refs?service=git-upload-pack HTTP/1.1" 301
GET /git/USER/REPO/info/refs?service=git-upload-pack HTTP/1.1" 200
POST /git/USER/REPO/git-upload-pack HTTP/1.1" 200
GET /USER/REPO/info/refs?service=git-upload-pack HTTP/1.1" 301
GET /git/USER/REPO/info/refs?service=git-upload-pack HTTP/1.1" 200
POST /api/v3/repos/USER/REPO/statuses/1c99b9292c2bec3f31fa67456797b10ec8405ef5 HTTP/1.1" 401
POST /api/v3/repos/USER/REPO/statuses/1c99b9292c2bec3f31fa67456797b10ec8405ef5 HTTP/1.1" 401
  • GET /USER/REPO/info/refs?service=git-upload-pack
  • POST /USER/REPO/git-upload-pack
  • POST /api/v3/repos/USER/REPO/statuses/SHA

API differences

Webhook (push)

Webhook (pull request)

Status

GitLab GitHub
id user%2Frepo
sha sha
state (pending, running, success, failed, canceled) state (error, failure, pending, success)
target_url target_url
description description
context context
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment