Merge pull request #12145 from marshmalien/4057-project-scm-type-details

Add SCM Type detail to job detail view
This commit is contained in:
JST 2022-05-03 10:09:35 -03:00 committed by GitHub
commit 3610008699
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -75,6 +75,14 @@ function JobDetail({ job, inventorySourceLabels }) {
workflow_job: t`Workflow Job`,
};
const scmTypes = {
'': t`Manual`,
git: t`Git`,
svn: t`Subversion`,
insights: t`Red Hat Insights`,
archive: t`Remote Archive`,
};
const deleteJob = async () => {
try {
await getJobModel(job.type).destroy(job.id);
@ -241,6 +249,11 @@ function JobDetail({ job, inventorySourceLabels }) {
label={t`Job Type`}
value={jobTypes[job.type]}
/>
<Detail
dataCy="source-control-type"
label={t`Source Control Type`}
value={scmTypes[job.scm_type]}
/>
<LaunchedByDetail dataCy="job-launched-by" job={job} />
{renderInventoryDetail()}
{inventory_source && (