From dff0283cc828e02c689e7081e8171be1006980b0 Mon Sep 17 00:00:00 2001 From: FredrikOseberg Date: Mon, 9 Dec 2024 15:40:51 +0100 Subject: [PATCH] fix: add second comment --- .github/workflows/core-feature-alert.yml | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/.github/workflows/core-feature-alert.yml b/.github/workflows/core-feature-alert.yml index c89c7c3272..c080a2f6ac 100644 --- a/.github/workflows/core-feature-alert.yml +++ b/.github/workflows/core-feature-alert.yml @@ -30,7 +30,6 @@ jobs: script: | const prNumber = context.payload.pull_request.number; - // Check if a comment already exists const comments = await github.rest.issues.listComments({ owner: context.repo.owner, repo: context.repo.repo, @@ -61,14 +60,14 @@ jobs: const prCreator = context.payload.pull_request.user.login; // Add a comment if not already present - if (!inputs.hasComment) { - await github.rest.issues.createComment({ - owner: context.repo.owner, - repo: context.repo.repo, - issue_number: prNumber, - body: `@${prCreator}, core features have been modified in this pull request. Reviewers have been added.`, - }); - } + + await github.rest.issues.createComment({ + owner: context.repo.owner, + repo: context.repo.repo, + issue_number: prNumber, + body: `@${prCreator}, core features have been modified in this pull request. Reviewers have been added.`, + }); + // Add reviewers if not already present if (!inputs.hasReviewers) { @@ -76,6 +75,6 @@ jobs: owner: context.repo.owner, repo: context.repo.repo, pull_number: prNumber, - reviewers: ['FredrikOseberg'], // Add your reviewers here + reviewers: ['@FredrikOseberg'], // Add your reviewers here }); } \ No newline at end of file