chore: add PR labeler action (#268)

The `tokio` org is now part of the github actions beta.

This branch dips our feet in the metaphorical water by
setting up a simple action that adds crate labels to PRs.

* chore: add PR labeler action
* add PR labeler config

Signed-off-by: Eliza Weisman <eliza@buoyant.io>
This commit is contained in:
Eliza Weisman
2019-08-12 16:53:26 -07:00
committed by GitHub
parent 39e99eeaf5
commit ab3d54fbb3
2 changed files with 19 additions and 0 deletions

7
.github/labeler.yml vendored Normal file
View File

@@ -0,0 +1,7 @@
crate/tracing: tracing/**
crate/core: tracing-core/**
crate/proc-macros: tracing-attributes/**
crate/fmt: tracing-fmt/**
crate/futures: tracing-futures/**
crate/log: tracing-log/**
crate/subscriber: tracing-subscriber/**

12
.github/workflows/label.yml vendored Normal file
View File

@@ -0,0 +1,12 @@
name: Labeler
on: [pull-request]
jobs:
label:
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v2
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"