Skip to content

Commit

Permalink
Move TriagerX comment to a sandbox temporarily
Browse files Browse the repository at this point in the history
Move TriagerX comment to a sandbox temporarily

Signed-off-by: LongyuZhang <[email protected]>
  • Loading branch information
LongyuZhang committed Dec 12, 2024
1 parent c6d3e93 commit f9e95b8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .github/recommendation.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down Expand Up @@ -33,15 +34,15 @@ 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
});
} 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.`
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/TriageClosedIssue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
repo: context.repo.repo
});
const sandboxIssueNumber = 19673;
const commentsUrl = issueData.comments_url;
const { data: commentsData } = await github.request(commentsUrl);
Expand Down Expand Up @@ -74,7 +75,7 @@ jobs:
}
await github.issues.createComment({
issue_number: context.issue.number,
issue_number: sandboxIssueNumber,
owner: sandboxOwner,
repo: sandboxRepo,
body: resultString,
Expand Down

0 comments on commit f9e95b8

Please sign in to comment.