Skip to content

Enable org-wide Issue/PR bot rollout with reusable workflow + repository caller template#5

Merged
0x5t4l1n merged 7 commits into
mainfrom
copilot/fix-link-issues
Apr 22, 2026
Merged

Enable org-wide Issue/PR bot rollout with reusable workflow + repository caller template#5
0x5t4l1n merged 7 commits into
mainfrom
copilot/fix-link-issues

Conversation

Copilot AI commented Apr 22, 2026

Copy link
Copy Markdown
Contributor

The bot logic was centralized in th30d4y/.github but not consumable in a standardized way across all org repositories. This change introduces a reusable workflow contract plus a thin caller template so each repo can trigger the same bot behavior on new issues/PRs with org-level secrets and permissions.

  • Reusable workflow contract (.github/workflows/org-bot.yml)

    • Added workflow_call support with explicit inputs (event_type, number, title, url) while preserving native issues.opened / pull_request.opened triggers.
    • Unified metadata extraction and comment/email flow so the job works both when triggered directly and when invoked from another repo.
    • Hardened input/number handling for called-workflow execution paths.
  • Standard per-repo caller template (.github/workflow-templates/)

    • Added org-bot-caller.yml template that listens to issues.opened and pull_request.opened and forwards normalized event data to the centralized workflow.
    • Added template metadata via org-bot-caller.properties.json for discoverability and reuse in rollout campaigns.
  • Org rollout guidance (README.md)

    • Documented org secret requirements (EMAIL_USER, EMAIL_PASS) and repository permission expectations (issues: write, pull-requests: write).
    • Documented rollout strategy (pilot repos first, then broad rollout) and enforcement options (required workflows/rulesets when available).
jobs:
  org-bot:
    uses: th30d4y/.github/.github/workflows/org-bot.yml@main
    with:
      event_type: ${{ github.event_name == 'issues' && 'Issue' || 'Pull Request' }}
      number: ${{ github.event.issue.number || github.event.pull_request.number }}
      title: ${{ github.event.issue.title || github.event.pull_request.title }}
      url: ${{ github.event.issue.html_url || github.event.pull_request.html_url }}
    secrets: inherit

Copilot AI and others added 7 commits April 22, 2026 22:09
Agent-Logs-Url: https://github.com/th30d4y/.github/sessions/3ebd0ea0-050b-490d-88d6-b63460c4e3a8

Co-authored-by: Stalin-143 <161853795+Stalin-143@users.noreply.github.com>
Agent-Logs-Url: https://github.com/th30d4y/.github/sessions/3ebd0ea0-050b-490d-88d6-b63460c4e3a8

Co-authored-by: Stalin-143 <161853795+Stalin-143@users.noreply.github.com>
Agent-Logs-Url: https://github.com/th30d4y/.github/sessions/3ebd0ea0-050b-490d-88d6-b63460c4e3a8

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 22:19
@0x5t4l1n 0x5t4l1n merged commit fb85dee into main Apr 22, 2026
1 check passed
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