Provides GitHub API v3 compatibility and support for popular ecosystem tools.
- Just works with Jenkins GitHub Pull Request Builder Plugin
- Accelerate Pull Request Driven Development
- 2014/11
- All Repository API
- All PullRequest API
- All Issues API
- All API
First milestone of GitBucket API
-
Endpoint
- Jenkins GitHub Pull Request Builder Plugin requires endpoint starts with
/api/v3
- It is GitHub Enterprise endpoint model.
- So GitBucket API Endpoint starts with
/api/v3
- Jenkins GitHub Pull Request Builder Plugin requires endpoint starts with
-
Access Token
- User has one
Access Token
for calling API and authentication - User can generate Access Token
- User can regenerate Access Token
- User can clear Access Token
- User has one
-
Access Token Authentication
- Set request header
Authorization: token youraccesstoken
- EX:
curl -i http://localhost:8080/api/v3/user -H "Authorization : token 1234567890"
- Set request header
-
APIs
GET /api/v3/user
- user infomation
GET /api/v3/rate_limit
- Not support
- But returns hard code values
GET /api/v3/repos/:owner/:repo
- repository infomation
GET /api/v3/repos/:owner/:repo/pulls
- List pull request
- Support query : state=open
- GitHub returns large JSON but GitBucket returns small JSON
GET /api/v3/repos/:owner/:repo/pulls/:pr_issue_id
- Show pull request
POST /api/v3/repos/:owner/:repo/statuses/:commit_hash_id
- Set status
POST /api/v3/repos/:owner/:repo/issues/:issue_id/comments
- Add comments