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

Create new git issue at openj9 repo #843

Merged
merged 1 commit into from
Mar 7, 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
9 changes: 7 additions & 2 deletions test-result-summary-client/src/Build/GitNewIssue.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,11 @@ const GitNewissue = () => {
const { testId, testName, buildId } = getParams(location.search);

const urlParams = params({ title, body });
let issueUrl = 'https://github.com/adoptium/aqa-tests/';
let allowedHosts = ['trssrtp1.fyre.ibm.com'];
if (allowedHosts.includes(window.location.hostname)) {
issueUrl = 'https://github.com/eclipse-openj9/openj9/';
}
return (
<div>
<TestBreadcrumb
Expand All @@ -208,9 +213,9 @@ const GitNewissue = () => {
bordered={true}
style={{ width: '100%' }}
extra={
<Tooltip title="Create new issue at https://github.com/adoptium/aqa-tests">
<Tooltip title={`Create new issue at ${issueUrl}`}>
<a
href={`https://github.com/adoptium/aqa-tests/issues/new${urlParams}`}
href={`${issueUrl}issues/new${urlParams}`}
target="_blank"
rel="noopener noreferrer"
>
Expand Down
2 changes: 1 addition & 1 deletion test-result-summary-client/src/Build/TestTable.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ export default class TestTable extends Component {
search: params({ testId, buildId }),
}}
>
<Tooltip title="Create new issue at https://github.com/adoptium/aqa-tests">
<Tooltip title="Create new Github issue">
{' '}
<GithubOutlined />
</Tooltip>
Expand Down
Loading