diff --git a/.github/labels.yml b/.github/labels.yml new file mode 100644 index 0000000..e3a9098 --- /dev/null +++ b/.github/labels.yml @@ -0,0 +1,24 @@ +- name: content + color: ffa69e + description: Issues related to the creation, updating, or management of content +- name: dependencies + color: 26547c + description: Pull requests that update dependency files, ensuring all packages and libraries are up-to-date +- name: dev + color: faf3dd + description: Issues involving development tasks or code implementation, including bug fixes, feature additions, and code refactoring +- name: javascript + color: ffd166 + description: Pull requests that involve updates or changes to JavaScript code, affecting front-end functionalities and scripts +- name: php + color: 06d6a0 + description: Pull requests that involve updates or changes to PHP code, impacting back-end functionalities and server-side scripts +- name: released + color: ef476f + description: Issues that have been addressed and released by semantic release +- name: ui + color: b8f2e6 + description: Issues related to the design or modification of user interface elements, focusing on visual aspects and user interaction design +- name: ux + color: aed9e0 + description: Issues aimed at enhancing the user experience, addressing usability, accessibility, and overall user satisfaction diff --git a/.github/workflows/labels.yaml b/.github/workflows/labels.yaml new file mode 100644 index 0000000..321ab5e --- /dev/null +++ b/.github/workflows/labels.yaml @@ -0,0 +1,31 @@ +name: Sync Labels + +on: + push: + branches: + - main + paths: + - .github/labels.yml + schedule: + - cron: "34 5 * * *" + workflow_call: + workflow_dispatch: + +jobs: + sync_labels: + name: Sync Labels + runs-on: ubuntu-latest + + steps: + - name: Download Latest Label Definitions + run: | + curl -s --retry 5 \ + "https://raw.githubusercontent.com/21stdigital/workflows/main/.github/labels.yml" \ + -o labels.yml + + - name: Run Label Syncer + uses: micnncim/action-label-syncer@v1.3.0 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + manifest: labels.yml