Добавить .gitea/workflows/test_prbot.yml
All checks were successful
Merge Success Notification / notify-on-merge (pull_request) Successful in 1s
All checks were successful
Merge Success Notification / notify-on-merge (pull_request) Successful in 1s
This commit is contained in:
25
.gitea/workflows/test_prbot.yml
Normal file
25
.gitea/workflows/test_prbot.yml
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
test:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
- name: Send PRBot feedback
|
||||||
|
uses: imgurbot12/prbot@v2
|
||||||
|
with:
|
||||||
|
gitea: ${{ secrets.GITEAURL }}
|
||||||
|
user: ${{ secrets.ACCOUNT_NAME }}
|
||||||
|
token: ${{ secrets.GITHUBTOKEN }}
|
||||||
|
number: ${{ github.event.pull_request.number }}
|
||||||
|
repo: ${{ secrets.REPOSITORY }}
|
||||||
|
|
||||||
|
- name: Do Something With Errors
|
||||||
|
run: |
|
||||||
|
echo "::error file=app.js,line=1::Missing semicolon" | prbot
|
||||||
|
echo "::warning file=app.js,line=1,col=5,endColumn=7::Missing semicolon" | prbot
|
||||||
|
- name: Post PR Feedback
|
||||||
|
if: always()
|
||||||
|
run: prbot commit
|
||||||
Reference in New Issue
Block a user