Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
users

GitHub Action

Team labeler action

v0.1.1

Team labeler action

users

Team labeler action

Add a team label based on the author's team

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Team labeler action

uses: JulienKode/[email protected]

Learn more about this action in JulienKode/team-labeler-action

Choose a version

Actions Status

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

Team Labeler Action 👥

Configuration

Create .github/teams.yml

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

LightSide:
  - '@Yoda'
  - '@Luke'

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. The action can be used as such:

on: pull_request
name: team-label
jobs:
  team-labeler:
    runs-on: ubuntu-latest
    steps:
    - uses: JulienKode/[email protected]
      with:
        repo-token: "${{ secrets.GITHUB_TOKEN }}"