mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-26 00:06:02 +00:00
Merge rules (#540)
This commit is contained in:
1 parent
b6428901b1
commit
ff9792f885
1 file changed
+13
@@ -44,6 +44,19 @@ jobs:
|
|||||||
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
|
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Check co-authors
|
||||||
|
if: github.event_name == 'pull_request'
|
||||||
|
run: |
|
||||||
|
set -euo pipefail
|
||||||
|
git fetch --no-tags origin main
|
||||||
|
base=$(git merge-base origin/main HEAD)
|
||||||
|
messages=$(git log --format=%B "$base..HEAD")
|
||||||
|
messages+=$'\n'"$(jq -r '.pull_request.title, (.pull_request.body // "")' "$GITHUB_EVENT_PATH")"
|
||||||
|
if grep -Eiq '^[[:space:]]*Co-authored-by:.*(Claude|Anthropic|OpenAI|ChatGPT|GPT|Copilot|Cursor|Gemini|Codex|Devin|Windsurf|Codeium|Amazon Q|Tabnine|Cody|\[bot\])' <<<"$messages"; then
|
||||||
|
echo "::error::AI and bot identities cannot be co-authors; remove the Co-authored-by trailer."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
- name: The packages a signed build ships as
|
- name: The packages a signed build ships as
|
||||||
id: variants
|
id: variants
|
||||||
run: echo "list=$(awk '!/^#/ && NF { print $1 }' tools/release/variants.txt | jq -R . | jq -sc .)" >> "$GITHUB_OUTPUT"
|
run: echo "list=$(awk '!/^#/ && NF { print $1 }' tools/release/variants.txt | jq -R . | jq -sc .)" >> "$GITHUB_OUTPUT"
|
||||||
|
|||||||
Reference in new issue
Block a user