From bae0016dc900b5465d0e714c8d467c1422db9eae Mon Sep 17 00:00:00 2001 From: Nicola Corti Date: Tue, 25 Jul 2023 21:49:41 -0700 Subject: [PATCH] Properly split the "Too Old Version of React Native" message Summary: The bot message is split in a wrong way: https://github.com/facebook/react-native/issues/38603#issuecomment-1648749441 I'm updating it to use `

` instead which renders correctly inside tables. Changelog: [Internal] [Changed] - Properly split the "Too Old Version of React Native" message Reviewed By: NickGerleman Differential Revision: D47764363 fbshipit-source-id: 7a80f03b4228a3f0c69d718b8eb60ecd4ac60a2b --- .github/workflow-scripts/actOnLabel.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflow-scripts/actOnLabel.js b/.github/workflow-scripts/actOnLabel.js index 7556e122be..a4c2158466 100644 --- a/.github/workflow-scripts/actOnLabel.js +++ b/.github/workflow-scripts/actOnLabel.js @@ -129,7 +129,7 @@ module.exports = async (github, context, labelWithContext) => { await addComment( `| :warning: | Unsupported Version of React Native |\n` + `| --- | --- |\n` + - `| :information_source: | It looks like your issue or the example you provided uses an [unsupported version of React Native](https://github.com/reactwg/react-native-releases/blob/main/README.md#releases-support-policy). Due to the number of issues we receive, we're currently only accepting new issues against one of the supported versions. Please [upgrade](https://reactnative.dev/docs/upgrading) to latest and verify if the issue persists (alternatively, create a new project and repro the issue in it). If you cannot upgrade, please open your issue on [StackOverflow](https://stackoverflow.com/questions/tagged/react-native) to get further community support. |`, + `| :information_source: | It looks like your issue or the example you provided uses an [unsupported version of React Native](https://github.com/reactwg/react-native-releases/blob/main/README.md#releases-support-policy).

Due to the number of issues we receive, we're currently only accepting new issues against one of the supported versions. Please [upgrade](https://reactnative.dev/docs/upgrading) to latest and verify if the issue persists (alternatively, create a new project and repro the issue in it). If you cannot upgrade, please open your issue on [StackOverflow](https://stackoverflow.com/questions/tagged/react-native) to get further community support. |`, ); await requestAuthorFeedback(); return; @@ -137,7 +137,7 @@ module.exports = async (github, context, labelWithContext) => { await addComment( `| :warning: | Too Old Version of React Native |\n` + `| --- | --- |\n` + - `| :information_source: | It looks like your issue or the example you provided uses a [**Too Old Version of React Native**](https://github.com/reactwg/react-native-releases/blob/main/README.md#releases-support-policy).\nDue to the number of issues we receive, we're currently only accepting new issues against one of the supported versions. Please [upgrade](https://reactnative.dev/docs/upgrading) to latest and verify if the issue persists (alternatively, create a new project and repro the issue in it). If you cannot upgrade, please open your issue on [StackOverflow](https://stackoverflow.com/questions/tagged/react-native) to get further community support. |`, + `| :information_source: | It looks like your issue or the example you provided uses a [**Too Old Version of React Native**](https://github.com/reactwg/react-native-releases/blob/main/README.md#releases-support-policy).

Due to the number of issues we receive, we're currently only accepting new issues against one of the supported versions. Please [upgrade](https://reactnative.dev/docs/upgrading) to latest and verify if the issue persists (alternatively, create a new project and repro the issue in it). If you cannot upgrade, please open your issue on [StackOverflow](https://stackoverflow.com/questions/tagged/react-native) to get further community support. |`, ); await closeIssue(); return;