Skip to content

Add create-pull-request safe output to github-mcp-tools-report workflow#1836

Merged
pelikhan merged 2 commits intomainfrom
copilot/add-safe-output-to-workflow
Oct 17, 2025
Merged

Add create-pull-request safe output to github-mcp-tools-report workflow#1836
pelikhan merged 2 commits intomainfrom
copilot/add-safe-output-to-workflow

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Oct 17, 2025

Overview

This PR adds create-pull-request safe output to the GitHub MCP investigator agentic workflow (github-mcp-tools-report.md), enabling it to automatically create pull requests for documentation updates.

What Changed

Added the following configuration to the workflow's safe-outputs section:

create-pull-request:
  title-prefix: "[mcp-tools] "
  labels: [documentation, automation]
  draft: false

Why This Matters

The GitHub MCP investigator workflow runs weekly to:

  • Systematically explore all GitHub MCP server toolsets
  • Document available tools organized by toolset
  • Detect inconsistencies and changes
  • Update comprehensive documentation files

Previously, the workflow only created a GitHub discussion with the tools report. Now it will also create pull requests when it updates:

  • .github/instructions/github-mcp-server.instructions.md - Complete GitHub MCP server documentation
  • .github/instructions/github-agentic-workflows.instructions.md - Default toolsets configuration
  • pkg/cli/templates/instructions.md - Template default toolsets

Benefits

  1. Reviewable Changes: Documentation updates can now be reviewed before merging
  2. Change Tracking: Pull requests provide a clear audit trail of documentation evolution
  3. Automation Labels: Automatically tagged with documentation and automation labels
  4. Immediate Visibility: Created as non-draft PRs with [mcp-tools] prefix for easy identification

Validation

  • ✅ All unit tests pass
  • ✅ Workflow compiles successfully (229.4 KB)
  • ✅ Full agent-finish validation passes
  • ✅ All 64 workflows compile without errors

The compiled workflow now includes a complete create_pull_request job with appropriate permissions (contents: write, pull-requests: write) that runs after the agent completes its analysis.

Original prompt

Add create-pull-request safe output to github mcp investigator agentic workflow.


💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Add safe output for create-pull-request in agentic workflow Add create-pull-request safe output to github-mcp-tools-report workflow Oct 17, 2025
Copilot AI requested a review from pelikhan October 17, 2025 05:09
@pelikhan pelikhan marked this pull request as ready for review October 17, 2025 05:21
@pelikhan pelikhan merged commit 70bf1d4 into main Oct 17, 2025
5 checks passed
@pelikhan pelikhan deleted the copilot/add-safe-output-to-workflow branch October 17, 2025 05:21
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