Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/scripts/no-ai-traces.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
# and unrelated files are not scanned.
#
# Usage: no-ai-traces.sh [BASE_REF] (default: origin/main)
# PR_TITLE / PR_BODY may be set in the environment to also check them.
# PR_TITLE / PR_BODY may be set in the environment to also check them
# (the workflow leaves them empty for a bot's pull request).

set -uo pipefail

Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,12 @@ jobs:
- name: Check commits, PR text and added lines
env:
# Passed through the environment; never interpolated into the shell.
PR_TITLE: ${{ github.event.pull_request.title }}
PR_BODY: ${{ github.event.pull_request.body }}
# A bot's title and body are not checked: Renovate pastes the
# release notes of whatever it bumps, and uucore 0.12's named a
# code-review tool, which failed a dependency update over text
# nobody here wrote. Its commits and diff are still checked.
PR_TITLE: ${{ github.event.pull_request.user.type != 'Bot' && github.event.pull_request.title || '' }}
PR_BODY: ${{ github.event.pull_request.user.type != 'Bot' && github.event.pull_request.body || '' }}
run: |
git fetch --no-tags origin "${{ github.base_ref }}"
.github/scripts/no-ai-traces.sh FETCH_HEAD
Expand Down
Loading