Skip to content

Commit

Permalink
feat: use of github palette in all configs
Browse files Browse the repository at this point in the history
  • Loading branch information
christophehurpeau committed Jan 22, 2023
1 parent 36d426f commit 59542d7
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 33 deletions.
12 changes: 1 addition & 11 deletions src/accountConfigs/christophehurpeau.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,6 @@
import { githubPalette } from './color-palettes/githubPalette';
import type { Config } from './types';

const githubPalette = {
accentEmphasis: '#1f6feb',
successEmphasis: '#238636',
attentionEmphasis: '#9e6a03',
severeEmphasis: '#bd561d',
dangerEmphasis: '#da3633',
doneEmphasis: '#8957e5',
scaleBlue1: '#a5d6ff',
scaleGray6: '#57606a',
};

const config: Config<'dev', never> = {
autoAssignToCreator: true,
trimTitle: true,
Expand Down
10 changes: 10 additions & 0 deletions src/accountConfigs/color-palettes/githubPalette.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
export const githubPalette = {
accentEmphasis: '#1f6feb',
successEmphasis: '#238636',
attentionEmphasis: '#9e6a03',
severeEmphasis: '#bd561d',
dangerEmphasis: '#da3633',
doneEmphasis: '#8957e5',
scaleBlue1: '#a5d6ff',
scaleGray6: '#57606a',
};
20 changes: 15 additions & 5 deletions src/accountConfigs/defaultConfig.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { githubPalette } from './color-palettes/githubPalette';
import type { Config } from './types';

const config: Config<never, never> = {
Expand All @@ -17,15 +18,24 @@ const config: Config<never, never> = {
teams: {},
labels: {
list: {
// /* ci */
// 'ci/in-progress': { name: ':green_heart: ci/in-progress', color: '#0052cc' },
// 'ci/fail': { name: ':green_heart: ci/fail', color: '#e11d21' },
// 'ci/passed': { name: ':green_heart: ci/passed', color: '#86f9b4' },
/* checks */
'checks/in-progress': {
name: ':green_heart: checks/in-progress',
color: githubPalette.scaleGray6,
},
'checks/failed': {
name: ':green_heart: checks/fail',
color: githubPalette.dangerEmphasis,
},
'checks/passed': {
name: ':green_heart: checks/passed',
color: githubPalette.successEmphasis,
},

/* infos */
'breaking-changes': {
name: ':warning: Breaking Changes',
color: '#ef7934',
color: githubPalette.attentionEmphasis,
},
},

Expand Down
35 changes: 18 additions & 17 deletions src/accountConfigs/ornikar.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { githubPalette } from './color-palettes/githubPalette';
import type { Config } from './types';

const lateOceanColorPalette = {
Expand Down Expand Up @@ -287,15 +288,15 @@ const config: Config<'dev' | 'design', 'ops' | 'frontends' | 'backends'> = {
/* checks */
'checks/in-progress': {
name: ':green_heart: checks/in-progress',
color: lateOceanColorPalette.warmEmbrace,
color: githubPalette.scaleGray6,
},
'checks/failed': {
name: ':green_heart: checks/fail',
color: lateOceanColorPalette.englishVermillon,
color: githubPalette.dangerEmphasis,
},
'checks/passed': {
name: ':green_heart: checks/passed',
color: lateOceanColorPalette.viride,
color: githubPalette.successEmphasis,
},

// /* ci */
Expand All @@ -306,37 +307,37 @@ const config: Config<'dev' | 'design', 'ops' | 'frontends' | 'backends'> = {
/* code */
'code/needs-review': {
name: ':ok_hand: code/needs-review',
color: lateOceanColorPalette.goldCrayola,
color: githubPalette.attentionEmphasis,
},
'code/review-requested': {
name: ':ok_hand: code/review-requested',
color: lateOceanColorPalette.warmEmbrace,
color: githubPalette.scaleGray6,
},
'code/changes-requested': {
name: ':ok_hand: code/changes-requested',
color: lateOceanColorPalette.englishVermillon,
color: githubPalette.dangerEmphasis,
},
'code/approved': {
name: ':ok_hand: code/approved',
color: lateOceanColorPalette.viride,
color: githubPalette.successEmphasis,
},

/* design */
'design/needs-review': {
name: ':art: design/needs-review',
color: lateOceanColorPalette.goldCrayola,
color: githubPalette.attentionEmphasis,
},
'design/review-requested': {
name: ':art: design/review-requested',
color: lateOceanColorPalette.warmEmbrace,
color: githubPalette.scaleGray6,
},
'design/changes-requested': {
name: ':art: design/changes-requested',
color: lateOceanColorPalette.englishVermillon,
color: githubPalette.dangerEmphasis,
},
'design/approved': {
name: ':art: design/approved',
color: lateOceanColorPalette.viride,
color: githubPalette.successEmphasis,
},

/* teams */
Expand All @@ -356,32 +357,32 @@ const config: Config<'dev' | 'design', 'ops' | 'frontends' | 'backends'> = {
/* auto merge */
'merge/automerge': {
name: ':soon: automerge',
color: lateOceanColorPalette.viride,
color: githubPalette.successEmphasis,
},
'merge/skip-ci': {
name: ':vertical_traffic_light: skip-ci',
color: lateOceanColorPalette.seaShell,
color: githubPalette.scaleBlue1,
},
'merge/update-branch': {
name: ':arrows_counterclockwise: update branch',
color: lateOceanColorPalette.seaShell,
color: githubPalette.accentEmphasis,
},
'merge/bypass-progress': {
name: ':soon: bypass progress',
color: lateOceanColorPalette.englishVermillon,
color: githubPalette.dangerEmphasis,
},

/* feature-branch */
'feature-branch': {
name: 'feature-branch',
color: lateOceanColorPalette.aero,
color: githubPalette.accentEmphasis,
},

/* infos */
'breaking-changes': {
name: ':warning: Breaking Changes',
description: 'This issue or pull request will need a new major version',
color: lateOceanColorPalette.lateOcean,
color: githubPalette.attentionEmphasis,
},
duplicate: {
name: 'duplicate',
Expand Down

0 comments on commit 59542d7

Please sign in to comment.