Skip to content

Add org-wide issue/PR intake bot workflow with deduped welcome comments and owner email alerts#1

Merged
0x5t4l1n merged 3 commits into
mainfrom
copilot/create-github-actions-workflow
Apr 22, 2026
Merged

Add org-wide issue/PR intake bot workflow with deduped welcome comments and owner email alerts#1
0x5t4l1n merged 3 commits into
mainfrom
copilot/create-github-actions-workflow

Conversation

Copilot AI commented Apr 22, 2026

Copy link
Copy Markdown
Contributor

This PR adds a single organization-ready workflow (.github/workflows/org-bot.yml) that handles both new issues and new pull requests. On open, it posts a th30d4y-branded acknowledgement comment and sends an SMTP email notification with repository, type, title, and URL.

  • Unified event handling

    • One workflow for issues.opened and pull_request.opened.
    • Normalizes event payload into shared metadata (type, number, title, url) for downstream steps.
  • Comment automation (via actions/github-script)

    • Posts:

      👋 Hello! Thanks for your contribution. We will review this and get back to you as soon as possible. — th30d4y

    • Prevents duplicate bot comments by matching normalized comment body on the target thread.
  • Owner notification email (Gmail SMTP)

    • Resolves organization admins and builds recipient list.
    • Sends formatted HTML email through smtp.gmail.com:465 using EMAIL_USER / EMAIL_PASS secrets.
    • Email includes repository, item type (Issue/Pull Request), title, and direct URL.
  • Production hardening

    • Uses explicit job permissions (issues, pull-requests, members).
    • Handles unsupported payloads and API failures with explicit step failures.
    • Avoids shell-based interpolation of untrusted titles by deriving metadata in github-script.
on:
  issues:
    types: [opened]
  pull_request:
    types: [opened]

Copilot AI and others added 3 commits April 22, 2026 21:26
Agent-Logs-Url: https://github.com/th30d4y/.github/sessions/408104c2-72ed-479a-991f-56f817c13e51

Co-authored-by: Stalin-143 <161853795+Stalin-143@users.noreply.github.com>
Agent-Logs-Url: https://github.com/th30d4y/.github/sessions/408104c2-72ed-479a-991f-56f817c13e51

Co-authored-by: Stalin-143 <161853795+Stalin-143@users.noreply.github.com>
Agent-Logs-Url: https://github.com/th30d4y/.github/sessions/408104c2-72ed-479a-991f-56f817c13e51

Co-authored-by: Stalin-143 <161853795+Stalin-143@users.noreply.github.com>
@0x5t4l1n 0x5t4l1n marked this pull request as ready for review April 22, 2026 21:32
@0x5t4l1n 0x5t4l1n merged commit 01578dc into main Apr 22, 2026
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