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

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 && (