Skip to content

GitHub action to apply Origami labels to new issues and pull requests.

Notifications You must be signed in to change notification settings

Financial-Times/origami-apply-labels

Repository files navigation

Origami Apply Labels

GitHub action to apply Origami labels to new issues and pull requests.

See origami-labels to sync standard labels between projects.

Usage

To use this action, create the following file in your GitHub repo:

.github/workflows/apply-labels.yml
on: [issues, pull_request]
jobs:
  apply-labels:
    runs-on: ubuntu-latest
    name: Apply Origami labels to new issues and pull requests.
    steps:
      - uses: actions/checkout@v2
      - uses: Financial-Times/origami-apply-labels@v1
        with:
          github-token: ${{ secrets.GITHUB_TOKEN }}

You can do this by running the following command from a repo:

mkdir -p .github/workflows && curl https://raw.githubusercontent.com/Financial-Times/origami-apply-labels/v1/example.yml --output .github/workflows/apply-labels.yml

Labels Applied

This action currently adds a github label for the Origami Type where an origami.json

Development

Work should be based on the master branch, with changes PRed in.

If your changes are not breaking, merge them into the v1 branch, and they'll be picked up by every repo running v1 automatically.

If your changes ARE breaking, then you should create a v2 branch based on master and update your chosen repo to use the new workflow.