You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be a nice feature to see the number of lines changed as a comment on the PR so that the reviewer doesn't need to check the results of the GitHub Action.
The text was updated successfully, but these errors were encountered:
comment_fail:
needs: check_pr_sizeif: failure()runs-on: ubuntu-lateststeps:
- name: Comment on PR when PR size check failsuses: peter-evans/create-or-update-comment@v4with:
issue-number: ${{ github.event.pull_request.number }}body: | **❌ PR is too big !** **The number of lines changed in this PR (${{ needs.check_pr_size.outputs.total_lines_changed }}) exceeds the allowed limit (${{ env.PR_SIZE_LIMIT }}) lines.** **⚡ Consider breaking it into smaller PRs to improve review quality and avoid merge conflicts**
comment_fail:
needs: check_pr_size
if: failure()
runs-on: ubuntu-latest
steps:
- name: Comment on PR when PR size check fails
uses: peter-evans/create-or-update-comment@v4
with:
issue-number: ${{ github.event.pull_request.number }}
body: | ❌ PR is too big ! The number of lines changed in this PR (${{ needs.check_pr_size.outputs.total_lines_changed }}) exceeds the allowed limit (${{ env.PR_SIZE_LIMIT }}) lines. ⚡ Consider breaking it into smaller PRs to improve review quality and avoid merge conflicts
Thanks for the suggestion! That's a good workaround for now but I'll leave this open as it would be nicer to integrate into the existing action.
It would be a nice feature to see the number of lines changed as a comment on the PR so that the reviewer doesn't need to check the results of the GitHub Action.
The text was updated successfully, but these errors were encountered: