Skip to content

Conversation

palas
Copy link
Contributor

@palas palas commented Sep 10, 2025

Changelog

- description: |
    Added projects section to changelog yaml skeleton in PR template
  type:
  - maintenance
  projects:
  - cardano-api

Context

We now have four projects within the cardano-api repository, and change logs for all of them are collected when a release for cardano-api is cut. In order to make the release process easier, this PR introduces a new field in the change log data

How to trust this PR

Check that the new skeleton makes sense, and there are no bugs introduced in the corresponding CI check.

See this related PR: input-output-hk/cardano-dev#20

Checklist

  • Commit sequence broadly makes sense and commits have useful messages
  • New tests are added if needed and existing tests are updated. See Running tests for more details
  • Self-reviewed the diff

@palas palas self-assigned this Sep 10, 2025
@palas palas requested review from Jimbo4350, newhoggy, carbolymer and a team as code owners September 10, 2025 12:09
@palas palas force-pushed the update-changelog-skeleton branch 7 times, most recently from 23575e4 to 8e81a9c Compare September 10, 2025 14:55
@palas palas force-pushed the update-changelog-skeleton branch from 8e81a9c to bd4baa0 Compare September 11, 2025 13:07
@@ -72,6 +73,18 @@ jobs:
console.error(`PR changelog has invalid type: ${changelog.type}\nExpected one, or more of: ${validTypeValues}`)
}

let isProjectsValid = false;
// .filter(Boolean) is a trick that removes empty values from the array (see https://michaeluloth.com/javascript-filter-boolean/)
const validProjectsValues = execSync("ls */CHANGELOG* | cut -d/ -f1").toString().split('\n').filter(Boolean)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would be better to read it from cabal.project.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure it is better because, even though all projects are Haskell right now, we don't know that will always be the case, but they do need to have a CHANGELOG.md, for this to be useful. Also, properly parsing a .project file is pretty tricky from outside Haskell, it can be done in a hacky way, but it is not easy at all

Co-authored-by: Mateusz Galazyn <[email protected]>
@palas palas added this pull request to the merge queue Sep 15, 2025
@palas palas removed this pull request from the merge queue due to a manual request Sep 15, 2025
@palas palas force-pushed the update-changelog-skeleton branch from 631aeef to fe51bba Compare September 15, 2025 16:44
@palas palas added this pull request to the merge queue Sep 15, 2025
Merged via the queue into master with commit 93a5539 Sep 15, 2025
49 checks passed
@palas palas deleted the update-changelog-skeleton branch September 15, 2025 17:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants