Skip to content

Commit

Permalink
add github labeler to set labels automatically.
Browse files Browse the repository at this point in the history
  • Loading branch information
shirou committed Oct 21, 2020
1 parent fb1c750 commit 5600b03
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
package:cpu:
- cpu/*
package:disk:
- disk/*
package:docker:
- docker/*
package:host:
- host/*
package:load:
- load/*
package:mem:
- mem/*
package:net:
- net/*
package:process:
- process/*
package:winservices:
- winservices/*
os:linux:
- **/*_linux.go
- **/*_linux_mips64.go
- **/*_linux_386.go
- **/*_linux_test.go
- **/*_linux_s390x.go
- **/*_linux_amd64.go
os:freebsd:
- **/*_freebsd.go
- **/*_freebsd_386.go
- **/*_freebsd_test.go
- **/*_freebsd_amd64.go
os:darwin:
- **/*_darwin.go
- **/*_darwin_386.go
- **/*_darwin_test.go
- **/*_darwin_amd64.go
os:openbsd:
- **/*_openbsd.go
- **/*_openbsd_386.go
- **/*_openbsd_test.go
- **/*_openbsd_amd64.go
os:windows:
- **/*_windows.go
- **/*_windows_386.go
- **/*_windows_test.go
- **/*_windows_amd64.go

11 changes: 11 additions & 0 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -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 }}"

0 comments on commit 5600b03

Please sign in to comment.