Skip to content

Commit 53a7702

Browse files
committed
Make MRs appear for RHEL GitLab namespace
1 parent 0a2d30c commit 53a7702

File tree

4 files changed

+12
-2
lines changed

4 files changed

+12
-2
lines changed

src/components/PageHelp.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ const Help = () => (
214214
<p className="padding-left-20">
215215
<CodeBlockCode id="code-content">
216216
{`query brew {
217-
koji_build_tags_by_nvr(nvr: $NVR, instance: rh|fp|cs){
217+
koji_build_tags_by_nvr(nvr: $NVR, instance: rh|fp|cs|pn){
218218
arches
219219
id
220220
locked

src/config.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ export const config = {
5050
rh: {
5151
webUrl: 'https://brewweb.engineering.redhat.com/brew',
5252
},
53+
pn: {
54+
webUrl: 'https://brewweb.engineering.redhat.com/brew',
55+
},
5356
},
5457
mbs: {
5558
cs: {
@@ -62,6 +65,9 @@ export const config = {
6265
rh: {
6366
webUrl: 'https://mbsweb.engineering.redhat.com/mbs-ui/',
6467
},
68+
rh: {
69+
webUrl: 'https://mbsweb.engineering.redhat.com/mbs-ui/',
70+
},
6571
},
6672
waiverdb: {
6773
url: 'https://waiverdb.engineering.redhat.com',

src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -977,7 +977,7 @@ export type ComponentMapping = {
977977
/**
978978
* GraphQL KojiInstanceInputType
979979
*/
980-
export type KojiInstance = 'cs' | 'fp' | 'rh';
980+
export type KojiInstance = 'cs' | 'fp' | 'rh' | 'pn' ;
981981
/**
982982
* GraphQL DistGitInstanceInputType
983983
*/

src/utils/utils.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,8 @@ export const mkLinkPkgsDevelFromSource = (
387387
switch (instance) {
388388
case 'cs':
389389
return `https://gitlab.com/redhat/centos-stream/${namespace}/${name}/-/commit/${commit}`;
390+
case 'pn':
391+
return `https://gitlab.com/redhat/rhel/${namespace}/${name}/-/commit/${commit}`;
390392
case 'fp':
391393
return `https://src.fedoraproject.org/${namespace}/${name}/c/${commit}`;
392394
case 'rh':
@@ -407,6 +409,8 @@ export const mkLinkFileInGit = (
407409
switch (instance) {
408410
case 'cs':
409411
return `https://gitlab.com/redhat/centos-stream/${namespace}/${repoName}/-/blob/${commit}/${fileName}`;
412+
case 'pn':
413+
return `https://gitlab.com/redhat/rhel/${namespace}/${repoName}/-/blob/${commit}/${fileName}`;
410414
case 'fp':
411415
return `https://src.fedoraproject.org/${namespace}/${repoName}/blob/${commit}/f/${fileName}`;
412416
case 'rh':

0 commit comments

Comments
 (0)