Skip to content

Use @rnx-kit/rn-changelog-generator for changelog validation in danger#36507

Closed
lunaleaps wants to merge 1 commit into
facebook:mainfrom
lunaleaps:use-changelog-validation-for-danger
Closed

Use @rnx-kit/rn-changelog-generator for changelog validation in danger#36507
lunaleaps wants to merge 1 commit into
facebook:mainfrom
lunaleaps:use-changelog-validation-for-danger

Conversation

@lunaleaps
Copy link
Copy Markdown
Contributor

Summary

Currently we have a tool (@rnx-kit/rn-changelog-generator) that extracts changelog messages from our commit history to generate the changelog for a React Native release.

In hopes of standardizing to one place where changelog validation occurs -- I've moved this logic to the package @rnx-kit/rn-changelog-generator such that if the formatting ever changes, the changelog parsing is also updated.

Changelog: [Internal] - Updating danger to use logic in @rnx-kit/rn-changelog-generator for changelog validation.

Test Plan

Tried require-ing the package and on a changelog message. I'm not sure exactly how to test a dangerfile -- IIRC it has to run off main

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Facebook Partner: Facebook Partner labels Mar 16, 2023
@analysis-bot
Copy link
Copy Markdown

analysis-bot commented Mar 16, 2023

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 8,519,487 +0
android hermes armeabi-v7a 7,835,705 +0
android hermes x86 8,998,641 +0
android hermes x86_64 8,854,815 +0
android jsc arm64-v8a 9,140,857 +0
android jsc armeabi-v7a 8,333,003 +0
android jsc x86 9,194,547 +0
android jsc x86_64 9,453,640 +0

Base commit: 406f9fc
Branch: main

@facebook-github-bot
Copy link
Copy Markdown
Contributor

@lunaleaps has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D44183479

@lunaleaps lunaleaps force-pushed the use-changelog-validation-for-danger branch from 7b8c1d8 to a5cb8ea Compare March 27, 2023 17:40
facebook#36507)

Summary:
Currently we have a tool (rnx-kit/rn-changelog-generator) that extracts changelog messages from our commit history to generate the changelog for a React Native release.

In hopes of standardizing to one place where changelog validation occurs -- I've moved this logic to the package rnx-kit/rn-changelog-generator such that if the formatting ever changes, the changelog parsing is also updated.

Changelog: [Internal] - Updating danger to use logic in rnx-kit/rn-changelog-generator for changelog validation.

Pull Request resolved: facebook#36507

Test Plan: Tried `require`-ing the package and on a changelog message. I'm not sure exactly how to test a dangerfile -- IIRC it has to run off `main`

Reviewed By: cortinico, cipolleschi

Differential Revision: D44183479

Pulled By: lunaleaps

fbshipit-source-id: 101dcf4188d628e500648dda5813562dff879c3d
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D44183479

@lunaleaps lunaleaps force-pushed the use-changelog-validation-for-danger branch from a5cb8ea to b1e4690 Compare March 27, 2023 17:46
@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Mar 27, 2023
@facebook-github-bot
Copy link
Copy Markdown
Contributor

@lunaleaps merged this pull request in d9f7c4c.

@lunaleaps lunaleaps deleted the use-changelog-validation-for-danger branch April 13, 2023 17:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged This PR has been merged. p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants