Skip to content

Discord: join the server and get GitHub roles from one link - #121

Merged
leepokai merged 1 commit into
mainfrom
dev
Oct 14, 2026
Merged

leepokai merged 1 commit into
mainfrom
dev

Conversation

@leepokai

Copy link
Copy Markdown
Owner

Summary

  • One link for contributors: https://discord.codync.dev now adds the member to the Codync Discord and gives the Contributor (merged PR) / Reporter (opened issue) role in one step, so thank-you comments no longer hand out invites that expire.
  • No GitHub connection needed in Discord: members who haven't connected GitHub to their Discord profile sign in with GitHub instead.
  • Roles arrive on their own later: the link is remembered, so a later merged pull request or opened issue gives the role automatically, and #moderator-only gets a note for each new link and role.
  • The first-PR / first-issue thank-you comment now points at that one link.

No app, host or packaging change, so no version bump and no release.

Validation

  • discord/: npm run typecheck and npm test (state and signed-session forgery, reused GitHub codes, bad webhook signatures, unlinked accounts, repeat links staying quiet, members who left).
  • Deployed to discord.codync.dev and walked through with the owner's account: Discord consent (with "join servers") → GitHub sign-in (Discord had no GitHub connection) → "You're a Contributor", role added and the note posted in #moderator-only.
  • Repo webhook: ping answered 204; a test issue (#120, deleted afterwards) gave the Reporter role and posted its note. Test roles and link were removed afterwards.

What's New

zh-Hant

en-US

🤖 Generated with Claude Code

https://claude.ai/code/session_01DDC5WbCSUif2ysBUruDTzi

discord.codync.dev now adds the member to the Codync Discord and gives the
Contributor / Reporter role in one step, so contributors no longer need an
invite that can expire. Members without GitHub connected in Discord sign in
with GitHub instead. The link is remembered: later merged pull requests and
opened issues give the role on their own, and #moderator-only gets a note
for each new link and role.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DDC5WbCSUif2ysBUruDTzi
@leepokai
leepokai merged commit c1fe57c into main Oct 14, 2026
2 checks passed
@vercel

vercel Bot commented Oct 14, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
codync-web Ignored Ignored Oct 14, 2026 5:52pm UTC

Request Review

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