Skip to content

Commit

Permalink
Fixed that pesky meta-labeler issue
Browse files Browse the repository at this point in the history
  • Loading branch information
l50 committed Dec 14, 2023
1 parent 8b49ee6 commit 3633161
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 55 deletions.
83 changes: 35 additions & 48 deletions .github/labeler.yaml
Original file line number Diff line number Diff line change
@@ -1,80 +1,67 @@
---
area/github:
any:
changed-files:
any-glob-to-any-file: [".github/**/*"]
- changed-files:
- any-glob-to-any-file: ".github/**/*"

area/pre-commit:
any:
changed-files:
any-glob-to-any-file: [".pre-commit-config.yaml", ".hooks/**/*"]
- changed-files:
- any-glob-to-any-file: .pre-commit-config.yaml
- any-glob-to-any-file: .hooks/**/*

area/ansible:
any:
changed-files:
any-glob-to-any-file: ["ansible/*.go"]
- changed-files:
- any-glob-to-any-file: "ansible/*.go"

area/cloudflare:
any:
changed-files:
any-glob-to-any-file: ["cloudflare/*.go"]
- changed-files:
- any-glob-to-any-file: "cloudflare/*.go"

area/dev:
any:
changed-files:
any-glob-to-any-file: ["dev/**/*.go"]
- changed-files:
- any-glob-to-any-file: "dev/**/*.go"

area/file:
any:
changed-files:
any-glob-to-any-file: ["file/*.go"]
- changed-files:
- any-glob-to-any-file: "file/*.go"

area/git:
any:
changed-files:
any-glob-to-any-file: ["git/*.go"]
- changed-files:
- any-glob-to-any-file: "git/*.go"

area/keeper:
any:
changed-files:
any-glob-to-any-file: ["keeper/*.go"]
- changed-files:
- any-glob-to-any-file: "keeper/*.go"

area/logging:
any:
changed-files:
any-glob-to-any-file: ["logging/*.go"]
- changed-files:
- any-glob-to-any-file: "logging/*.go"

area/macos:
any:
changed-files:
any-glob-to-any-file: ["macos/*.go"]
- changed-files:
- any-glob-to-any-file: "macos/*.go"

area/net:
any:
changed-files:
any-glob-to-any-file: ["net/*.go"]
- changed-files:
- any-glob-to-any-file: "net/*.go"

area/str:
any:
changed-files:
any-glob-to-any-file: ["str/*.go"]
- changed-files:
- any-glob-to-any-file: "str/*.go"

area/sys:
any:
changed-files:
any-glob-to-any-file: ["sys/*.go"]
- changed-files:
- any-glob-to-any-file: "sys/*.go"

area/web:
any:
changed-files:
any-glob-to-any-file: ["web/*.go", "web/cdpchrome/*.go"]
- changed-files:
- any-glob-to-any-file: "web/*.go"
- any-glob-to-any-file: "web/cdpchrome/*.go"

area/magefiles:
any:
changed-files:
any-glob-to-any-file: ["magefiles/*"]
- changed-files:
- any-glob-to-any-file: "magefiles/*"

area/go-mod-sum:
any:
changed-files:
any-glob-to-any-file: ["go.mod", "go.sum"]
- changed-files:
- any-glob-to-any-file: "go.mod"
- any-glob-to-any-file: "go.sum"
11 changes: 4 additions & 7 deletions .github/workflows/meta-labeler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,16 @@
name: "Meta Labeler"
on:
workflow_dispatch:
pull_request_target:
types: ["opened", "synchronize"]
pull_request:
branches: ["main"]

jobs:
labeler:
runs-on: ubuntu-latest
name: Labeler
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- name: Labeler
uses: actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9 # v5.0.0
with:
configuration-path: .github/labeler.yaml
repo-token: ${{ secrets.BOT_TOKEN }}
repo-token: "${{ secrets.BOT_TOKEN }}"

0 comments on commit 3633161

Please sign in to comment.