Skip to content

Generate changelogs per release #1056

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

Merged
merged 5 commits into from
Jul 9, 2021
Merged

Generate changelogs per release #1056

merged 5 commits into from
Jul 9, 2021

Conversation

orta
Copy link
Contributor

@orta orta commented Jul 6, 2021

Add support for re-using the CHANGELOG infra for the releases - https://github.com/microsoft/TypeScript-DOM-lib-generator/releases

Copy link
Contributor

@saschanaz saschanaz left a comment

Choose a reason for hiding this comment

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

Approving with a nit.

I still think this can be done without unpkg by simply replacing the unpkg part with the getLatestTag(), but that's a separate issue.

@@ -169,14 +177,9 @@ export function generate(): string {
}

const output = outputs.join("\n\n");

if (!output.length) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you move this logic to the caller?


console.log("\n# Release notes:");
Copy link
Member

Choose a reason for hiding this comment

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

I don't know the code well enough -- but it looks like this prints the release notes but doesn't upload them. Is that the intent?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It does! I just figured it'd be nice to have that in the CI logs also

@orta
Copy link
Contributor Author

orta commented Jul 9, 2021

OK, this is updated to use the git tags and all feedback is resolved 👍🏻

Copy link
Contributor

@saschanaz saschanaz left a comment

Choose a reason for hiding this comment

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

Cool!

// This assumes we'll only _ever_ ship patches, which may change in the
// future someday.
const [maj, min, patch] = pkgJSON.version.split(".");
const olderVersion = `${maj}.${min}.${patch - 1}`;
Copy link
Contributor

Choose a reason for hiding this comment

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

(Just to note for future reference: git describe --tags --match "@types/web@*" --abbrev=0 can do the same thing)

orta and others added 2 commits July 9, 2021 14:42
@orta orta merged commit c98084e into main Jul 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants