Skip to content

Add /tctt slash command to block users via silent list#21088

Closed
Copilot wants to merge 4 commits into
mainfrom
copilot/add-slash-command-fafo
Closed

Add /tctt slash command to block users via silent list#21088
Copilot wants to merge 4 commits into
mainfrom
copilot/add-slash-command-fafo

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 15, 2026

Adds an admin/maintainer-only /tctt slash command that blocks a user by adding them to a silent list file, and updates the AI moderator to auto-spam any activity from listed users.

New: .github/workflows/tctt.md

  • Triggered by /tctt in issue/discussion comments; restricted to admin and maintainer roles
  • Targets the author of the triggering issue/PR/discussion — not the invoker
  • Reads .github/workflows/silent.md, appends the target username (sorted alphabetically), and opens a PR with the update
  • Guards: skips bots ([bot] suffix), self-blocking, and repository admins/owners
  • Idempotent: comments and no-ops if the user is already listed

Updated: .github/workflows/ai-moderator.md

  • Adds Step 0: Silent List Check — runs before all other detection
  • Reads .github/workflows/silent.md and compares github.actor using explicit lowercase normalization
  • Immediately applies spam label if actor is found; logs reason as silent-list: actor is on the blocked user list
  • Skips gracefully if the file doesn't exist yet

Format of .github/workflows/silent.md

Plain text, one GitHub username per line, sorted alphabetically:

alice
bob
mallory
Original prompt

Add a slash command GitHub action workflow "fafo" that blocks the author of the issue/comment/discussion/PR.

  • creates an issue to updates a file .github/workflows/silent.md with the user alias (one per line)
  • update the existing GitHub action that removed spam to read this file for list of user name as well.

📍 Connect Copilot coding agent with Jira, Azure Boards or Linear to delegate work to Copilot in one click without leaving your project management tool.

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Add slash command GitHub action workflow 'fafo' Add /fafo slash command to block users via silent list Mar 15, 2026
Copilot AI requested a review from pelikhan March 15, 2026 16:22
@pelikhan
Copy link
Copy Markdown
Collaborator

@copilot rename it to /tctt (rename file too)

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copy link
Copy Markdown
Contributor Author

Copilot AI commented Mar 15, 2026

@copilot rename it to /tctt (rename file too)

Done in 0e718cf — renamed fafo.mdtctt.md and updated all /fafo references to /tctt throughout the file and its compiled lock file.

Copilot AI changed the title Add /fafo slash command to block users via silent list Add /tctt slash command to block users via silent list Mar 15, 2026
@pelikhan
Copy link
Copy Markdown
Collaborator

@copilot restricted to admin and maintainers.

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copy link
Copy Markdown
Contributor Author

Copilot AI commented Mar 15, 2026

@copilot restricted to admin and maintainers.

Done in b376d05 — removed write from the roles list so /tctt is now restricted to admin and maintainer only.

Comment thread .github/workflows/tctt.md
add-comment:
max: 1
timeout-minutes: 10
strict: true
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot use copilot, gpt-5.1-codex-mini

@pelikhan pelikhan closed this Mar 15, 2026
Copilot AI requested a review from pelikhan March 15, 2026 19:18
Copilot stopped work on behalf of pelikhan due to an error March 15, 2026 19:18
@github-actions github-actions Bot deleted the copilot/add-slash-command-fafo branch April 2, 2026 12:07
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.

2 participants