mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-21 00:52:55 +00:00
refactor: adjust code to updated dependencies
This commit is contained in:
@@ -17,21 +17,27 @@ import {Label} from '@openstapps/gitlab-api/lib/types';
|
||||
/**
|
||||
* List of schools with their IDs
|
||||
*/
|
||||
export const SCHOOLS: { [school: string]: number } = {};
|
||||
export const SCHOOLS: { [school: string]: number; } = {};
|
||||
|
||||
/**
|
||||
* ID OF openstapps main group
|
||||
*/
|
||||
const STAPPS_GROUP_ID = 4088298;
|
||||
|
||||
/**
|
||||
* List of group IDs to fetch issues for
|
||||
*
|
||||
* 4088298 is openstapps main group
|
||||
*/
|
||||
export const GROUPS: number[] = [4088298].concat(Object.keys(SCHOOLS).map((school) => {
|
||||
return SCHOOLS[school];
|
||||
}));
|
||||
export const GROUPS: number[] = [STAPPS_GROUP_ID]
|
||||
.concat(Object.keys(SCHOOLS)
|
||||
.map((school) => {
|
||||
return SCHOOLS[school];
|
||||
}),
|
||||
);
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
export const LABEL_WEIGHTS: any = {
|
||||
export const LABEL_WEIGHTS: { [key: string]: number; } = {
|
||||
'bug': 1,
|
||||
'critical': 2,
|
||||
};
|
||||
@@ -67,12 +73,11 @@ export const PROTECTED_BRANCHES = [
|
||||
/**
|
||||
* Labels to add to all projects
|
||||
*/
|
||||
export const NEEDED_LABELS: Label[] = [
|
||||
{
|
||||
color: '#FF0000',
|
||||
description: 'An error/something that is not working as expected',
|
||||
name: 'bug',
|
||||
},
|
||||
export const NEEDED_LABELS: Label[] = [{
|
||||
color: '#FF0000',
|
||||
description: 'An error/something that is not working as expected',
|
||||
name: 'bug',
|
||||
},
|
||||
{
|
||||
color: '#5CB85C',
|
||||
name: 'consistency',
|
||||
@@ -154,20 +159,23 @@ export const NEEDED_LABELS: Label[] = [
|
||||
color: '#428BCA',
|
||||
description: 'Feedback from the feedback-module of the app',
|
||||
name: 'user-feedback',
|
||||
},
|
||||
].concat(Object.keys(SCHOOLS).map((school) => {
|
||||
return {
|
||||
color: '#F0AD4E',
|
||||
description: 'An issue that specifically applies to this school',
|
||||
name: `school-${school}`,
|
||||
};
|
||||
})).concat(['android', 'iOS', 'web', 'node'].map((platform) => {
|
||||
return {
|
||||
color: '#FFECDB',
|
||||
description: 'An issue that specifically applies to this platform',
|
||||
name: 'platform-' + platform,
|
||||
};
|
||||
}));
|
||||
}]
|
||||
.concat(Object.keys(SCHOOLS)
|
||||
.map((school) => {
|
||||
return {
|
||||
color: '#F0AD4E',
|
||||
description: 'An issue that specifically applies to this school',
|
||||
name: `school-${school}`,
|
||||
};
|
||||
}))
|
||||
.concat(['android', 'iOS', 'web', 'node']
|
||||
.map((platform) => {
|
||||
return {
|
||||
color: '#FFECDB',
|
||||
description: 'An issue that specifically applies to this platform',
|
||||
name: `platform-${platform}`,
|
||||
};
|
||||
}));
|
||||
|
||||
/**
|
||||
* Prefix for automatically created notes
|
||||
@@ -178,3 +186,8 @@ export const NOTE_PREFIX = '`openstapps/projectmanagement`';
|
||||
* Slack channel to post messages to
|
||||
*/
|
||||
export const SLACK_CHANNEL = 'C762UG76Z';
|
||||
|
||||
/**
|
||||
* Concurrency for async pool
|
||||
*/
|
||||
export const CONCURRENCY = 3;
|
||||
|
||||
Reference in New Issue
Block a user