Skip to content

fix(github): trust a bot on its own commit in the repository - #35

Merged
TorstenDittmann merged 3 commits into
appwrite:mainfrom
ChiragAgg5k:fix/trust-same-repository-bots
Nov 4, 2026
Merged

TorstenDittmann merged 3 commits into
appwrite:mainfrom
ChiragAgg5k:fix/trust-same-repository-bots

test(github): cover the bot trust check

d604442
Select commit
Loading
Failed to load commit list.
hansi.codes / Hansi succeeded Nov 4, 2026 in 1m 51s

Tier S: Ready to merge

The new tests exercise the bot trust checks and no actionable issues remain.

This pull request allows a GitHub App bot to count as trusted when its pull request targets a branch in the same repository and the head commit is attributed to that bot; otherwise the existing association and permission checks remain in place. It carries the pull-request and commit metadata through the GitHub client and approval guard, and adds coverage for same-repository versus fork detection, commit attribution, and lookup failures.