Skip to content

ci: commit lint works for forks without merge trains enabled

Tomas Vik requested to merge tv/2024-02/fix-commit-lint-for-non-merge-trains into main

Description

This MR fixes the commit-lint job for forks that don't use merge result pipelines and merge trains.

If the script finds out that it runs as a part of a "detached" pipeline, it will change behaviour to change all commits that will be added by the MR.

The script also shows a warning because without merge trains, it can't guarantee that the commits have correct messages.

Related Issues

Related to #820 (closed)

Previous MR !1357 (merged)

How has this been tested?

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation
  • Chore (Related to CI or Packaging to platforms)
  • Test gap

Merge request reports