mirror of
https://github.com/Lucaslhm/Flipper-IRDB.git
synced 2025-01-25 03:56:28 +00:00
ci: don't auto approve / request changes
since this doesn't require a GITHUB_TOKEN with write access
This commit is contained in:
parent
5dc1ef3318
commit
07dbeb8f66
22
.github/workflows/pr_lint_review.yaml
vendored
22
.github/workflows/pr_lint_review.yaml
vendored
@ -42,24 +42,20 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
run: python fff-ir-lint/main.py github2 file:changed_file_list.txt
|
run: python fff-ir-lint/main.py github2 file:changed_file_list.txt
|
||||||
|
|
||||||
- uses: ntsd/auto-request-changes-action@v2
|
- name: Request Changes
|
||||||
name: "❌ Request Changes"
|
uses: thollander/actions-comment-pull-request@v2
|
||||||
if: ${{ steps.run.outputs.stderr }}
|
if: ${{ steps.run.outputs.stderr }}
|
||||||
with:
|
with:
|
||||||
github-token: "${{ secrets.GITHUB_TOKEN }}"
|
message: |
|
||||||
comment-body: |
|
❌ Found Issues
|
||||||
${{ steps.run.outputs.stdout }}
|
${{ steps.run.outputs.stdout }}
|
||||||
|
|
||||||
# optional: auto approve PRs with valid .ir files
|
- name: Request Changes
|
||||||
- uses: hmarr/auto-approve-action@v2
|
uses: thollander/actions-comment-pull-request@v2
|
||||||
name: "✅ Approve Changes"
|
|
||||||
if: ${{ ! steps.run.outputs.stderr }}
|
if: ${{ ! steps.run.outputs.stderr }}
|
||||||
with:
|
with:
|
||||||
github-token: "${{ secrets.GITHUB_TOKEN }}"
|
message: |
|
||||||
review-message: |
|
LGTM! 😊 No issues found.
|
||||||
> **Note**: This approval was *auto-generated*
|
|
||||||
|
|
||||||
LGTM! 😊
|
|
||||||
|
|
||||||
- name: Fail Pipeline
|
- name: Fail Pipeline
|
||||||
if: ${{ steps.run.outputs.stderr }}
|
if: ${{ steps.run.outputs.stderr }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user