Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
bookmark

GitHub Action

Label Lerna PR

v0.1.3

Label Lerna PR

bookmark

Label Lerna PR

Label Pull Request based on lerna labels

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Label Lerna PR

uses: donmahallem/lerna-label@v0.1.3

Learn more about this action in donmahallem/lerna-label

Choose a version

-----------------------------------------------------

@donmahallem/lerna-label

Test codecov GitHub license David David GitHub contributors

Tags Github Pull Requests with affected Lerna packages


-----------------------------------------------------

➤ Details

This action labels your pull requests based on modified files within the pull request. It takes the package name and adds an optional prefix to it before setting it as a label. Other labels should not be touched by this action.

Example Projects

This action is used for example by donmahallem/js-libs

-----------------------------------------------------

➤ Example Config

name: Workspace Package Labeler
on:
  pull_request:
    types: [opened, edited, synchronize]
    branches-ignore:
      - master

jobs:
  label:
    name: Label Package Pull Requests
    runs-on: ubuntu-latest
    steps:
      - name: "Checkout code"
        uses: actions/checkout@v2.3.4
      - name: Label the PR
        uses: donmahallem/lerna-label@0.1.3
        with:
          github_secret: "${ { secrets.GITHUB_TOKEN } }"
          prefix: "pkg"

-----------------------------------------------------

➤ Contributors

donmahallem
donmahallem
💻
🐛