Reuse the bot’s existing incoming webhooks during Discord setup #31

Open
github-bot wants to merge 1 commit from github-bot/gh-31 into main AGit
Owner

@⁠RavenCurseBurg on GitHub · 2026-11-26 05:28 UTC · original
RavenCurseBurg:fix/reuse-project-webhooks → main · +63 −11 · 3 files · 1 commits · open

Running discord_setup.py --apply --webhooks twice previously created four hooks for two channels. The setup now lists each channel’s webhooks and reuses the incoming GTAVI-Recomp hook created by the same bot. A matching name on someone else’s hook or a channel-follower hook does not count. The URL is printed when the script creates a hook. The setup guide explains how a maintainer can retrieve it later. Discord webhook fields and channel endpoint

I ran the full CLI against two synthetic channels with an in-memory API, in the sequence apply, plan, apply. The parent left 2, 2 and 4 hooks. The change left 2, 2 and 2, and the second apply printed no URL. All 46 Python tooling tests and all three native Release CTests passed. Verification used synthetic tokens and made no Discord requests.

AI-assisted with Codex + GPT-6.2 Astra (xhigh).

**@⁠RavenCurseBurg** on GitHub · 2026-11-26 05:28 UTC · [original](https://github.com/JamesCicada/GTAVI-Recomp/pull/31) `RavenCurseBurg:fix/reuse-project-webhooks` → `main` · +63 −11 · 3 files · 1 commits · open Running `discord_setup.py --apply --webhooks` twice previously created four hooks for two channels. The setup now lists each channel’s webhooks and reuses the incoming `GTAVI-Recomp` hook created by the same bot. A matching name on someone else’s hook or a channel-follower hook does not count. The URL is printed when the script creates a hook. The setup guide explains how a maintainer can retrieve it later. [Discord webhook fields and channel endpoint](https://docs.discord.com/developers/resources/webhook) I ran the full CLI against two synthetic channels with an in-memory API, in the sequence apply, plan, apply. The parent left 2, 2 and 4 hooks. The change left 2, 2 and 2, and the second apply printed no URL. All 46 Python tooling tests and all three native Release CTests passed. Verification used synthetic tokens and made no Discord requests. AI-assisted with Codex + GPT-6.2 Astra (xhigh).
AI-assisted with Codex + GPT-6.2 Astra (xhigh).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 20:44:48 +00:00
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/31/head:github-bot/gh-31'
git switch 'github-bot/gh-31'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-31'
git switch 'github-bot/gh-31'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-31'
git switch 'github-bot/gh-31'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-31'
git switch 'main'
git merge --squash 'github-bot/gh-31'
git switch 'main'
git merge --ff-only 'github-bot/gh-31'
git switch 'main'
git merge 'github-bot/gh-31'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.