MarcelBochtler / team-labeler-action

⚡️ Github action to label your pull requests based on the author name ⚡️

Home Page:https://github.com/marketplace/actions/team-labeler-action

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Team Labeler Action 👥

build test GitHub issues GitHub forks GitHub stars GitHub license Watch on GitHub Tweet

This repository provides a GitHub action to automatically team label on a pull request based author team. This is useful if multiple team are working on the same project.

example

Configuration

Create .github/teams.yml

You need to provide a yml file that contains members of your teams:

LightSide:
  - '@Yoda'
  - '@Luke'
  - '@RebelAlliance/jedi'

DarkSide:
  - '@DarkVador'
  - '@Palpatine'

Usage

Create .github/workflows/team-labeler.yml

Create a workflow (eg: .github/workflows/team-labeler.yml see Creating a Workflow file) to utilize the labeler action. This action only needs the GITHUB_TOKEN secret as it interacts with the GitHub API to modify labels. If you want to create labels based on GitHub team memberships, the GITHUB_TOKEN should be a PAT that can read GitHub teams (read:org). The action can be used as such:

on: pull_request
name: team-label
jobs:
  team-labeler:
    runs-on: ubuntu-latest
    steps:
    - uses: MarcelBochtler/team-labeler-action@master
      with:
        repo-token: "${{ secrets.GITHUB_TOKEN }}"

About

⚡️ Github action to label your pull requests based on the author name ⚡️

https://github.com/marketplace/actions/team-labeler-action

License:Apache License 2.0


Languages

Language:TypeScript 96.1%Language:JavaScript 3.9%