@@ -11292,7 +11292,7 @@ const marked = __nccwpck_require__(4223);
11292
11292
const { default: findVersions } = __nccwpck_require__(4250);
11293
11293
11294
11294
const versionLabel = "Version: ";
11295
- const versionTitleInMarkdown = "Version";
11295
+ const versionTitlesInMarkdown = [ "Version", "New Version"] ;
11296
11296
const rnInfoTitleInMarkdown = "Output of `react-native info`";
11297
11297
const labelForNoVersion = "Version: unspecified";
11298
11298
@@ -11305,7 +11305,11 @@ const getVersionFromIssueBody = (issueBody) => {
11305
11305
// Loop through all sections
11306
11306
for (const markdownSectionIndex in markdownSection) {
11307
11307
// If this section matches `versionTitleInMarkdown`
11308
- if (markdownSection[markdownSectionIndex].text === versionTitleInMarkdown) {
11308
+ if (
11309
+ versionTitlesInMarkdown.includes(
11310
+ markdownSection[markdownSectionIndex].text
11311
+ )
11312
+ ) {
11309
11313
// Then the version can be found in the next section
11310
11314
const specifiedVersion =
11311
11315
markdownSection[Number(markdownSectionIndex) + 1];
@@ -11366,10 +11370,18 @@ const getLabelToBeApplied = (version) =>
11366
11370
const getIsIssueLabelAVersion = (label) => label.startsWith(versionLabel);
11367
11371
11368
11372
(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 });
11370
11376
const octokit = github.getOctokit(githubToken);
11371
11377
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
+ };
11373
11385
11374
11386
// This fetches the issue again as it can have different data after running the other actions
11375
11387
const { data: updatedIssue } = await octokit.rest.issues.get({
0 commit comments