Skip to content

Latest commit

 

History

History
48 lines (31 loc) · 1.05 KB

README.md

File metadata and controls

48 lines (31 loc) · 1.05 KB

javscript-action status

PR collection labeler

Adds labels to pull requests according to the target Ignition distribution.

It uses gazebodistro to find the mapping between branches and collections.

Usage

Add the following file to an Ignition repository: .github/workflows/pr-collection-labeler.yml

name: PR Collection Labeler

on: pull_request

jobs:
  pr_collection_labeler:
    runs-on: ubuntu-latest
    steps:
    - name: Add collection labels
      if: github.event.action == 'opened'
      uses: ignition-tooling/pr-collection-labeler@v1
      with:
        github-token: ${{ secrets.GITHUB_TOKEN }}

That's it, no other configurations needed.

Development

Install dependencies:

npm install

Run tests:

npm test

Package files into the dist folder:

npm run package