You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Exclude tag push events from skip-pr-commits logic
When the skip-pr-commits setting is enabled, the system skips push
events for commits that are part of an open pull request to avoid
duplicate pipeline runs. However, this should not apply to tag push
events, as tags represent important release points that should always
trigger pipelines regardless of PR status.
Changes:
- Detect tag push events by checking if ref starts with "refs/tags/"
- Exclude tag push events from skip logic even when
skip-pr-commits setting is enabled
- Add test case verifying tag push events are not skipped
- Add test case verifying regular push events are still skipped when
commit is part of a PR
This ensures that tagging a commit (e.g., for releases) always
triggers the associated pipeline runs, while still avoiding duplicate
runs for regular branch commits that are part of pull requests.
Signed-off-by: Zaki Shaikh <[email protected]>
0 commit comments