gh-teamlabel

command module
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: May 27, 2022 License: MIT Imports: 7 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

gh-teamlabel

This GitHub CLI extension can be used to label a pull request with team names that the author of the pull request is part of.

Usage

From the commandline:

gh extension install koozz/gh-teamlabel # Just once
gh teamlabel -org my-org -labels=team1:Team1Label,team2:Team2Label

In GitHub Actions, add a step like this:

  - name: Team labeling
    run: |
      gh extension install koozz/gh-teamlabel # Just once
      gh teamlabel -org my-org -labels=team1:Team1Label,team2:Team2Label

Adding labels

Adding labels on a pull request only works if these labels have been added to the repository.

You could prepend the above scripts with calls to gh label create

gh label create Team1Label --color 336699 --description "Team one label description" --force
gh label create Team2Label --color 336699 --description "Team two label description" --force

gh teamlabel -org my-org -labels=team1:Team1Label,team2:Team2Label

License

MIT

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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