mirror of
https://github.com/mealie-recipes/mealie.git
synced 2026-02-03 06:23:10 -05:00
dev: Increase locale merge limit to 300 and allow PRs from Mealie bot (#6972)
This commit is contained in:
12
.github/workflows/auto-merge-l10n.yml
vendored
12
.github/workflows/auto-merge-l10n.yml
vendored
@@ -25,8 +25,12 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
AUTHOR: ${{ github.event.pull_request.user.login }}
|
AUTHOR: ${{ github.event.pull_request.user.login }}
|
||||||
run: |
|
run: |
|
||||||
if [[ "$AUTHOR" != "hay-kot" && "$AUTHOR" != "github-actions[bot]" ]]; then
|
if [[
|
||||||
echo "::error::PR author must be hay-kot or github-actions[bot] for auto-merge (got: $AUTHOR)"
|
"$AUTHOR" != "hay-kot" &&
|
||||||
|
"$AUTHOR" != "github-actions[bot]" &&
|
||||||
|
"$AUTHOR" != "mealie-actions[bot]"
|
||||||
|
]]; then
|
||||||
|
echo "::error::PR author must be hay-kot, github-actions[bot], or mealie-actions[bot] for auto-merge (got: $AUTHOR)"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
echo "Author validated: $AUTHOR"
|
echo "Author validated: $AUTHOR"
|
||||||
@@ -43,8 +47,8 @@ jobs:
|
|||||||
|
|
||||||
echo "PR changes: +$ADDITIONS -$DELETIONS (total: $TOTAL lines)"
|
echo "PR changes: +$ADDITIONS -$DELETIONS (total: $TOTAL lines)"
|
||||||
|
|
||||||
if [ "$TOTAL" -gt 200 ]; then
|
if [ "$TOTAL" -gt 400 ]; then
|
||||||
echo "::error::PR exceeds 200 line change limit ($TOTAL lines)"
|
echo "::error::PR exceeds 400 line change limit ($TOTAL lines)"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user