Warning
This Action is designed specifically with Gitea in mind and serves no purpose for Github Actions
A Simple Gitea Action designed to generate Automatic PR Reviews via Github-Style Error Annotations in Automated Gitea Actions.
Since Gitea currently does not support "Error Annotations" this fills in the gaps by anayzing the stdout of other action stages and then can commit the messages to a single review using a designated service account after the action completes.
name: Pull-Request Vibe Check
on:
pull_request:
types: [ opened, synchronize, reopened ]
jobs:
ci-test:
runs-on: ubuntu-latest
steps:
- name: Setup PRBot
uses: imgurbot12/prbot@v2
with:
username: ${{ secrets.prbot_username }}
api_token: ${{ secrets.prbot_token }}
- 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
username
- username of service account used to post PRapi_token
- gitea api-token for service account to authenticate with