Skip to content

Latest commit

 

History

History
26 lines (20 loc) · 777 Bytes

File metadata and controls

26 lines (20 loc) · 777 Bytes

Add Labels

Add labels to PRs that touch specific features.

Rationale

Instead of having to manually add labels for each feature that is touched in a given PR, let's look at the list of changed files in that PR, and automatically apply matching labels.

Usage

  • Set the task: addLabels task as part of the workflow.
  • Optionally pass custom path to label mappings as a JSON array of {"path": "...", "label": "..." } objects. Paths are matched as prefixes, no wild cards or regular expressions are supported.

Example:

  ...
  with:
    # Required
    tasks: 'addLabels'
    # Optional
    add_labels: |
      [
        { "path": "projects/your-project/", "label": "[Project] Your Project" },
        { "path": "somepath/", "label": "Some label" }
      ]