Skip to content

Commit 72cf1cf

Browse files
fix: fixup readme and add labelers
1 parent 4e79a9e commit 72cf1cf

File tree

7 files changed

+540
-1
lines changed

7 files changed

+540
-1
lines changed

.github/labeler.yaml

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
---
2+
# Area Labels
3+
area/docs:
4+
- changed-files:
5+
- any-glob-to-any-file: "docs/**/*"
6+
7+
area/examples:
8+
- changed-files:
9+
- any-glob-to-any-file: "examples/**/*"
10+
11+
area/github:
12+
- changed-files:
13+
- any-glob-to-any-file: ".github/**/*"
14+
15+
area/pre-commit:
16+
- changed-files:
17+
- any-glob-to-any-file: ".pre-commit-config.yaml"
18+
- any-glob-to-any-file: ".hooks/**/*"
19+
20+
area/python:
21+
- changed-files:
22+
- any-glob-to-any-file: "pyproject.toml"
23+
- any-glob-to-any-file: "requirements.txt"
24+
- any-glob-to-any-file: "*.py"
25+
26+
area/security:
27+
- changed-files:
28+
- any-glob-to-any-file: "SECURITY.md"
29+
- any-glob-to-any-file: "secrets.baseline"
30+
31+
area/taskfiles:
32+
- changed-files:
33+
- any-glob-to-any-file: "Taskfile.yaml"
34+
35+
area/tests:
36+
- changed-files:
37+
- any-glob-to-any-file: "tests/**/*"
38+
39+
area/workspace:
40+
- changed-files:
41+
- any-glob-to-any-file: "python.code-workspace"
42+
43+
# Development Labels
44+
area/dev:
45+
- changed-files:
46+
- any-glob-to-any-file: "dev/**/*"
47+
48+
# Semantic Type Labels
49+
type/digest:
50+
- head-branch: ["^renovate/"]
51+
- head-branch: ["^deps/"]
52+
53+
type/patch:
54+
- any: ["title:/^(?:Fix|Patch|Update)/"]
55+
56+
type/minor:
57+
- any: ["title:/^(?:Add|Feature|Improve)/"]
58+
59+
type/major:
60+
- any: ["title:/^(?:BREAKING)/"]
61+
62+
type/break:
63+
- any: ["body:/BREAKING CHANGE:/"]
64+
65+
# Documentation Labels
66+
type/docs:
67+
- changed-files:
68+
- any-glob-to-any-file: "docs/**/*"
69+
- any-glob-to-any-file: "*.md"
70+
71+
# Core Files Labels
72+
type/core:
73+
- changed-files:
74+
- any-glob-to-any-file: "CODEOWNERS"
75+
- any-glob-to-any-file: "LICENSE"
76+
- any-glob-to-any-file: "README.md"

.github/labels.yaml

