From 0f63044b60f321a015858b76fca89b77fc62f5fe Mon Sep 17 00:00:00 2001 From: David Langley Date: Wed, 2 Oct 2024 10:07:22 +0100 Subject: [PATCH] Add sync labels script and local labels file for compound specific labels --- .github/labels.yml | 35 +++++++++++++++++++++++++++++++ .github/workflows/sync_labels.yml | 21 +++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 .github/labels.yml create mode 100644 .github/workflows/sync_labels.yml diff --git a/.github/labels.yml b/.github/labels.yml new file mode 100644 index 0000000..cd1bcbb --- /dev/null +++ b/.github/labels.yml @@ -0,0 +1,35 @@ +- name: "A-Component" + description: "Component implementation" + color: "bfd4f2" +- name: "A-Design-Tokens" + color: "bfd4f2" +- name: "A-Developer-Experience" + color: "B3C648" +- name: "A-Documentation" + color: "bfd4f2" +- name: "A-Icons" + color: "bfd4f2" +- name: "A-Process" + color: "D67373" +- name: "P-Android" + description: "Platform Android" + color: "7D3A0A" +- name: "P-Figma" + description: "Platform Figma" + color: "7D3A0A" +- name: "P-iOS" + description: "Platform iOS" + color: "7D3A0A" +- name: "P-Web" + description: "Platform Web" + color: "7D3A0A" +- name: "T-Component-Design" + color: "98e6ae" +- name: "T-Component-Development" + color: "98e6ae" +- name: "T-New-Component" + description: "First implementations of components." + color: "98e6ae" +- name: "T-Other" + description: "Questions, user support, anything else" + color: "98e6ae" diff --git a/.github/workflows/sync_labels.yml b/.github/workflows/sync_labels.yml new file mode 100644 index 0000000..46ee15b --- /dev/null +++ b/.github/workflows/sync_labels.yml @@ -0,0 +1,21 @@ +name: Sync labels +on: + workflow_dispatch: {} + schedule: + - cron: "0 1 * * *" # 1am every day + push: + branches: + - main + paths: + - .github/labels.yml +jobs: + sync-labels: + uses: element-hq/element-meta/.github/workflows/sync-labels.yml@develop + with: + LABELS: | + element-hq/element-meta + .github/labels.yml + DELETE: true + WET: true + secrets: + ELEMENT_BOT_TOKEN: ${{ secrets.ELEMENT_BOT_TOKEN }}