@@ -11292,7 +11292,7 @@ const marked = __nccwpck_require__(4223);
1129211292const { default: findVersions } = __nccwpck_require__(4250);
1129311293
1129411294const versionLabel = "Version: ";
11295- const versionTitleInMarkdown = "Version";
11295+ const versionTitlesInMarkdown = [ "Version", "New Version"] ;
1129611296const rnInfoTitleInMarkdown = "Output of `react-native info`";
1129711297const labelForNoVersion = "Version: unspecified";
1129811298
@@ -11305,7 +11305,11 @@ const getVersionFromIssueBody = (issueBody) => {
1130511305 // Loop through all sections
1130611306 for (const markdownSectionIndex in markdownSection) {
1130711307 // If this section matches `versionTitleInMarkdown`
11308- if (markdownSection[markdownSectionIndex].text === versionTitleInMarkdown) {
11308+ if (
11309+ versionTitlesInMarkdown.includes(
11310+ markdownSection[markdownSectionIndex].text
11311+ )
11312+ ) {
1130911313 // Then the version can be found in the next section
1131011314 const specifiedVersion =
1131111315 markdownSection[Number(markdownSectionIndex) + 1];
@@ -11366,10 +11370,18 @@ const getLabelToBeApplied = (version) =>
1136611370const getIsIssueLabelAVersion = (label) => label.startsWith(versionLabel);
1136711371
1136811372(async () => {
11369- const githubToken = core.getInput("github-token", { required: true });
11373+ const githubToken =
11374+ process.env.GITHUB_TOKEN ||
11375+ core.getInput("github-token", { required: true });
1137011376 const octokit = github.getOctokit(githubToken);
1137111377
11372- const { issue } = github.context;
11378+ // const { issue } = github.context;
11379+
11380+ const issue = {
11381+ owner: "lucasbento",
11382+ repo: "core-workflows",
11383+ number: 1,
11384+ };
1137311385
1137411386 // This fetches the issue again as it can have different data after running the other actions
1137511387 const { data: updatedIssue } = await octokit.rest.issues.get({
0 commit comments