Skip to content

Commit fb3b0e5

Browse files
committed
chore: format files
1 parent 1585951 commit fb3b0e5

3 files changed

Lines changed: 114 additions & 0 deletions

File tree

.github/labels.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
- name: blocked
2+
color: 'fc1423'
3+
- name: bug:confirmed
4+
color: 'd73a4a'
5+
- name: bug:unverified
6+
color: 'f9d0c4'
7+
- name: chore
8+
color: 'ffffff'
9+
- name: ci
10+
color: '0075ca'
11+
- name: dependencies
12+
color: '276bd1'
13+
- name: discordjs
14+
color: '5663e9'
15+
- name: documentation
16+
color: '0075ca'
17+
- name: duplicate
18+
color: 'cfd3d7'
19+
- name: feature
20+
color: 'ffff00'
21+
- name: help wanted
22+
color: '008672'
23+
- name: need repro
24+
color: 'c66037'
25+
- name: needs rebase & merge
26+
color: '24853c'
27+
- name: performance
28+
color: '80c042'
29+
- name: priority:critical
30+
color: 'b60205'
31+
- name: priority:high
32+
color: 'fc1423'
33+
- name: question (please use Discord instead)
34+
color: 'd876e3'
35+
- name: refactor
36+
color: '1d637f'
37+
- name: regression
38+
color: 'ea8785'
39+
- name: semver:major
40+
color: 'c10f47'
41+
- name: semver:minor
42+
color: 'e4f486'
43+
- name: semver:patch
44+
color: 'e8be8b'
45+
- name: tests
46+
color: 'f06dff'
47+
- name: typings
48+
color: '80c042'
49+
- name: bun
50+
color: 'fbf0df'
51+
- name: deno
52+
color: 'ffffff'
53+
- name: release
54+
color: '68D7F0'
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: label-sync
2+
3+
on:
4+
workflow_call:
5+
inputs:
6+
operating-system:
7+
description: The operating system to use (default `ubuntu-latest`)
8+
required: false
9+
default: ubuntu-latest
10+
type: string
11+
with-submodules:
12+
description: Whether to include submodules when checking out the repository (default `false`)
13+
required: false
14+
default: 'false'
15+
type: string
16+
merge-labels:
17+
description: Whether to merge labels or not
18+
required: false
19+
default: false
20+
type: boolean
21+
repository-overwrite-labels:
22+
description: The repository to get overwrite labels from. Only used if merge-labels is true!
23+
required: false
24+
type: string
25+
26+
jobs:
27+
label-sync:
28+
name: Label sync
29+
runs-on: ${{ inputs.operating-system }}
30+
steps:
31+
- name: Checkout Core labels
32+
uses: actions/checkout@v6
33+
with:
34+
path: core-labels
35+
sparse-checkout: .github/labels.yml
36+
sparse-checkout-cone-mode: false
37+
repository: sapphiredev/.github
38+
submodules: ${{ inputs.with-submodules }}
39+
- name: Checkout Overwrite Labels
40+
if: inputs.merge-labels == true
41+
uses: actions/checkout@v6
42+
with:
43+
path: overwrite-labels
44+
sparse-checkout: .github/labels.yml
45+
sparse-checkout-cone-mode: false
46+
repository: ${{ inputs.repository-overwrite-labels }}
47+
submodules: ${{ inputs.with-submodules }}
48+
- name: Merge labels
49+
if: inputs.merge-labels == true
50+
run: |
51+
yq '. *+ load("core-labels/.github/labels.yml")' overwrite-labels/.github/labels.yml > labels.yml
52+
- name: Move core labels
53+
if: inputs.merge-labels == false
54+
run: mv core-labels/.github/labels.yml labels.yml
55+
- name: Run Label Sync
56+
uses: crazy-max/ghaction-github-labeler@v5
57+
with:
58+
github-token: ${{ secrets.GITHUB_TOKEN }}
59+
yaml-file: labels.yml

bun.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)