From f9e95b87dcb44461d8c1a478362b00cde96d8f3d Mon Sep 17 00:00:00 2001 From: LongyuZhang Date: Thu, 12 Dec 2024 11:30:13 -0500 Subject: [PATCH] Move TriagerX comment to a sandbox temporarily Move TriagerX comment to a sandbox temporarily Signed-off-by: LongyuZhang --- .github/recommendation.js | 5 +++-- .github/workflows/TriageClosedIssue.yml | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/recommendation.js b/.github/recommendation.js index 72e6ef9951f..79cb7feabc6 100644 --- a/.github/recommendation.js +++ b/.github/recommendation.js @@ -3,6 +3,7 @@ const core = require('@actions/core'); const github = require('@actions/github'); async function run() { + const sandboxIssueNumber = 19673; const sandboxOwner = 'eclipse-openj9'; const sandboxRepo = 'openj9'; @@ -33,7 +34,7 @@ async function run() { // resultString += `Recommended Assignees: ${predictedAssignees.join(', ')}\n`; await octokit.rest.issues.createComment({ - issue_number: process.env.ISSUE_NUMBER, + issue_number: sandboxIssueNumber, owner: sandboxOwner, repo: sandboxRepo, body: resultString @@ -41,7 +42,7 @@ async function run() { } catch (error) { core.setFailed(`Action failed with error: ${error}`); await octokit.rest.issues.createComment({ - issue_number: process.env.ISSUE_NUMBER, + issue_number: sandboxIssueNumber, owner: sandboxOwner, repo: sandboxRepo, body: `The TriagerX model is currently not responding to the issue ${process.env.ISSUE_NUMBER}. Please try again later.` diff --git a/.github/workflows/TriageClosedIssue.yml b/.github/workflows/TriageClosedIssue.yml index beaa71b4f98..b36ed1f7d1b 100644 --- a/.github/workflows/TriageClosedIssue.yml +++ b/.github/workflows/TriageClosedIssue.yml @@ -21,6 +21,7 @@ jobs: repo: context.repo.repo }); + const sandboxIssueNumber = 19673; const commentsUrl = issueData.comments_url; const { data: commentsData } = await github.request(commentsUrl); @@ -74,7 +75,7 @@ jobs: } await github.issues.createComment({ - issue_number: context.issue.number, + issue_number: sandboxIssueNumber, owner: sandboxOwner, repo: sandboxRepo, body: resultString,