comment pr section
This commit is contained in:
parent
2b442f6a95
commit
5a2932e47a
34
.drone.yml
34
.drone.yml
@ -21,21 +21,21 @@ steps:
|
||||
branch:
|
||||
- development
|
||||
|
||||
---
|
||||
name: Test Ansible Linting of drone-test-1
|
||||
kind: pipeline
|
||||
type: docker
|
||||
# ---
|
||||
# name: Test Ansible Linting of drone-test-1
|
||||
# kind: pipeline
|
||||
# type: docker
|
||||
|
||||
steps:
|
||||
- name: Add comment to pull request
|
||||
image: gitea.thezengarden.net/podman/images/ansible-dev:latest
|
||||
environment:
|
||||
GITEA_TOKEN:
|
||||
from_secret: gitea_token
|
||||
commands:
|
||||
- 'curl -sL -X POST -H "Authorization: token $GITEA_TOKEN" -H "Content-type: application/json" https://gitea.thezengarden.net/api/v1/repos/${DRONE_REPO_OWNER}/${DRONE_REPO_NAME}/issues/${DRONE_PULL_REQUEST}/comments -d "{\"body\": \"Build complete and successful for $DRONE_REPO_NAME\"}"'
|
||||
depends_on:
|
||||
- "Install requirements, lint, and run Ansible playbook"
|
||||
when:
|
||||
event:
|
||||
- pull_request
|
||||
# steps:
|
||||
# - name: Add comment to pull request
|
||||
# image: gitea.thezengarden.net/podman/images/ansible-dev:latest
|
||||
# environment:
|
||||
# GITEA_TOKEN:
|
||||
# from_secret: gitea_token
|
||||
# commands:
|
||||
# - 'curl -sL -X POST -H "Authorization: token $GITEA_TOKEN" -H "Content-type: application/json" https://gitea.thezengarden.net/api/v1/repos/${DRONE_REPO_OWNER}/${DRONE_REPO_NAME}/issues/${DRONE_PULL_REQUEST}/comments -d "{\"body\": \"Build complete and successful for $DRONE_REPO_NAME\"}"'
|
||||
# depends_on:
|
||||
# - "Install requirements, lint, and run Ansible playbook"
|
||||
# when:
|
||||
# event:
|
||||
# - pull_request
|
||||
|
Loading…
x
Reference in New Issue
Block a user