forked from armbian/build
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve labeling system - refactor labeling logic (armbian#5916)
* Add label table * Add PR size labelling * Implement suggestings from meeting * Add proper GitHub labeller --------- Co-authored-by: Werner <EvilOlaf@users.noreply.github.com>
- Loading branch information
1 parent
8caf512
commit 70832ae
Showing
5 changed files
with
152 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
- name: "02" | ||
color: "76B4D9" | ||
description: "Milestone: Winter release" | ||
- name: "05" | ||
color: "AADB79" | ||
description: "Milestone: Spring release" | ||
- name: "08" | ||
color: "4B649F" | ||
description: "Milestone: Summer release" | ||
- name: "11" | ||
color: "D58125" | ||
description: "Milestone: Autumn release" | ||
- name: "Backlog" | ||
color: "d4c5f9" | ||
description: "Stalled work that needs to be completed" | ||
- name: "Breaking change" | ||
color: "f4bd13" | ||
description: "Can potentially break core functionality" | ||
- name: "Bug" | ||
color: "F92C01" | ||
description: "Something isn't working well" | ||
- name: "Bugfix" | ||
color: "F92C01" | ||
description: "Pull request is fixing a bug" | ||
- name: "Discussion" | ||
color: "33B478" | ||
description: "Issue is being discussed. Undetermined." | ||
- name: "Duplicate" | ||
color: "f4bd13" | ||
description: "Issue is already present" | ||
- name: "Not framework bug" | ||
color: "CD456C" | ||
description: "Bug in 3rd party component" | ||
- name: "User error" | ||
color: "CD456C" | ||
description: "A mistake that is made by the user" | ||
- name: "size/small" | ||
color: "ededed" | ||
description: "PR with less then 50 lines" | ||
- name: "size/medium" | ||
color: "ededed" | ||
description: "PR with more then 50 and less then 250 lines" | ||
- name: "size/large" | ||
color: "ededed" | ||
description: "PR with 250 lines or more" | ||
- name: "Desktop" | ||
color: "bfd4f2" | ||
description: "Graphical user interface" | ||
- name: "Hardware" | ||
color: "bfd4f2" | ||
description: "Hardware related - kernel, u-boot, patches" | ||
- name: "Software" | ||
color: "bfd4f2" | ||
description: "Framework components" | ||
- name: "Work in progress" | ||
color: "29E414" | ||
description: "Unfinished / work in progress" | ||
- name: "Ready to merge" | ||
color: "1d7136" | ||
description: "Reviewed, tested and ready for merge" | ||
- name: "Help needed" | ||
color: "EA1BCE" | ||
description: "We need your involvement" | ||
- name: "Needs review" | ||
color: "AEE054" | ||
description: "Seeking for review" | ||
- name: "Can be closed?" | ||
color: "5319e7" | ||
description: "Ping developers on stalled issues / PR" | ||
- name: "Build" | ||
color: "1d76db" | ||
description: "Executing build train" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Set PR and issues labels from yaml | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'main' | ||
paths: | ||
- '.github/labels.yml' | ||
pull_request: | ||
paths: | ||
- '.github/labels.yml' | ||
|
||
jobs: | ||
labeler: | ||
if: ${{ github.repository_owner == 'Armbian' }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- | ||
name: Checkout | ||
uses: actions/checkout@v4 | ||
- | ||
name: Run Labeler | ||
uses: crazy-max/ghaction-github-labeler@v5 | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
yaml-file: .github/labels.yml | ||
dry-run: ${{ github.event_name == 'pull_request' }} | ||
exclude: | | ||
Maintenance* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: Pull Request Labeling | ||
|
||
on: | ||
- pull_request | ||
|
||
jobs: | ||
|
||
size-label: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: size-label | ||
uses: "pascalgn/size-label-action@v0.4.3" | ||
env: | ||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | ||
with: | ||
sizes: > | ||
{ | ||
"0": "small", | ||
"50": "medium", | ||
"250": "large" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters