-
Notifications
You must be signed in to change notification settings - Fork 25
Add projects section to changelog yaml skeleton in PR template #950
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
23575e4
to
8e81a9c
Compare
8e81a9c
to
bd4baa0
Compare
@@ -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) |
There was a problem hiding this comment.
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
.
There was a problem hiding this comment.
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]>
631aeef
to
fe51bba
Compare
Changelog
Context
We now have four projects within the
cardano-api
repository, and change logs for all of them are collected when a release forcardano-api
is cut. In order to make the release process easier, this PR introduces a new field in the change log dataHow 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