Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Release Engineering
Public
distrobuild
Commits
5439462b
Commit
5439462b
authored
Apr 11, 2021
by
Mustafa Gezen
🏗
Browse files
Add build urls to BuildsTable as well
parent
eab5d95d
Changes
2
Hide whitespace changes
Inline
Side-by-side
ui/src/api.ts
View file @
5439462b
...
@@ -63,8 +63,11 @@ export interface IBuild {
...
@@ -63,8 +63,11 @@ export interface IBuild {
created_at
:
string
;
created_at
:
string
;
status
:
string
;
status
:
string
;
koji_id
:
string
;
koji_id
:
string
;
mbs_id
:
string
;
mbs
:
boolean
;
branch
:
string
;
branch
:
string
;
commit
:
string
;
commit
:
string
;
import_commit
:
Commit
;
package
:
IPackage
;
package
:
IPackage
;
}
}
...
...
ui/src/components/BuildsTable.tsx
View file @
5439462b
...
@@ -33,6 +33,7 @@ import {
...
@@ -33,6 +33,7 @@ import {
import
{
IBuild
,
IPaginated
}
from
'
../api
'
;
import
{
IBuild
,
IPaginated
}
from
'
../api
'
;
import
{
statusToTag
}
from
'
../utils/tags
'
;
import
{
statusToTag
}
from
'
../utils/tags
'
;
import
{
Link
}
from
'
react-router-dom
'
;
import
{
Link
}
from
'
react-router-dom
'
;
import
{
commitsToLinks
}
from
'
../utils/commits
'
;
export
interface
BuildsTableProps
{
export
interface
BuildsTableProps
{
builds
:
IPaginated
<
IBuild
>
;
builds
:
IPaginated
<
IBuild
>
;
...
@@ -72,7 +73,30 @@ export const BuildsTable = (props: BuildsTableProps) => {
...
@@ -72,7 +73,30 @@ export const BuildsTable = (props: BuildsTableProps) => {
</
Link
>
</
Link
>
</
TableCell
>
</
TableCell
>
<
TableCell
>
{
statusToTag
(
item
.
status
)
}
</
TableCell
>
<
TableCell
>
{
statusToTag
(
item
.
status
)
}
</
TableCell
>
<
TableCell
/>
<
TableCell
className
=
"space-x-4"
>
{
item
.
koji_id
&&
(
<
a
href
=
{
`https://kojidev.rockylinux.org/koji/taskinfo?taskID=
${
item
.
koji_id
}
`
}
target
=
"_blank"
>
Koji
</
a
>
)
}
{
item
.
mbs_id
&&
(
<
a
href
=
{
`https://mbsstg.rockylinux.org/module-build-service/1/module-builds/
${
item
.
mbs_id
}
`
}
target
=
"_blank"
>
MBS
</
a
>
)
}
{
commitsToLinks
(
item
.
mbs
,
item
.
package
,
[
item
.
import_commit
])
}
{
!
item
.
mbs_id
&&
!
item
.
koji_id
&&
item
.
status
===
'
FAILED
'
&&
(
<
span
>
Failed during invocation
</
span
>
)
}
</
TableCell
>
</
TableRow
>
</
TableRow
>
))
}
))
}
</
TableBody
>
</
TableBody
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment