From ab3d54fbb394f80b1922700da7089e53aaa68554 Mon Sep 17 00:00:00 2001 From: Eliza Weisman Date: Mon, 12 Aug 2019 16:53:26 -0700 Subject: [PATCH] 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 --- .github/labeler.yml | 7 +++++++ .github/workflows/label.yml | 12 ++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 .github/labeler.yml create mode 100644 .github/workflows/label.yml diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 00000000..6d7ca898 --- /dev/null +++ b/.github/labeler.yml @@ -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/** diff --git a/.github/workflows/label.yml b/.github/workflows/label.yml new file mode 100644 index 00000000..22acf7d6 --- /dev/null +++ b/.github/workflows/label.yml @@ -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 }}"