Skip to content

Commit

Permalink
Merge pull request #20252 from LongyuZhang/cca1
Browse files Browse the repository at this point in the history
Enable TriagerX recommendation on corresponding issues
  • Loading branch information
llxia authored Sep 27, 2024
2 parents ef7bb17 + b62524c commit e425dbf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 2 additions & 3 deletions .github/recommendation.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ 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 +32,15 @@ async function run() {
resultString += `Recommended Assignees: ${predictedAssignees.join(', ')}\n`;

await octokit.rest.issues.createComment({
issue_number: sandboxIssueNumber,
issue_number: process.env.ISSUE_NUMBER,
owner: sandboxOwner,
repo: sandboxRepo,
body: resultString
});
} catch (error) {
core.setFailed(`Action failed with error: ${error}`);
await octokit.rest.issues.createComment({
issue_number: sandboxIssueNumber,
issue_number: process.env.ISSUE_NUMBER,
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: 1 addition & 2 deletions .github/workflows/TriageClosedIssue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ jobs:
const commentsUrl = issueData.comments_url;
const { data: commentsData } = await github.request(commentsUrl);
const sandboxIssueNumber = 19673;
const sandboxOwner = context.repo.owner;
const sandboxRepo = context.repo.repo;
Expand Down Expand Up @@ -74,7 +73,7 @@ jobs:
}
await github.issues.createComment({
issue_number: sandboxIssueNumber,
issue_number: context.issue.number,
owner: sandboxOwner,
repo: sandboxRepo,
body: resultString,
Expand Down

0 comments on commit e425dbf

Please sign in to comment.