Skip to content

Reject branch pushes when GitHub reports no push permission - #27

Open
ellmos-multi-bot wants to merge 1 commit into
mainfrom
multibot/githubbot-core-push-permission-20261201
Open

ellmos-multi-bot wants to merge 1 commit into
mainfrom
multibot/githubbot-core-push-permission-20261201

Conversation

@ellmos-multi-bot

Copy link
Copy Markdown
Collaborator

GitHubBot Core already retrieves repository details with the configured bot token. It now honors an explicit permissions.push=false before invoking Git. This gives a direct permission error and avoids recording an uncertain push or starting a cooldown after an attempt the account cannot make. Responses that omit permission metadata keep the existing behavior. GitHub still enforces repository and branch rules for any actual push.

The regression reproduces the attempted push at the previous head and verifies the new error and absence of Git calls. Local Windows verification: 557 passed, 2 skipped. Ruff on the changed files and the whitespace check passed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant