Adds labels to pull requests according to the target Ignition distribution.
It uses gazebodistro to find the mapping between branches and collections.
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.
Install dependencies:
npm install
Run tests:
npm test
Package files into the dist
folder:
npm run package