1
0
mirror of https://github.com/TsakiDev/gitea-comment.git synced 2024-09-16 08:31:36 +02:00
gitea-comment/README.md

39 lines
838 B
Markdown
Raw Permalink Normal View History

2022-06-28 21:41:55 +02:00
# Gitea Comment
A Drone plugin to post comments on a Gitea Pull Request
Docker Hub: https://hub.docker.com/r/tsakidev/giteacomment
Example reference for pull request with static string:
```yml
steps:
- name: post-to-gitea-pr
image: tsakidev/giteacomment:latest
settings:
gitea_token:
from_secret: gitea_token
gitea_base_url: http://gitea.example.com
comment: "Hello from Drone"
when:
status: [ failure ]
event: pull_request
```
Example reference for pull request with input from file:
```yml
steps:
- name: post-to-gitea-pr
image: tsakidev/giteacomment:latest
settings:
gitea_token:
from_secret: gitea_token
gitea_base_url: http://gitea.example.com
comment_title: "My Title"
comment_from_file: "/path/to/file.txt"
when:
status: [ failure ]
event: pull_request
```