Compare commits
No commits in common. "fcd7f8355516d01d453d8e73fe360fe73475edd2" and "30383e0c795a07b1fb4e0ad1c2fdb47bc0eb0820" have entirely different histories.
fcd7f83555
...
30383e0c79
4 changed files with 3 additions and 54 deletions
14
README.md
14
README.md
|
@ -1,19 +1,11 @@
|
|||
# gitea-pull-request-comment-plugin
|
||||
# gitea-comment-plugin
|
||||
|
||||
A Woodpecker plugin to post comments onto a Gitea Pull Requests.
|
||||
A Woodpecker plugin to post comments onto a Gitea Pull Request.
|
||||
|
||||
Note this currently only works on `pull request` events.
|
||||
|
||||
You'll need to generate a [Gitea API token](https://docs.gitea.io/en-us/api-usage/) before
|
||||
you can use this.
|
||||
|
||||
## Usage/Examples
|
||||
|
||||
This example uses a woodpecker secret to pass the gitea API token to the pipeline
|
||||
job. The secret is enabled for use on `pull requests` .
|
||||
|
||||

|
||||
|
||||
```yaml
|
||||
pipeline:
|
||||
comment:
|
||||
|
@ -49,7 +41,7 @@ docker run \
|
|||
-e PLUGIN_COMMENT="test comment" \
|
||||
-e PLUGIN_GITEA_TOKEN="tokenhere" \
|
||||
-e PLUGIN_GITEA_ADDRESS="https://gitea.url.here" \
|
||||
-e CI_REPO_OWNER="repoowner" \
|
||||
-e CI_REPO_OWNER="repoowwer" \
|
||||
-e CI_REPO_NAME="yourrepo" \
|
||||
-e CI_COMMIT_PULL_REQUEST=8 \
|
||||
test-gitea
|
||||
|
|
43
docs.md
43
docs.md
|
@ -1,43 +0,0 @@
|
|||
---
|
||||
name: Gitea Comment
|
||||
author: markopolo123
|
||||
description: Plugin to add comments to a Gitea Pull Request
|
||||
tags: [Gitea, comment]
|
||||
containerImage: mcs94/gitea-comment
|
||||
containerImageUrl: https://hub.docker.com/r/mcs94/gitea-comment
|
||||
url: https://github.com/markopolo123/gitea-comment-plugin
|
||||
---
|
||||
|
||||
A Woodpecker plugin to post comments onto a Gitea Pull Request.
|
||||
|
||||
## Usage
|
||||
|
||||
Example pipeline:
|
||||
|
||||
```yaml
|
||||
pipeline:
|
||||
comment:
|
||||
image: mcs94/gitea-comment
|
||||
settings:
|
||||
gitea_address: https://gitea.url.goes.here
|
||||
gitea_token:
|
||||
from_secret: gitea_token
|
||||
comment: >
|
||||
✅ Build ${CI_BUILD_EVENT} of `${CI_REPO_NAME}` has status `${CI_BUILD_STATUS}`.
|
||||
|
||||
📝 Commit by ${CI_COMMIT_AUTHOR} on `${CI_COMMIT_BRANCH}`:
|
||||
|
||||
`${CI_COMMIT_MESSAGE}`
|
||||
|
||||
🌐 ${CI_BUILD_LINK}
|
||||
when:
|
||||
event: [pull_request]
|
||||
```
|
||||
|
||||
## Settings
|
||||
|
||||
|Name|Description|Default|
|
||||
|---|---|---|
|
||||
| `gitea_address` |URL for your gitea instance| none|
|
||||
| `gitea_token` |Gitea API token| none|
|
||||
| `comment` |comment to add to Pull Request|none|
|
BIN
img/comments.png
BIN
img/comments.png
Binary file not shown.
Before ![]() (image error) Size: 359 KiB After ![]() (image error) Size: 633 KiB ![]() ![]() |
BIN
img/secret.png
BIN
img/secret.png
Binary file not shown.
Before ![]() (image error) Size: 24 KiB |
Loading…
Add table
Add a link
Reference in a new issue