Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Oct 11, 2025

Overview

This PR updates the GitHub Actions workflow triggers to only run when files in their respective directories are modified. This optimization ensures that workflows only execute when necessary, saving CI/CD resources and reducing build times.

Changes

API Build Workflow (api-build.yml)

  • Added path filter apiserver/** to trigger only on changes to the API server codebase
  • Applies to both push and pull request events

Frontend Build Workflow (frontend-build.yml)

  • Added path filter frontend/** to trigger only on changes to the frontend codebase
  • Applies to both push and pull request events

.NET Build Workflow (dotnet-build.yml)

  • Added path filter mcpserver/** to trigger only on changes to the MCP server codebase
  • Applies to both push and pull request events

Benefits

  • Resource Efficiency: Workflows will no longer run unnecessarily when changes are made to unrelated parts of the codebase
  • Faster Feedback: Developers get quicker feedback as they don't have to wait for all three builds to complete when only one component is modified
  • Better Organization: Clear separation of build concerns across the three main components (API server, frontend, MCP server)

Example

Before this change, modifying a single file in the frontend/ directory would trigger all three workflows (API, Frontend, and .NET builds). After this change, only the Frontend Build workflow will execute, significantly reducing CI/CD time and resource usage.

Original prompt

Update the api server, MCP server and frontend build actions so that they only trigger when the respective directorios are modified


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: dkhalife <1736645+dkhalife@users.noreply.github.com>
@dkhalife dkhalife marked this pull request as ready for review October 11, 2025 23:22
Copilot AI review requested due to automatic review settings October 11, 2025 23:22
@dkhalife dkhalife enabled auto-merge (squash) October 11, 2025 23:22
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

This PR optimizes GitHub Actions workflow triggers by adding path-based filtering so that each build workflow only runs when files in its respective directory are modified.

  • Added paths filters to three workflow files to trigger builds only on relevant directory changes
  • Updated api-build.yml to trigger only on apiserver/ changes
  • Updated frontend-build.yml to trigger only on frontend/ changes
  • Updated dotnet-build.yml to trigger only on mcpserver/ changes

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
.github/workflows/api-build.yml Added path filter for apiserver/** to optimize API build triggers
.github/workflows/frontend-build.yml Added path filter for frontend/** to optimize frontend build triggers
.github/workflows/dotnet-build.yml Added path filter for mcpserver/** to optimize .NET build triggers

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@dkhalife dkhalife merged commit 9ebdeb3 into main Oct 11, 2025
5 checks passed
@dkhalife dkhalife deleted the copilot/update-trigger-actions-logic branch October 11, 2025 23:23
Copilot AI restored the copilot/update-trigger-actions-logic branch October 11, 2025 23:23
Copilot AI changed the title [WIP] Update API server and frontend build actions triggers Add path filters to workflow triggers for optimized CI/CD builds Oct 11, 2025
Copilot AI requested a review from dkhalife October 11, 2025 23:23
dkhalife added a commit that referenced this pull request Oct 11, 2025
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: dkhalife <1736645+dkhalife@users.noreply.github.com>
Co-authored-by: Dany Khalife <dev@dkhalife.com>
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