From 1d968a3e4f6a5f771c32dfd1104e01371051dd26 Mon Sep 17 00:00:00 2001 From: Adam Amer <136176500+adamamer20@users.noreply.github.com> Date: Sat, 3 Feb 2024 11:12:55 +0100 Subject: [PATCH] fix dep. check --- .github/workflows/issues-dependency-check.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/issues-dependency-check.yml b/.github/workflows/issues-dependency-check.yml index 426e9df..e62b624 100644 --- a/.github/workflows/issues-dependency-check.yml +++ b/.github/workflows/issues-dependency-check.yml @@ -16,12 +16,11 @@ jobs: const issueRegex = /depends on #(\\d+(?:\\s+#\\d+)*)/ig; async function run() { - const description = pullRequest.body; let match; let blockingIssues = []; // Find issues mentioned in the description - while ((match = issueRegex.exec(description)) !== null) { + while ((match = issueRegex.exec(github.event.body)) !== null) { const issues = match[1].split(/\\s+#/); for (const issueNumber of issues) { const { data: issue } = await github.rest.issues.get({