Merge branch 'commit_status' into 'master'
Implement Commit Status API
This is preliminary implementation of Commit Status API, pretty much compatible with GitHub.
1. The Commit Statuses are stored in separate table: ci_commit_status.
2. The POST inserts a new row.
3. To POST execute GitLab API `post :id/repository/commits/:sha/status`. This accepts dual authorization:
- Using authorized user
- Using ci-token to allow easy posting from CI Services
4. This adds predefined variable to GitLab CI build environment: CI_BUILD_STATUS_URL, allowing to easy post status from within build (ex. with code coverage or other metrics).
5. This adds statuses to commit's builds view.
6. The commit's status is calculated taking into account status of all builds and all posted statuses.
7. The commit statuses doesn't trigger notifications.
8. The commit status API introduces two new privileges: `read_commit_statuses` and `create_commit_status`.
9. We still miss a few tests and documentation updates for API and CI.
@dzaporozhets @sytses What do you think?
See merge request !1530
Showing
app/models/commit_status.rb
0 → 100644
app/models/generic_commit_status.rb
0 → 100644
lib/api/commit_statuses.rb
0 → 100644
spec/factories/commit_statuses.rb
0 → 100644
spec/models/commit_status_spec.rb
0 → 100644
spec/models/generic_commit_status_spec.rb
0 → 100644
spec/requests/api/commit_status_spec.rb
0 → 100644
Please
register
or
sign in
to comment