2024-05-26 23:57:21 +00:00
|
|
|
# This file consists of rules determining which labels the
|
|
|
|
# `github-actions` bot should automatically label an issue/PR with.
|
|
|
|
# The CI that actually applies labels is in `.github/workflows/labeler.yml`.
|
|
|
|
#
|
|
|
|
# The main one used is the "if a file changed" rule.
|
|
|
|
# The format for this rule is:
|
|
|
|
#
|
|
|
|
# ```
|
|
|
|
# $LABEL_NAME:
|
|
|
|
# - changed-files:
|
|
|
|
# - any-glob-to-any-file: $PATH
|
|
|
|
# ```
|
|
|
|
#
|
|
|
|
# where $PATH can be:
|
|
|
|
# $DIRECTORY/*
|
|
|
|
# which means any file changed 1 level deep inside that directory or:
|
|
|
|
# $DIRECTORY/**
|
|
|
|
# which means any file changed within that directory or:
|
|
|
|
# $DIRECTORY/$FILE_NAME
|
|
|
|
# which means a specific file path or:
|
|
|
|
# $DIRECTORY/*.$FILE_EXTENSION
|
|
|
|
# which means any file 1 level deep in that directory with a certain file extension.
|
|
|
|
#
|
|
|
|
# For a detailed guide, see: <https://github.com/actions/labeler>.
|
|
|
|
#
|
|
|
|
# For a real example:
|
|
|
|
A-consensus: # This is the tag name
|
|
|
|
- changed-files: # Any changed file...
|
|
|
|
- any-glob-to-any-file: consensus/** # ...within the `consensus/` directory
|
|
|
|
# will cause the `github-actions` bot
|
|
|
|
# to add the `A-consensus` tag.
|
|
|
|
|
2024-05-29 01:18:30 +00:00
|
|
|
# Cuprate's books.
|
|
|
|
A-books:
|
|
|
|
- changed-files:
|
|
|
|
- any-glob-to-any-file: books/**
|
|
|
|
|
|
|
|
A-book-architecture:
|
|
|
|
- changed-files:
|
|
|
|
- any-glob-to-any-file: books/architecture/**
|
|
|
|
|
|
|
|
A-book-protocol:
|
|
|
|
- changed-files:
|
|
|
|
- any-glob-to-any-file: books/protocol/**
|
|
|
|
|
2024-06-07 21:04:27 +00:00
|
|
|
A-book-user:
|
|
|
|
- changed-files:
|
|
|
|
- any-glob-to-any-file: books/user/**
|
|
|
|
|
2024-05-29 01:18:30 +00:00
|
|
|
# Crate (sub-)directories.
|
|
|
|
A-binaries:
|
|
|
|
- changed-files:
|
|
|
|
- any-glob-to-any-file: binaries/**
|
|
|
|
|
2024-05-26 23:57:21 +00:00
|
|
|
A-cryptonight:
|
|
|
|
- changed-files:
|
|
|
|
- any-glob-to-any-file: cryptonight/**
|
|
|
|
|
2024-10-02 17:51:58 +00:00
|
|
|
A-constants:
|
|
|
|
- changed-files:
|
|
|
|
- any-glob-to-any-file: constants/**
|
|
|
|
|
2024-05-29 01:18:30 +00:00
|
|
|
A-storage:
|
2024-05-26 23:57:21 +00:00
|
|
|
- changed-files:
|
2024-05-29 01:18:30 +00:00
|
|
|
- any-glob-to-any-file: storage/**
|
2024-05-26 23:57:21 +00:00
|
|
|
|
|
|
|
A-helper:
|
|
|
|
- changed-files:
|
|
|
|
- any-glob-to-any-file: helper/**
|
|
|
|
|
|
|
|
A-net:
|
|
|
|
- changed-files:
|
|
|
|
- any-glob-to-any-file: net/**
|
|
|
|
|
|
|
|
A-p2p:
|
|
|
|
- changed-files:
|
|
|
|
- any-glob-to-any-file: p2p/**
|
|
|
|
|
|
|
|
A-pruning:
|
|
|
|
- changed-files:
|
|
|
|
- any-glob-to-any-file: pruning/**
|
|
|
|
|
|
|
|
A-test-utils:
|
|
|
|
- changed-files:
|
|
|
|
- any-glob-to-any-file: test-utils/**
|
|
|
|
|
|
|
|
A-types:
|
|
|
|
- changed-files:
|
|
|
|
- any-glob-to-any-file: types/**
|
|
|
|
|
2024-05-29 01:18:30 +00:00
|
|
|
A-rpc:
|
|
|
|
- changed-files:
|
|
|
|
- any-glob-to-any-file: rpc/**
|
|
|
|
|
|
|
|
A-zmq:
|
|
|
|
- changed-files:
|
|
|
|
- any-glob-to-any-file: zmq/**
|
|
|
|
|
|
|
|
# CI files.
|
2024-05-26 23:57:21 +00:00
|
|
|
A-ci:
|
|
|
|
- changed-files:
|
|
|
|
- any-glob-to-any-file: .github/**
|
|
|
|
|
2024-05-29 01:18:30 +00:00
|
|
|
# Misc
|
|
|
|
A-benches:
|
|
|
|
- changed-files:
|
|
|
|
- any-glob-to-any-file: benches/** # Benchmarks
|
|
|
|
|
2024-05-26 23:57:21 +00:00
|
|
|
A-dependency:
|
|
|
|
- changed-files:
|
|
|
|
- any-glob-to-any-file: '**/Cargo.toml' # Any Cargo file in the entire repo
|
|
|
|
- any-glob-to-any-file: '**/Cargo.lock'
|
|
|
|
|
|
|
|
A-workspace:
|
|
|
|
- changed-files:
|
|
|
|
- any-glob-to-any-file: '*' # Any root file change
|
2024-05-29 01:18:30 +00:00
|
|
|
- any-glob-to-any-file: misc/**
|
2024-05-26 23:57:21 +00:00
|
|
|
|
|
|
|
A-docs:
|
|
|
|
- changed-files:
|
|
|
|
- any-glob-to-any-file: '**/*.md' # Any file in the entire repo ending in `.md`
|
2024-05-29 01:18:30 +00:00
|
|
|
# `A-books` label is used for book documentation.
|