A concourse resource for checking merge requests.
This just gets merge requests and sets them success.
resource_types:
- name: gitlab-mr
type: registry-image
check_every: 24h
source:
repository: registry.gitlab.com/cheatsc/concourse-gitlab-merge-request-resource/concourse-gitlab-merge-request-resource
tag: latest
resources:
- name: merge-request
type: gitlab-mr
icon: gitlab
source:
uri: https://gitlab.com/cheatsc/concourse-gitlab-merge-request-resource.git
private_token: 'sample'
jobs:
- name: build
plan:
- get: merge-request
trigger: true
version: every
- put: merge-request
params:
resource_name: merge-request
status: pending
- put: merge-request
params:
resource_name: merge-request
status: running
- put: merge-request
params:
resource_name: merge-request
status: successCheck that new merge request created or the HEAD of merge requests ware updated.
| Parameter | Type | Value | Description |
|---|---|---|---|
| uri | String | Required | Repository url |
| private_token | String | Required | Private token |
| labels | List of String | Optional | Only check merge requests which has the given labels. If no labels specified (by default), check all merge requests. |
| paths | List of String | Optional | Only check merge requests which includes the given path in the changes. If no paths specified (by default), check all merge requests. |
| skip_draft | Boolean | Optional | Do not check draft merge requests. |
Clone the repository at the commit id of a merge request
| Parameter | Type | Value | Description |
|---|---|---|---|
| skip_clone | Boolean | Optional | Do not clone repository. This is used for the case which you only want to update the status of a merge request. |
Update the status of a merge request.
| Parameter | Type | Value | Description |
|---|---|---|---|
| resource_name | String | Required | name of resource. |
| status | String | Required | status of merge request. |
| pipeline_name | String | Optional | Set pipeline name. You can use the following parameters:
By default, |
| coverage | Float | Optional | Set coverage. |
$ cargo build --release$ buildctl build --frontend dockerfile.v0 --local dockerfile=. --local context=. --export-cache type=local,dest=$HOME/buildkit-cache --import-cache type=local,src=$HOME/buildkit-cacheLicensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.