Skip to content

Conversation

@SamMorrowDrums
Copy link
Collaborator

Summary

Fixes the MCP Server Diff workflow to trigger correctly in all expected scenarios.

Problem

The workflow was only triggered on pull_request events, which doesn't run when:

  • Commits are pushed/merged to a PR branch
  • Tags are pushed for releases

Solution

Added push triggers for:

  • branches: [main] - Runs when PRs are merged to main
  • tags: ['v*'] - Runs on tag pushes, enabling automatic comparison against the previous tag (e.g., v1.2.0 compares against v1.1.0)

This follows the recommended setup from mcp-server-diff documentation.

Testing

The workflow will now run on this PR via the existing pull_request trigger, and will also run when merged to main or when releasing with tags.

Add push triggers to run on:
- Pushes to main branch (catches merges)
- Tag pushes (v*) for release comparisons against previous tags

The pull_request trigger alone doesn't run when commits are pushed
to PR branches via merge or direct push. Adding push triggers ensures
the diff runs in all expected scenarios.
@SamMorrowDrums SamMorrowDrums requested a review from a team as a code owner January 22, 2026 23:50
Copilot AI review requested due to automatic review settings January 22, 2026 23:50
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the MCP Server Diff GitHub Actions workflow to run not only on pull requests but also on key push events, ensuring diffs are generated for merges to main and tagged releases.

Changes:

  • Adds a push trigger on the main branch so the MCP diff runs when PRs are merged.
  • Adds a push trigger on tags matching v* so the MCP diff runs on release tag pushes.
  • Keeps the existing pull_request trigger so the workflow still runs on PRs.

@SamMorrowDrums SamMorrowDrums merged commit afc2396 into main Jan 22, 2026
21 checks passed
@SamMorrowDrums SamMorrowDrums deleted the fix-mcp-diff-workflow-triggers branch January 22, 2026 23:59
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