Add PR notifications to Drone config

This commit is contained in:
Garrett Mills 2021-03-29 12:01:43 -05:00
parent d8029e0f2c
commit 4cf3cd5102
Signed by: garrettmills
GPG Key ID: D2BF5FBA8298F246
4 changed files with 47 additions and 1 deletions

View File

@ -2,6 +2,16 @@ kind: pipeline
name: default
type: docker
steps:
- name: post build in progress comment to PR
image: tsakidev/giteacomment:latest
settings:
gitea_token:
from_secret: gitea_token
gitea_base_url: https://code.garrettmills.dev
comment: "Build ${DRONE_BUILD_NUMBER} started."
when:
event: pull_request
- name: build module
image: glmdev/node-pnpm:latest
commands:
@ -24,6 +34,17 @@ steps:
when:
status: success
- name: post build success comment to PR
image: tsakidev/giteacomment:latest
settings:
gitea_token:
from_secret: gitea_token
gitea_base_url: https://code.garrettmills.dev
comment: "Build ${DRONE_BUILD_NUMBER} completed successfully."
when:
status: success
event: pull_request
- name: send build error notifications
image: plugins/webhook
settings:
@ -39,6 +60,17 @@ steps:
when:
status: failure
- name: post build error comment to PR
image: tsakidev/giteacomment:latest
settings:
gitea_token:
from_secret: gitea_token
gitea_base_url: https://code.garrettmills.dev
comment: "Build ${DRONE_BUILD_NUMBER} failed!"
when:
status: failure
event: pull_request
- name: trigger documentation build
image: plugins/downstream
settings:

View File

@ -4,5 +4,10 @@
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="module" module-name="di" />
<orderEntry type="module" module-name="i18n" />
<orderEntry type="module" module-name="lib" />
<orderEntry type="module" module-name="orm" />
<orderEntry type="module" module-name="util" />
</component>
</module>

View File

@ -3,6 +3,11 @@
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/cli.iml" filepath="$PROJECT_DIR$/.idea/cli.iml" />
<module fileurl="file://$PROJECT_DIR$/../di/.idea/di.iml" filepath="$PROJECT_DIR$/../di/.idea/di.iml" />
<module fileurl="file://$PROJECT_DIR$/../i18n/.idea/i18n.iml" filepath="$PROJECT_DIR$/../i18n/.idea/i18n.iml" />
<module fileurl="file://$PROJECT_DIR$/../lib/.idea/lib.iml" filepath="$PROJECT_DIR$/../lib/.idea/lib.iml" />
<module fileurl="file://$PROJECT_DIR$/../orm/.idea/orm.iml" filepath="$PROJECT_DIR$/../orm/.idea/orm.iml" />
<module fileurl="file://$PROJECT_DIR$/../util/.idea/util.iml" filepath="$PROJECT_DIR$/../util/.idea/util.iml" />
</modules>
</component>
</project>

View File

@ -1,6 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
<mapping directory="" vcs="Git" />
<mapping directory="$PROJECT_DIR$/../i18n" vcs="Git" />
<mapping directory="$PROJECT_DIR$/../lib" vcs="Git" />
<mapping directory="$PROJECT_DIR$/../orm" vcs="Git" />
<mapping directory="$PROJECT_DIR$/../util" vcs="Git" />
</component>
</project>