Automatically label pull requests based on the file paths modified (#1273)

* Automatically label pull requests based on the file paths modified

* Add `wasmtime:c-api` labels for changes to `crates/c-api/*`
This commit is contained in:
Nick Fitzgerald
2020-03-10 14:40:02 -07:00
committed by GitHub
parent bd5e71b038
commit e364633c39
2 changed files with 53 additions and 0 deletions

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

@@ -0,0 +1,42 @@
# This file configures which paths automatically get which label on new pull
# requests.
#
# It generally has the syntax:
#
# <label 0>:
# - <glob-path 0>
# - ...
# - <glob-path n>
# ...
# <label n>:
# - <glob-path 0>
# - ...
# - <glob-path n>
#
# See https://github.com/actions/labeler for details.
#
# Note that we keep the labels in alphabetical order below.
cranelift:
- cranelift/*
"cranelift:docs":
- cranelift/docs/*
"cranelift:meta":
- cranelift/codegen/meta/*
lightbeam:
- crates/lightbeam/*
fuzzing:
- crates/fuzzing/*
wasi:
- crates/wasi/*
"wasmtime:api":
- crates/api/*
"wasmtime:c-api":
- crates/c-api/*

11
.github/workflows/labeler.yml vendored Normal file
View File

@@ -0,0 +1,11 @@
name: "Pull Request Labeler"
on:
- pull_request
jobs:
triage:
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v2
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"