From 1809a099c6b744284bc6fb619eadfe3ceb00adc2 Mon Sep 17 00:00:00 2001 From: Christian Kotzbauer Date: Sun, 11 Dec 2022 11:28:19 +0100 Subject: [PATCH] build: replace default-labels-workflow Signed-off-by: Christian Kotzbauer --- .github/labels.json | 25 --------- .github/labels.yml | 62 +++++++++++++++++++++ .github/workflows/create-default-labels.yml | 4 +- 3 files changed, 64 insertions(+), 27 deletions(-) delete mode 100644 .github/labels.json create mode 100644 .github/labels.yml diff --git a/.github/labels.json b/.github/labels.json deleted file mode 100644 index 7fe48313..00000000 --- a/.github/labels.json +++ /dev/null @@ -1,25 +0,0 @@ -[ - { "name": "kind/bug", "color": "#d73a4a", "description": "Categorizes issue or PR as related to a bug." }, - { "name": "kind/feature", "color": "#a2eeef", "description": "Categorizes issue or PR as related to a new feature." }, - { "name": "kind/documentation", "color": "#0075ca", "description": "Categorizes issue or PR as related to documentation." }, - { "name": "kind/test", "color": "#ddc23b", "description": "Categorizes issue or PR as related to tests." }, - { "name": "kind/cleanup", "color": "#ededed", "description": "Categorizes issue or PR as related to cleaning up code, process, or technical debt." }, - { "name": "kind/dependencies", "color": "#ededed", "description": "Pull requests that update a dependency file" }, - { "name": "kind/security", "color": "#10cc8a", "description": "Categorizes issue or PR as related to security." }, - { "name": "kind/question", "color": "#775FCB", "description": "Categorizes issues related to questions." }, - { "name": "lifecycle/stale", "color": "#795548", "description": "Denotes an issue or PR has remained open with no activity and has become stale." }, - { "name": "lifecycle/frozen", "color": "#d3e2f0", "description": "Indicates that an issue or PR should not be auto-closed due to staleness." }, - { "name": "target/git", "color": "#ddc23b", "description": "Categorizes issue or PR as related to the Git-Target." }, - { "name": "target/dtrack", "color": "#10cc8a", "description": "Categorizes issue or PR as related to the DependencyTrack-Target." }, - { "name": "size/XS", "color": "#009900", "description": "Denotes a PR that changes 0-9 lines, ignoring generated files." }, - { "name": "size/S", "color": "#77bb00", "description": "Denotes a PR that changes 10-29 lines, ignoring generated files." }, - { "name": "size/M", "color": "#eebb00", "description": "Denotes a PR that changes 30-99 lines, ignoring generated files." }, - { "name": "size/L", "color": "#ee9900", "description": "Denotes a PR that changes 100-499 lines, ignoring generated files." }, - { "name": "size/XL", "color": "#ee5500", "description": "Denotes a PR that changes 500-999 lines, ignoring generated files." }, - { "name": "size/XXL", "color": "#ee0000", "description": "Denotes a PR that changes 1000+ lines, ignoring generated files." }, - { "name": "help wanted", "color": "#008672", "description": "Denotes an issue that needs help from a contributor." }, - { "name": "good first issue", "color": "#7057ff", "description": "Denotes an issue ready for a new contributor." }, - { "name": "approved", "color": "#2fed58", "description": "Indicates a PR has been approved and is ready for merge." }, - { "name": "hold", "color": "#e11d21", "description": "Indicates that a PR should not merge." }, - { "name": "work-in-progress", "color": "#e01dd6", "description": "Indicates that a PR is still in progress." } -] diff --git a/.github/labels.yml b/.github/labels.yml new file mode 100644 index 00000000..9551fc77 --- /dev/null +++ b/.github/labels.yml @@ -0,0 +1,62 @@ +- name: kind/bug + color: d73a4a + description: Categorizes issue or PR as related to a bug. +- name: kind/feature + color: a2eeef + description: Categorizes issue or PR as related to a new feature. +- name: kind/documentation + color: 0075ca + description: Categorizes issue or PR as related to documentation. +- name: kind/test + color: ddc23b + description: Categorizes issue or PR as related to tests. +- name: kind/cleanup + color: ededed + description: Categorizes issue or PR as related to cleaning up code, process, or + technical debt. +- name: kind/dependencies + color: ededed + description: Pull requests that update a dependency file +- name: kind/security + color: 10cc8a + description: Categorizes issue or PR as related to security. +- name: kind/question + color: 775FCB + description: Categorizes issues related to questions. +- name: lifecycle/stale + color: 795548 + description: Denotes an issue or PR has remained open with no activity and has become + stale. +- name: lifecycle/frozen + color: d3e2f0 + description: Indicates that an issue or PR should not be auto-closed due to staleness. +- name: size/XS + color: 009900 + description: Denotes a PR that changes 0-9 lines, ignoring generated files. +- name: size/S + color: 77bb00 + description: Denotes a PR that changes 10-29 lines, ignoring generated files. +- name: size/M + color: eebb00 + description: Denotes a PR that changes 30-99 lines, ignoring generated files. +- name: size/L + color: ee9900 + description: Denotes a PR that changes 100-499 lines, ignoring generated files. +- name: size/XL + color: ee5500 + description: Denotes a PR that changes 500-999 lines, ignoring generated files. +- name: size/XXL + color: ee0000 + description: Denotes a PR that changes 1000+ lines, ignoring generated files. +- name: help wanted + color: 008672 + description: Denotes an issue that needs help from a contributor. +- name: good first issue + color: 7057ff + description: Denotes an issue ready for a new contributor. +- name: hold + color: e11d21 + description: Indicates that a PR should not merge. +- name: work-in-progress + color: e01dd6 + description: Indicates that a PR is still in progress. diff --git a/.github/workflows/create-default-labels.yml b/.github/workflows/create-default-labels.yml index 9a46f7d8..d39423fe 100644 --- a/.github/workflows/create-default-labels.yml +++ b/.github/workflows/create-default-labels.yml @@ -4,12 +4,12 @@ on: branches: - "main" paths: - - ".github/labels.json" + - ".github/labels.yml" workflow_dispatch: {} jobs: size-label: - uses: ckotzbauer/actions-toolkit/.github/workflows/toolkit-create-default-labels.yml@0.26.0 + uses: ckotzbauer/actions-toolkit/.github/workflows/toolkit-create-default-labels.yml@0.27.0 secrets: token: ${{ secrets.GITHUB_TOKEN }}