Skip to content

Commit

Permalink
update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Nov1kov committed Mar 24, 2021
1 parent e1be980 commit 441acc0
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)


Useful tool to show Gitlab pipeline as mermaid
The useful tool to show Gitlab pipeline as mermaid

#### required environments

Expand All @@ -20,7 +20,7 @@ Show current pipeline in merge request notes. [Example merge request](https://gi

```yml
notify merge request:
image: registry.gitlab.com/nov1kov/pipeline_to_mermaid:0.4
image: registry.gitlab.com/nov1kov/pipeline_to_mermaid:0.5
stage: deploy
only:
- merge_requests
Expand All @@ -45,6 +45,15 @@ show specific pipeline in specific merge request as gantt diagram
pipeline-mermaid show_pipeline 249125838 gantt 3
```

#### as python library

````python
from pipeline_mermaid.gitlab_helper import GitlabHelper

gl = GitlabHelper()
gl.show_pipeline(249125838, "gantt", 3)
````

## Gitlab pipeline as mermaid

```mermaid
Expand Down Expand Up @@ -101,9 +110,6 @@ section deploy

# todo:

## README
- using as python library

## gitlab
- try depend on CI_JOB_TOKEN

Expand Down

0 comments on commit 441acc0

Please sign in to comment.