action-label-syncer

module
v0.2.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 13, 2019 License: MIT

README

Label Syncer

CI Release Marketplace

Action to sync GitHub labels in the declarative way.
By using this action, you can sync current labels with configured labels in a YAML manifest.

Usage

Create YAML manifest of GitHub labels
- color: d73a4a
  description: Something isn't working
  name: bug
- color: 0075ca
  description: Improvements or additions to documentation
  name: documentation
- color: cfd3d7
  description: This issue or pull request already exists
  name: duplicate

The default file path is .github/labels.yml, but you can specify any file path with jobs.<job_id>.steps.with.
To create manifest of GitHub labels for the current status of labels easily, we recommend using label-exporter.

Create Workflow
name: Sync labels in the declarative way
on: [push]
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@1.0.0
      - uses: micnncim/action-label-syncer@latest
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
          GITHUB_REPOSITORY: ${{ github.repository }}
        with:
          manifest: labels.yml # default: .github/labels.yml

See also

LICENSE

MIT License

Directories

Path Synopsis
cmd
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL