Skip to content

Commit 0b4ca7c

Browse files
committed
Create new git issue at openj9 repo
Signed-off-by: Lan Xia <[email protected]>
1 parent 5a9aad1 commit 0b4ca7c

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

test-result-summary-client/src/Build/GitNewIssue.jsx

+6-2
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,10 @@ const GitNewissue = () => {
196196
const { testId, testName, buildId } = getParams(location.search);
197197

198198
const urlParams = params({ title, body });
199+
let issueUrl = 'https://github.com/adoptium/aqa-tests/';
200+
if (window.location.hostname.indexOf('ibm.com') > -1) {
201+
issueUrl = 'https://github.com/eclipse-openj9/openj9/';
202+
}
199203
return (
200204
<div>
201205
<TestBreadcrumb
@@ -208,9 +212,9 @@ const GitNewissue = () => {
208212
bordered={true}
209213
style={{ width: '100%' }}
210214
extra={
211-
<Tooltip title="Create new issue at https://github.com/adoptium/aqa-tests">
215+
<Tooltip title={`Create new issue at ${issueUrl}`}>
212216
<a
213-
href={`https://github.com/adoptium/aqa-tests/issues/new${urlParams}`}
217+
href={`${issueUrl}issues/new${urlParams}`}
214218
target="_blank"
215219
rel="noopener noreferrer"
216220
>

test-result-summary-client/src/Build/TestTable.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ export default class TestTable extends Component {
158158
search: params({ testId, buildId }),
159159
}}
160160
>
161-
<Tooltip title="Create new issue at https://github.com/adoptium/aqa-tests">
161+
<Tooltip title="Create new Github issue">
162162
{' '}
163163
<GithubOutlined />
164164
</Tooltip>

0 commit comments

Comments
 (0)