зеркало из https://github.com/mozilla/addons-pm.git
Use labels without spaces (#1036)
This commit is contained in:
Родитель
73285d88ef
Коммит
fa12f52e9d
|
@ -10,29 +10,29 @@ export default function AMODashCount(props) {
|
|||
|
||||
if (props.title.includes('untriaged')) {
|
||||
issuesLink = oneLineTrim`https://github.com/mozilla/${repo}/issues?
|
||||
utf8=%E2%9C%93&q=is%3Aissue%20is%3Aopen%20-label%3A%22priority%3A%20p1%22%20
|
||||
-label%3A%22priority%3A%20p2%22%20-label%3A%22priority%3A%20p3%22%20
|
||||
-label%3A%22priority%3A%20p4%22%20-label%3A%22priority%3A%20p5%22`;
|
||||
utf8=%E2%9C%93&q=is%3Aissue%20is%3Aopen%20-label%3A%22priority%3Ap1%22%20
|
||||
-label%3A%22priority%3Ap2%22%20-label%3A%22priority%3Ap3%22%20
|
||||
-label%3A%22priority%3Ap4%22%20-label%3A%22priority%3Ap5%22`;
|
||||
warningLimit = 15;
|
||||
}
|
||||
if (props.title.includes('prod_bug')) {
|
||||
issuesLink = oneLineTrim`https://github.com/mozilla/${repo}/issues?
|
||||
utf8=%E2%9C%93&q=is%3Aissue%20is%3Aopen%20label%3A%22type%3A%20prod_bug%22`;
|
||||
utf8=%E2%9C%93&q=is%3Aissue%20is%3Aopen%20label%3A%22type%3Aprod_bug%22`;
|
||||
warningLimit = 1;
|
||||
}
|
||||
if (props.title.includes('p1')) {
|
||||
issuesLink = oneLineTrim`https://github.com/mozilla/${repo}/issues?
|
||||
utf8=%E2%9C%93&q=is%3Aissue%20is%3Aopen%20label%3A%22priority:%20p1%22`;
|
||||
utf8=%E2%9C%93&q=is%3Aissue%20is%3Aopen%20label%3A%22priority:p1%22`;
|
||||
warningLimit = 1;
|
||||
}
|
||||
if (props.title.includes('p2')) {
|
||||
issuesLink = oneLineTrim`https://github.com/mozilla/${repo}/issues?
|
||||
utf8=%E2%9C%93&q=is%3Aissue%20is%3Aopen%20label%3A%22priority:%20p2%22`;
|
||||
utf8=%E2%9C%93&q=is%3Aissue%20is%3Aopen%20label%3A%22priority:p2%22`;
|
||||
warningLimit = 1;
|
||||
}
|
||||
if (props.title.includes('p3')) {
|
||||
issuesLink = oneLineTrim`https://github.com/mozilla/${repo}/issues?
|
||||
utf8=%E2%9C%93&q=is%3Aissue%20is%3Aopen%20label%3A%22priority:%20p3%22`;
|
||||
utf8=%E2%9C%93&q=is%3Aissue%20is%3Aopen%20label%3A%22priority:p3%22`;
|
||||
warningLimit = undefined;
|
||||
}
|
||||
if (props.title.includes('open prs')) {
|
||||
|
|
|
@ -37,10 +37,10 @@ module.exports = {
|
|||
p5: '#3e0200',
|
||||
},
|
||||
invalidStates: [
|
||||
'state: invalid',
|
||||
'state: duplicate',
|
||||
'state: works for me',
|
||||
'state: wontfix',
|
||||
'state:invalid',
|
||||
'state:duplicate',
|
||||
'state:works_for_me',
|
||||
'state:wontfix',
|
||||
],
|
||||
priorities: ['p1', 'p2', 'p3', 'p4', 'p5'],
|
||||
contribRepos: [
|
||||
|
|
|
@ -33,7 +33,7 @@ export default async (req, res) => {
|
|||
const client = createClient();
|
||||
const variables = {
|
||||
query: oneLine`${contribRepos.map((n) => `repo:${n}`).join('\n')}
|
||||
label:"contrib: welcome"
|
||||
label:"contrib:welcome"
|
||||
is:open
|
||||
sort:updated-desc
|
||||
type:issues`,
|
||||
|
|
|
@ -33,7 +33,7 @@ export default async (req, res) => {
|
|||
const client = createClient();
|
||||
const variables = {
|
||||
query: oneLine`${contribRepos.map((n) => `repo:${n}`).join('\n')}
|
||||
label:"contrib: good first bug"
|
||||
label:"contrib:good_first_bug"
|
||||
is:open
|
||||
sort:updated-desc
|
||||
type:issues`,
|
||||
|
|
|
@ -10,25 +10,25 @@ const query = gql`
|
|||
triaged: issues(
|
||||
states: OPEN
|
||||
labels: [
|
||||
"priority: p1"
|
||||
"priority: p2"
|
||||
"priority: p3"
|
||||
"priority: p4"
|
||||
"priority: p5"
|
||||
"priority:p1"
|
||||
"priority:p2"
|
||||
"priority:p3"
|
||||
"priority:p4"
|
||||
"priority:p5"
|
||||
]
|
||||
) {
|
||||
totalCount
|
||||
}
|
||||
open_prod_bugs: issues(states: OPEN, labels: "type: prod_bug") {
|
||||
open_prod_bugs: issues(states: OPEN, labels: "type:prod_bug") {
|
||||
totalCount
|
||||
}
|
||||
open_p1s: issues(states: OPEN, labels: "priority: p1") {
|
||||
open_p1s: issues(states: OPEN, labels: "priority:p1") {
|
||||
totalCount
|
||||
}
|
||||
open_p2s: issues(states: OPEN, labels: "priority: p2") {
|
||||
open_p2s: issues(states: OPEN, labels: "priority:p2") {
|
||||
totalCount
|
||||
}
|
||||
open_p3s: issues(states: OPEN, labels: "priority: p3") {
|
||||
open_p3s: issues(states: OPEN, labels: "priority:p3") {
|
||||
totalCount
|
||||
}
|
||||
open_prs: pullRequests(states: OPEN) {
|
||||
|
|
|
@ -33,7 +33,7 @@ export default async (req, res) => {
|
|||
const client = createClient();
|
||||
const variables = {
|
||||
query: oneLine`${contribRepos.map((n) => `repo:${n}`).join('\n')}
|
||||
label:"contrib: maybe good first bug"
|
||||
label:"contrib:maybe_good_first_bug"
|
||||
is:open
|
||||
sort:updated-desc
|
||||
type:issues`,
|
||||
|
|
|
@ -29,7 +29,7 @@ export default {
|
|||
__typename: 'Label',
|
||||
},
|
||||
{
|
||||
name: 'priority: p5',
|
||||
name: 'priority:p5',
|
||||
__typename: 'Label',
|
||||
},
|
||||
],
|
||||
|
@ -60,7 +60,7 @@ export default {
|
|||
__typename: 'Label',
|
||||
},
|
||||
{
|
||||
name: 'priority: p3',
|
||||
name: 'priority:p3',
|
||||
__typename: 'Label',
|
||||
},
|
||||
{
|
||||
|
@ -103,7 +103,7 @@ export default {
|
|||
__typename: 'Label',
|
||||
},
|
||||
{
|
||||
name: 'priority: p4',
|
||||
name: 'priority:p4',
|
||||
__typename: 'Label',
|
||||
},
|
||||
{
|
||||
|
|
|
@ -29,7 +29,7 @@ export default {
|
|||
__typename: 'Label',
|
||||
},
|
||||
{
|
||||
name: 'priority: p5',
|
||||
name: 'priority:p5',
|
||||
__typename: 'Label',
|
||||
},
|
||||
],
|
||||
|
@ -60,7 +60,7 @@ export default {
|
|||
__typename: 'Label',
|
||||
},
|
||||
{
|
||||
name: 'priority: p3',
|
||||
name: 'priority:p3',
|
||||
__typename: 'Label',
|
||||
},
|
||||
{
|
||||
|
@ -103,7 +103,7 @@ export default {
|
|||
__typename: 'Label',
|
||||
},
|
||||
{
|
||||
name: 'priority: p4',
|
||||
name: 'priority:p4',
|
||||
__typename: 'Label',
|
||||
},
|
||||
{
|
||||
|
|
|
@ -20,7 +20,7 @@ export default {
|
|||
__typename: 'Label',
|
||||
},
|
||||
{
|
||||
name: 'priority: p4',
|
||||
name: 'priority:p4',
|
||||
__typename: 'Label',
|
||||
},
|
||||
{
|
||||
|
|
|
@ -42,7 +42,7 @@ export default {
|
|||
__typename: 'Label',
|
||||
},
|
||||
{
|
||||
name: 'priority: p4',
|
||||
name: 'priority:p4',
|
||||
__typename: 'Label',
|
||||
},
|
||||
{
|
||||
|
@ -139,7 +139,7 @@ export default {
|
|||
__typename: 'Label',
|
||||
},
|
||||
{
|
||||
name: 'priority: p3',
|
||||
name: 'priority:p3',
|
||||
__typename: 'Label',
|
||||
},
|
||||
{
|
||||
|
@ -223,7 +223,7 @@ export default {
|
|||
__typename: 'Label',
|
||||
},
|
||||
{
|
||||
name: 'priority: p3',
|
||||
name: 'priority:p3',
|
||||
__typename: 'Label',
|
||||
},
|
||||
{
|
||||
|
@ -316,7 +316,7 @@ export default {
|
|||
__typename: 'Label',
|
||||
},
|
||||
{
|
||||
name: 'priority: p2',
|
||||
name: 'priority:p2',
|
||||
__typename: 'Label',
|
||||
},
|
||||
{
|
||||
|
@ -401,7 +401,7 @@ export default {
|
|||
__typename: 'Label',
|
||||
},
|
||||
{
|
||||
name: 'priority: p3',
|
||||
name: 'priority:p3',
|
||||
__typename: 'Label',
|
||||
},
|
||||
{
|
||||
|
@ -489,7 +489,7 @@ export default {
|
|||
__typename: 'Label',
|
||||
},
|
||||
{
|
||||
name: 'priority: p3',
|
||||
name: 'priority:p3',
|
||||
__typename: 'Label',
|
||||
},
|
||||
],
|
||||
|
@ -566,7 +566,7 @@ export default {
|
|||
labels: {
|
||||
nodes: [
|
||||
{
|
||||
name: 'priority: p3',
|
||||
name: 'priority:p3',
|
||||
__typename: 'Label',
|
||||
},
|
||||
{
|
||||
|
@ -664,7 +664,7 @@ export default {
|
|||
__typename: 'Label',
|
||||
},
|
||||
{
|
||||
name: 'priority: p4',
|
||||
name: 'priority:p4',
|
||||
__typename: 'Label',
|
||||
},
|
||||
{
|
||||
|
@ -753,7 +753,7 @@ export default {
|
|||
__typename: 'Label',
|
||||
},
|
||||
{
|
||||
name: 'priority: p3',
|
||||
name: 'priority:p3',
|
||||
__typename: 'Label',
|
||||
},
|
||||
{
|
||||
|
@ -856,7 +856,7 @@ export default {
|
|||
__typename: 'Label',
|
||||
},
|
||||
{
|
||||
name: 'priority: p2',
|
||||
name: 'priority:p2',
|
||||
__typename: 'Label',
|
||||
},
|
||||
{
|
||||
|
@ -966,7 +966,7 @@ export default {
|
|||
__typename: 'Label',
|
||||
},
|
||||
{
|
||||
name: 'priority: p3',
|
||||
name: 'priority:p3',
|
||||
__typename: 'Label',
|
||||
},
|
||||
{
|
||||
|
@ -1117,7 +1117,7 @@ export default {
|
|||
__typename: 'Label',
|
||||
},
|
||||
{
|
||||
name: 'priority: p3',
|
||||
name: 'priority:p3',
|
||||
__typename: 'Label',
|
||||
},
|
||||
{
|
||||
|
@ -1230,7 +1230,7 @@ export default {
|
|||
__typename: 'Label',
|
||||
},
|
||||
{
|
||||
name: 'priority: p5',
|
||||
name: 'priority:p5',
|
||||
__typename: 'Label',
|
||||
},
|
||||
{
|
||||
|
|
|
@ -16,7 +16,7 @@ describe(__filename, () => {
|
|||
labels: {
|
||||
nodes: [
|
||||
{
|
||||
name: 'priority: p1',
|
||||
name: 'priority:p1',
|
||||
},
|
||||
{
|
||||
name: 'contrib: assigned',
|
||||
|
@ -48,7 +48,7 @@ describe(__filename, () => {
|
|||
labels: {
|
||||
nodes: [
|
||||
{
|
||||
name: 'priority: p2',
|
||||
name: 'priority:p2',
|
||||
},
|
||||
{
|
||||
name: 'contrib: mentor assigned',
|
||||
|
|
|
@ -86,7 +86,7 @@ describe(__filename, () => {
|
|||
labels: {
|
||||
nodes: [
|
||||
{
|
||||
name: 'priority: p1',
|
||||
name: 'priority:p1',
|
||||
},
|
||||
],
|
||||
},
|
||||
|
@ -143,7 +143,7 @@ describe(__filename, () => {
|
|||
labels: {
|
||||
nodes: [
|
||||
{
|
||||
name: 'priority: p1',
|
||||
name: 'priority:p1',
|
||||
},
|
||||
],
|
||||
},
|
||||
|
@ -319,7 +319,7 @@ describe(__filename, () => {
|
|||
labels: {
|
||||
nodes: [
|
||||
{
|
||||
name: 'priority: p1',
|
||||
name: 'priority:p1',
|
||||
},
|
||||
],
|
||||
},
|
||||
|
@ -335,7 +335,7 @@ describe(__filename, () => {
|
|||
labels: {
|
||||
nodes: [
|
||||
{
|
||||
name: 'priority: p1',
|
||||
name: 'priority:p1',
|
||||
},
|
||||
],
|
||||
},
|
||||
|
@ -428,7 +428,7 @@ describe(__filename, () => {
|
|||
labels: {
|
||||
nodes: [
|
||||
{
|
||||
name: 'priority: p1',
|
||||
name: 'priority:p1',
|
||||
},
|
||||
],
|
||||
},
|
||||
|
@ -467,7 +467,7 @@ describe(__filename, () => {
|
|||
labels: {
|
||||
nodes: [
|
||||
{
|
||||
name: 'priority: p2',
|
||||
name: 'priority:p2',
|
||||
},
|
||||
],
|
||||
},
|
||||
|
|
Загрузка…
Ссылка в новой задаче