From 16b9d248d8cf14dd79b6400befd5a0ea422a33ff Mon Sep 17 00:00:00 2001 From: Norman Joyner Date: Mon, 29 Dec 2025 19:51:52 -0500 Subject: [PATCH 1/4] Add workflow to sync repository labels --- .github/labels.yaml | 14 ++++++++++++++ .github/workflows/sync-labels.yaml | 23 +++++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 .github/labels.yaml create mode 100644 .github/workflows/sync-labels.yaml diff --git a/.github/labels.yaml b/.github/labels.yaml new file mode 100644 index 0000000..8429d34 --- /dev/null +++ b/.github/labels.yaml @@ -0,0 +1,14 @@ +- name: 'area/compute' + color: 'C5DEF5' + +- name: 'area/iam' + color: 'C5DEF5' + +- name: 'area/networking' + color: 'C5DEF5' + +- name: 'area/physical' + color: 'C5DEF5' + +- name: 'area/storage' + color: 'C5DEF5' diff --git a/.github/workflows/sync-labels.yaml b/.github/workflows/sync-labels.yaml new file mode 100644 index 0000000..7688c92 --- /dev/null +++ b/.github/workflows/sync-labels.yaml @@ -0,0 +1,23 @@ +name: Sync labels +on: + workflow_dispatch: + +permissions: + issues: write + +jobs: + labels: + runs-on: ubuntu-latest + + steps: + - uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f + with: + node-version: 18.x + - run: npm install -g github-label-sync@v3.0.0 + shell: bash + - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 + with: + sparse-checkout: .github/labels.yaml + - run: | + github-label-sync --access-token ${{ inputs.github_token }} --labels .github/labels.yaml ${{ github.repository }} + shell: bash From a83e02bc06c31cef9cb443da415e02850013f997 Mon Sep 17 00:00:00 2001 From: Norman Joyner Date: Mon, 29 Dec 2025 20:54:38 -0500 Subject: [PATCH 2/4] Fix whitespace --- .github/workflows/sync-labels.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/sync-labels.yaml b/.github/workflows/sync-labels.yaml index 7688c92..eb03aa1 100644 --- a/.github/workflows/sync-labels.yaml +++ b/.github/workflows/sync-labels.yaml @@ -10,11 +10,11 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f - with: - node-version: 18.x - - run: npm install -g github-label-sync@v3.0.0 - shell: bash + - uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f + with: + node-version: 18.x + - run: npm install -g github-label-sync@v3.0.0 + shell: bash - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 with: sparse-checkout: .github/labels.yaml From e11c701bfdbab2b3183f8eeb2961b9ed2bc9988e Mon Sep 17 00:00:00 2001 From: Norman Joyner Date: Mon, 29 Dec 2025 20:56:18 -0500 Subject: [PATCH 3/4] Fix run indentation --- .github/workflows/sync-labels.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/sync-labels.yaml b/.github/workflows/sync-labels.yaml index eb03aa1..0a005c3 100644 --- a/.github/workflows/sync-labels.yaml +++ b/.github/workflows/sync-labels.yaml @@ -19,5 +19,5 @@ jobs: with: sparse-checkout: .github/labels.yaml - run: | - github-label-sync --access-token ${{ inputs.github_token }} --labels .github/labels.yaml ${{ github.repository }} + github-label-sync --access-token ${{ inputs.github_token }} --labels .github/labels.yaml ${{ github.repository }} shell: bash From 089b1d031a85e1055acf65d08abe4b14222a04b6 Mon Sep 17 00:00:00 2001 From: Norman Joyner Date: Mon, 29 Dec 2025 20:58:34 -0500 Subject: [PATCH 4/4] Fix secret reference --- .github/workflows/sync-labels.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/sync-labels.yaml b/.github/workflows/sync-labels.yaml index 0a005c3..283b8b6 100644 --- a/.github/workflows/sync-labels.yaml +++ b/.github/workflows/sync-labels.yaml @@ -19,5 +19,5 @@ jobs: with: sparse-checkout: .github/labels.yaml - run: | - github-label-sync --access-token ${{ inputs.github_token }} --labels .github/labels.yaml ${{ github.repository }} + github-label-sync --access-token ${{ github.token }} --labels .github/labels.yaml ${{ github.repository }} shell: bash