Skip to content

feat(discord-bot): hardcode Discord PR attribution from thread starter - #118

Open
omegent-app[bot] wants to merge 1 commit into
fork/discordfrom
fix/discord-pr-attribution-hardcode
Open

feat(discord-bot): hardcode Discord PR attribution from thread starter#118
omegent-app[bot] wants to merge 1 commit into
fork/discordfrom
fix/discord-pr-attribution-hardcode

Conversation

@omegent-app

@omegent-app omegent-app Bot commented Jul 27, 2026

Copy link
Copy Markdown

Summary

  • When a GitHub PR URL is observed on a Discord-linked thread, the bot hard-appends the Discord attribution footer via gh api (no agent prompt / AGENTS.md dependency).
  • Footer uses the Discord thread starter (display name + user id) and the Discord thread title, with a jump link into the thread.
  • Idempotent: skips PRs that already contain the in chat thread **Discord** · marker.
  • Wired into upsertThreadInfoPin so both first-link PR URLs and later assistant-answer PR URLs are covered.

Test plan

  • Unit tests for format/append/idempotency/ensureDiscordPrAttributionFooters (vp test run apps/discord-bot/src/presentation/discordPrAttribution.test.ts)
  • Deploy/restart discord-bot on this branch
  • From a Discord thread, open a PR without a footer → confirm bot appends starter + title footer
  • Re-post same PR URL → confirm no double footer

opened by joshuadima in chat thread Discord · Open Random PR Test

@patroza
patroza force-pushed the fork/discord branch 7 times, most recently from f1176c7 to 20df33f Compare July 28, 2026 05:53
@patroza
patroza force-pushed the fix/discord-pr-attribution-hardcode branch from c55bdae to cb56fcc Compare July 28, 2026 05:53
@patroza
patroza force-pushed the fix/discord-pr-attribution-hardcode branch from cb56fcc to 2cb7cbe Compare July 28, 2026 05:58
When a PR URL is observed on a Discord-linked thread, append the
attribution footer via gh (thread starter + thread title) without
relying on agent AGENTS.md prompts. Idempotent if already present.
@patroza
patroza force-pushed the fix/discord-pr-attribution-hardcode branch from 2cb7cbe to ab26797 Compare July 28, 2026 06:01
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.

0 participants