Skip to content

Commit

Permalink
Create new git issue at openj9 repo
Browse files Browse the repository at this point in the history
Signed-off-by: Lan Xia <Lan_Xia@ca.ibm.com>
  • Loading branch information
llxia committed Mar 7, 2024
1 parent 5a9aad1 commit f094133
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 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,10 @@ const GitNewissue = () => {
const { testId, testName, buildId } = getParams(location.search);

const urlParams = params({ title, body });
let issueUrl = 'https://github.com/adoptium/aqa-tests/';
if (window.location.hostname.indexOf('.fyre.ibm.com') > -1) {

Check failure

Code scanning / CodeQL

Incomplete URL substring sanitization High test

'
.fyre.ibm.com
' can be anywhere in the URL, and arbitrary hosts may come before or after it.
issueUrl = 'https://github.com/eclipse-openj9/openj9/';
}
return (
<div>
<TestBreadcrumb
Expand All @@ -208,9 +212,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

0 comments on commit f094133

Please sign in to comment.