Compare commits
No commits in common. "feature/test-runner" and "main" have entirely different histories.
feature/te
...
main
1 changed files with 0 additions and 22 deletions
|
|
@ -1,22 +0,0 @@
|
||||||
name: Check Squash Development
|
|
||||||
on:
|
|
||||||
pull_request:
|
|
||||||
types: [opened, synchronize, reopened]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
check:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
- name: Verificar quantidade de commits
|
|
||||||
run: |
|
|
||||||
# Conta quantos commits existem na branch do PR em relação à base
|
|
||||||
COUNT=$(git rev-list --count HEAD ^origin/development)
|
|
||||||
if [ "$COUNT" -gt 1 ]; then
|
|
||||||
echo "Atenção: O PR contém $COUNT commits. Por favor, faça squash para manter 1 único commit."
|
|
||||||
exit 1
|
|
||||||
else
|
|
||||||
echo "Histórico limpo! 1 commit detectado."
|
|
||||||
fi
|
|
||||||
Loading…
Reference in a new issue