Skip to content

Commit

Permalink
ci: add labeler action (#165)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuasing authored Jul 2, 2024
1 parent 526787a commit eea9605
Show file tree
Hide file tree
Showing 2 changed files with 98 additions and 0 deletions.
80 changes: 80 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
# Copyright (c) 2024 Hemi Labs, Inc.
# Use of this source code is governed by the MIT License,
# which can be found in the LICENSE file.

# Bitcoin Finality Governor (BFG)
'area: bfg':
- changed-files:
- any-glob-to-any-file:
- "api/bfgapi/**"
- "cmd/bfgd/**"
- "database/bfgd/**"
- "docker/bfgd/**"
- "service/bfg/**"

# Bitcoin Secure Sequencer (BSS)
'area: bss':
- changed-files:
- any-glob-to-any-file:
- "api/bssapi/**"
- "cmd/bssd/**"
- "docker/bssd/**"
- "service/bss/**"

# GitHub Actions workflows (CI)
'area: ci':
- changed-files:
- any-glob-to-any-file:
- ".github/workflows/**"

# Deucalion (Prometheus service)
'area: deucalion':
- changed-files:
- any-glob-to-any-file:
- "service/deucalion/**"

# Docker images
'area: docker':
- changed-files:
- any-glob-to-any-file:
- "docker/**"

# hemictl
'area: hemictl':
- changed-files:
- any-glob-to-any-file:
- "cmd/hemictl/**"

# @hemilabs/pop-miner NPM package
'area: @hemilabs/pop-miner':
- changed-files:
- any-glob-to-any-file:
- "web/packages/pop-miner/**"

# Makefiles
'area: make':
- changed-files:
- any-glob-to-any-file: "**/Makefile"

# WebAssembly PoP Miner
'area: popm/wasm':
- changed-files:
- any-glob-to-any-file:
- "web/popminer/**"

# PoP Miner
'area: popm':
- changed-files:
- any-glob-to-any-file:
- "cmd/popmd/**"
- "docker/popmd/**"
- "service/popm/**"

# Tiny Bitcoin Daemon (TBC)
'area: tbc':
- changed-files:
- any-glob-to-any-file:
- "api/tbcapi/**"
- "cmd/tbcd/**"
- "database/tbcd/**"
- "service/tbc/**"
18 changes: 18 additions & 0 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Copyright (c) 2024 Hemi Labs, Inc.
# Use of this source code is governed by the MIT License,
# which can be found in the LICENSE file.

# GitHub Actions workflow to automatically label pull requests.
name: "Label"
on: [ "pull_request_target" ]

jobs:
labeler:
name: "Pull Request"
runs-on: "ubuntu-latest"
permissions:
contents: read
pull-requests: write
steps:
- name: "Label pull requests"
uses: actions/labeler@v5

0 comments on commit eea9605

Please sign in to comment.