Skip to content
This repository was archived by the owner on Nov 10, 2019. It is now read-only.

Commit 9526b89

Browse files
metadata update
1 parent 782c2ae commit 9526b89

File tree

3 files changed

+44
-0
lines changed

3 files changed

+44
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Annotate GitLab Merge requests
2+
3+
The plugin allows for easy applying labels to GitLab merge requests from a Codefresh pipeline
4+
5+
## Basic usage
6+
7+
```
8+
AnnotateMR:
9+
image: codefresh/gitlab-mr-annotate
10+
environment:
11+
- GIT_CONTEXT=my_gitlab_context_name
12+
- LABELS=my_label1,my_label2,my_label_n
13+
```
14+
## Environment variables
15+
16+
| Name | Description | Default value |
17+
|------------------|-----------------------------------------------------------------------------------------------|----------------------------------|
18+
| GIT_CONTEXT | The name of the git provider context you can see on the integrations page. | none |
19+
| LABELS | The comma separated list of labels you would like to apply to the merge request | none |
20+
| PROJECT_ID | The ID of the GitLab project. Optional (the default value is formed from Codefresh variables) | $CF_REPO_OWNER%2F$CF_REPO_NAME |
21+
| MERGE_REQUEST_ID | The ID of the merge request. Optional (the default value is formed from Codefresh variables) | $CF_PULL_REQUEST_ID |
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
AnnotateMR:
2+
image: codefresh/gitlab-mr-annotate
3+
environment:
4+
- GIT_CONTEXT=my_gitlab_context_name
5+
- LABELS=my_label1,my_label2,my_label_n
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
title: Annotate GitLab Merge Requests
2+
image: codefresh/gitlab-mr-annotate:latest
3+
description: The plugin allows for easy applying labels to GitLab merge requests
4+
category:
5+
- Featured
6+
source: 'https://github.com/codefresh-contrib/cf-gitlab-mr-annotate'
7+
logo: 'https://raw.githubusercontent.com/codefresh-io/plugins/new-pipeline/plugins/vault/logo.jpg'
8+
maintainers:
9+
- name: Alex Kogan
10+
envs:
11+
- name: GIT_CONTEXT
12+
description: The name of the git provider context you can see on the integrations page.
13+
- name: LABELS
14+
description: The comma separated list of labels you would like to apply to the merge request
15+
- name: PROJECT_ID
16+
description: The ID of the GitLab project. Optional (the default value is formed from Codefresh variables)
17+
- name: MERGE_REQUEST_ID
18+
description: The ID of the merge request. Optional (the default value is formed from Codefresh variables)

0 commit comments

Comments
 (0)