Skip to content

Commit ac62c9a

Browse files
committed
chore: optimize CI triggers to reduce pipeline costs
Remove feature/* from pipeline triggers to avoid running CI on every push to development branches. CI now only runs on: - Pushes to master (production) - Pull requests to master (validation before merge) Development branches using conventional commit naming (refactor/*, fix/*, feat/*, etc.) will only trigger CI when a PR is opened, not on every commit. This maintains code quality validation while reducing Azure DevOps pipeline execution costs.
1 parent 142b8ba commit ac62c9a

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

azure-pipelines.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,13 @@
22
# Build and test ASP.NET Core projects targeting .NET 8 on Linux.
33
# https://learn.microsoft.com/en-us/azure/devops/pipelines/ecosystems/dotnet-core
44

5-
# Trigger pipeline on commits to master and pull requests (equivalent to GitHub Actions 'on: [push, pull_request]')
5+
# Pipeline triggers:
6+
# - Runs on pushes to master (production deployments)
7+
# - Runs on all pull requests to master (validation before merge)
8+
# - Does NOT run on pushes to development branches (cost optimization)
9+
# Development branches (refactor/*, fix/*, feat/*, etc.) are validated only when a PR is opened
610
trigger:
711
- master
8-
- feature/*
912

1013
pr:
1114
- master

0 commit comments

Comments
 (0)