From 03d42a6d70d98e3434b7e5b46372618ff18382ac Mon Sep 17 00:00:00 2001 From: David Baker Date: Tue, 10 Sep 2024 11:45:07 +0100 Subject: [PATCH 1/3] Add labels file Copied from the old matrix-org react-sdk labels (which weren't synced from github it seems). --- .github/labels.yml | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/labels.yml diff --git a/.github/labels.yml b/.github/labels.yml new file mode 100644 index 0000000000..213aadb39f --- /dev/null +++ b/.github/labels.yml @@ -0,0 +1,40 @@ +- name: "A-Timesheet-1" + description: "Log any time spent on this into the A-Timesheet-1 project" + color: "#5319E7" +- name: "backport staging" + description: "Label to automatically backport PR to staging branch" + color: "#B60205" +- name: "Dependencies" + description: "Pull requests that update a dependency file" + color: "#0366d6" +- name: "Sponsored" + color: "#b506d8" +- name: "T-Defect" + description: "Bugs, crashes, hangs, vulnerabilities, or other reported problems" + color: "#98e6ae" +- name: "T-Deprecation" + description: "A pull request that makes something deprecated" + color: "#98e6ae" +- name: "T-Enhancement" + description: "New features, changes in functionality, performance boosts, user-facing improvements" + color: "#98e6ae" +- name: "T-Task" + description: "Refactoring, enabling or disabling functionality, other engineering tasks" + color: "#98e6ae" +- name: "X-Blocked" + description: "The PR cannot move forward in any capacity until an action is made" + color: "ff7979" +- name: "X-Breaking-Change" + color: "#ff7979" +- name: "X-Release-Blocker" + description: "This affects the current release cycle and must be solved for a release to happen" + color: "#ff7979" +- name: "X-Upcoming-Release-Blocker" + description: "This does not affect the current release cycle but will affect the next one" + color: "#e99695" +- name: "Z-Community-PR" + description: "Issue is solved by a community member's PR" + color: "#ededed" +- name: "Z-Experiment" + description: "Experimental PR, primarily up for its Netlify build, high likelihood of never making it beyond here." + color: "#b60205" From 77a6687990fa766bae47f71881ee9343ca58c85b Mon Sep 17 00:00:00 2001 From: David Baker Date: Tue, 10 Sep 2024 11:48:40 +0100 Subject: [PATCH 2/3] Add label sync workflow --- .github/workflows/sync-labels.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/sync-labels.yml diff --git a/.github/workflows/sync-labels.yml b/.github/workflows/sync-labels.yml new file mode 100644 index 0000000000..bb22292a64 --- /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: + - develop + 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 }} From 028151b318f4401137f2f4bced5e76d33882e13f Mon Sep 17 00:00:00 2001 From: David Baker Date: Tue, 10 Sep 2024 15:50:24 +0100 Subject: [PATCH 3/3] Remove labels that are defined in element-meta --- .github/labels.yml | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/.github/labels.yml b/.github/labels.yml index 213aadb39f..d240f3750b 100644 --- a/.github/labels.yml +++ b/.github/labels.yml @@ -9,26 +9,14 @@ color: "#0366d6" - name: "Sponsored" color: "#b506d8" -- name: "T-Defect" - description: "Bugs, crashes, hangs, vulnerabilities, or other reported problems" - color: "#98e6ae" - name: "T-Deprecation" description: "A pull request that makes something deprecated" color: "#98e6ae" -- name: "T-Enhancement" - description: "New features, changes in functionality, performance boosts, user-facing improvements" - color: "#98e6ae" -- name: "T-Task" - description: "Refactoring, enabling or disabling functionality, other engineering tasks" - color: "#98e6ae" - name: "X-Blocked" description: "The PR cannot move forward in any capacity until an action is made" color: "ff7979" - name: "X-Breaking-Change" color: "#ff7979" -- name: "X-Release-Blocker" - description: "This affects the current release cycle and must be solved for a release to happen" - color: "#ff7979" - name: "X-Upcoming-Release-Blocker" description: "This does not affect the current release cycle but will affect the next one" color: "#e99695"