Skip to content

Commit

Permalink
[chore] Allow additional labels to be added through comments (#16034)
Browse files Browse the repository at this point in the history
  • Loading branch information
evan-bradley committed Nov 3, 2022
1 parent 0fc4f82 commit 040c2fa
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/scripts/add-labels.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ fi
declare -A COMMON_LABELS
COMMON_LABELS["good-first-issue"]="good first issue"
COMMON_LABELS["help-wanted"]="help wanted"
COMMON_LABELS["needs-discussion"]="needs discussion"
COMMON_LABELS["needs-triage"]="needs triage"
COMMON_LABELS["waiting-for-author"]="waiting for author"

LABELS=$(echo "${COMMENT}" | sed -E 's%^/label%%')

Expand Down
11 changes: 7 additions & 4 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,10 +167,13 @@ In order to facilitate proper label usage and to empower Code Owners, you are ab

The following general labels are supported:

| Label | Label in Comment |
|--------------------|--------------------|
| `good first issue` | `good-first-issue` |
| `help wanted` | `help-wanted` |
| Label | Label in Comment |
|----------------------|----------------------|
| `good first issue` | `good-first-issue` |
| `help wanted` | `help-wanted` |
| `needs discussion` | `needs-discussion` |
| `needs triage` | `needs-triage` |
| `waiting for author` | `waiting-for-author` |

To delete a label, prepend the label with `-`. Note that you must make a new comment to modify labels; you cannot edit an existing comment.

Expand Down

0 comments on commit 040c2fa

Please sign in to comment.