Skip to content

Check changelogs have the correct extension

Sean McGivern requested to merge check-changelogs-have-correct-extension into master

What does this MR do?

In !22172 (comment 268687760), I noticed that the changelogs directory currently has some files that end in .yaml, and so won't be picked up by our automatic changelog compiler.

This MR has two commits:

  1. Include ee/changelogs in our yamllint run, when it exists. (i.e. don't include it in FOSS builds.)
  2. Add a small script to find any non-.yml, non-.gitkeep files in {,ee/}changelogs/unreleases and fail the build in that case.

This is actually the second time I've created a similar MR: previously I had gitlab-foss!14518 (merged), which we merged. I suggested we remove that script in gitlab-foss!31017 (comment 194677223), but I missed one key point: we lost the file extension check 🤦

Merge request reports