Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move TriagerX comment to a sandbox temporarily #20827

Merged
merged 1 commit into from
Dec 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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