Skip to content

Commit

Permalink
Add workflow to write auto-review comment (#220)
Browse files Browse the repository at this point in the history
* add simple configuration

* Apply suggestions from code review

Co-authored-by: Andrey Sitnik <[email protected]>

* Apply suggestions from code review

Co-authored-by: Andrey Sitnik <[email protected]>

* fix review comments

* fix artifact path

---------

Co-authored-by: Andrey Sitnik <[email protected]>
  • Loading branch information
Maksim Minko and ai authored May 28, 2024
1 parent a3c69da commit 9258952
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/auto-review-comment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
- prependMsg: "Pull request auto-reviewer"
- checks:
- paths: web/main/
message: |
Sine you’ve made changes to files in `web/main/` consider these points:
- Do you need to backport styles changes to `web/public/404.html` or `web/public/500.html`?
- Think about app loading styles inlined in `index.html`.
29 changes: 29 additions & 0 deletions .github/workflows/auto-review-comment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Auto Review Comment
on:
workflow_run:
workflows:
- Auto-review Diff Prepare
types:
- completed
permissions:
pull-requests: write
jobs:
auto-review:
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v4
- name: Download PR diff from auto review prepare step
uses: actions/download-artifact@v4
with:
name: pr-diff
path: pr_diff/
repository: ${{ github.repository_owner }}/${{ github.event.repository.name }}
run-id: ${{ github.event.workflow_run.id }}
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Analyze changes
uses: ./
id: auto-review-action
with:
token: ${{ secrets.GITHUB_TOKEN }}
datapath: .github/auto-review-comment.yml

0 comments on commit 9258952

Please sign in to comment.