-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add workflow to write auto-review comment (#220)
* 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
Showing
2 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |