While raising an PR from development to test, the pipeline for development gets executed. It shouldn't happen right. As i understood only commit on specific branches runs the pipeline under branches .
Any idea why development branch gets trigger when a Pr is raised from development to test and how to avoid it ?
pipelines:
pull-requests:
revert-*:
- step: *build-test-sonarcloud
- step: *check-quality-gate-sonarcloud
feature/*:
- step: *build-test-sonarcloud
- step: *check-quality-gate-sonarcloud
bugfix/* :
- step: *build-test-sonarcloud
- step: *check-quality-gate-sonarcloud
branches:
development:
- step: *deploy
test:
- step:
<<: *deploy
deployment: staging
name: Deploy to staging server for testing
script:
- <<: *deploy-script
variables:
<<: *deploy-variables
SSH_USER: $STAGING_SSH_USER
SERVER: $STAGING_SERVER_ADDR