Lines changed: 134 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,134 @@
1+
---
2+
# Area Labels
3+
- name: area/docs
4+
color: "72CCF3" # Light Blue
5+
description: >-
6+
Changes to documentation and guides
7+
8+
- name: area/examples
9+
color: "BC9BE3" # Lavender
10+
description: >-
11+
Changes to example code and demonstrations
12+
13+
- name: area/github
14+
color: "F4D1B7" # Peach
15+
description: >-
16+
Changes made to GitHub Actions
17+
18+
- name: area/pre-commit
19+
color: "84B6EB" # Steel Blue
20+
description: >-
21+
Changes made to pre-commit hooks
22+
23+
- name: area/python
24+
color: "7BD7E0" # Turquoise
25+
description: >-
26+
Changes to Python package configuration and dependencies
27+
28+
- name: area/security
29+
color: "FF6600" # Orange
30+
description: >-
31+
Changes to security policies and configurations
32+
33+
- name: area/taskfiles
34+
color: "66CCFF" # Sky Blue
35+
description: >-
36+
Changes made to Taskfiles
37+
38+
- name: area/tests
39+
color: "99CC00" # Lime Green
40+
description: >-
41+
Changes to test files and testing infrastructure
42+
43+
- name: area/workspace
44+
color: "FF99CC" # Pink
45+
description: >-
46+
Changes to VSCode workspace configuration
47+
48+
- name: area/assets
49+
color: "FFA07A" # Light Salmon
50+
description: >-
51+
Changes to asset files
52+
53+
- name: area/templates
54+
color: "DA70D6" # Orchid
55+
description: >-
56+
Changes to templates
57+
58+
- name: area/scripts
59+
color: "40E0D0" # Turquoise
60+
description: >-
61+
Changes to script files
62+
63+
- name: area/src
64+
color: "4682B4" # Steel Blue
65+
description: >-
66+
Changes to source code
67+
68+
- name: area/ci
69+
color: "FF4500" # Orange Red
70+
description: >-
71+
Changes related to CI/CD configurations
72+
73+
- name: area/shell
74+
color: "556B2F" # Dark Olive Green
75+
description: >-
76+
Changes to shell scripts
77+
78+
- name: area/dev
79+
color: "CC6699" # Dusty Rose
80+
description: >-
81+
Changes to development tools and assets
82+
83+
# Renovate Labels
84+
- name: renovate/container
85+
color: "9933CC" # Purple
86+
description: >-
87+
Docker container updates via Renovate
88+
89+
- name: renovate/github-action
90+
color: "FF3366" # Hot Pink
91+
description: >-
92+
GitHub Action updates via Renovate
93+
94+
- name: renovate/github-release
95+
color: "3399FF" # Bright Blue
96+
description: >-
97+
GitHub Release updates via Renovate
98+
99+
# Semantic Type Labels
100+
- name: type/digest
101+
color: "FF66CC" # Bright Pink
102+
description: >-
103+
Dependency digest updates
104+
105+
- name: type/patch
106+
color: "FFC300" # Golden Yellow
107+
description: >-
108+
Patch changes (fixes, updates)
109+
110+
- name: type/minor
111+
color: "FFD700" # Gold
112+
description: >-
113+
Minor changes (features, improvements)
114+
115+
- name: type/major
116+
color: "F6412D" # Red Orange
117+
description: >-
118+
Major changes
119+
120+
- name: type/break
121+
color: "FF0000" # Bright Red
122+
description: >-
123+
Breaking changes
124+
125+
# Documentation Labels
126+
- name: type/docs
127+
color: "0075CA" # Documentation Blue
128+
description: >-
129+
Documentation updates and improvements
130+
131+
- name: type/core
132+
color: "A2EEEF" # Light Blue
133+
description: >-
134+
Changes to core repository files and configurations
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
name: "Labeler"
3+
on:
4+
pull_request_target:
5+
branches: ["main"]
6+
types: ["opened", "synchronize"]
7+
8+
permissions:
9+
actions: read
10+
contents: read
11+
issues: write
12+
pull-requests: write
13+
14+
jobs:
15+
labeler:
16+
name: Labeler
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Generate Token
20+
uses: actions/create-github-app-token@3ff1caaa28b64c9cc276ce0a02e2ff584f3900c5 # v2.0.2
21+
id: app-token
22+
with:
23+
app-id: "${{ secrets.BOT_APP_ID }}"
24+
private-key: "${{ secrets.BOT_APP_PRIVATE_KEY }}"
25+
26+
- name: Labeler
27+
uses: actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9 # v5.0.0
28+
with:
29+
configuration-path: .github/labeler.yaml
30+
repo-token: "${{ steps.app-token.outputs.token }}"
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
---
2+
name: "Meta Sync labels"
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches: ["main"]
7+
paths: [".github/labels.yaml"]
8+
9+
permissions:
10+
actions: read
11+
contents: read
12+
issues: write
13+
pull-requests: write
14+
15+
jobs:
16+
labels:
17+
name: Sync Labels
18+
runs-on: ubuntu-latest
19+
steps:
20+
- name: Generate Token
21+
uses: actions/create-github-app-token@3ff1caaa28b64c9cc276ce0a02e2ff584f3900c5 # v2.0.2
22+
id: app-token
23+
with:
24+
app-id: "${{ secrets.BOT_APP_ID }}"
25+
private-key: "${{ secrets.BOT_APP_PRIVATE_KEY }}"
26+
27+
- name: Set up git repository
28+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
29+
with:
30+
token: "${{ steps.app-token.outputs.token }}"
31+
32+
- name: Sync Labels
33+
uses: EndBug/label-sync@52074158190acb45f3077f9099fea818aa43f97a # v2.3.3
34+
with:
35+
config-file: .github/labels.yaml
36+
token: "${{ steps.app-token.outputs.token }}"
37+
delete-other-labels: true

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
2121
[![GitHub release (latest by date)](https://img.shields.io/github/v/release/dreadnode/AIRTBench-Code)](https://github.com/dreadnode/AIRTBench-Code/releases)
2222
[![GitHub stars](https://img.shields.io/github/stars/dreadnode/AIRTBench-Code?style=social)](https://github.com/dreadnode/AIRTBench-Code/stargazers)
23-
[![License](https://img.shields.io/github/license/dreadnode/AIRTBench-Code?branch=main)](https://github.com/dreadnode/AIRTBench-Code/blob/main/LICENSE)
2423
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://github.com/dreadnode/AIRTBench-Code/pulls)
2524

2625
</div>

0 commit comments

Comments
 (0)