Skip to content

Commit d59c192

Browse files
authored
Update labeler config (#1934)
## 🌟 What is the purpose of this PR? The aim of this PR is to re-enable Slack notification for changes related to HASH app. It replaces a few globs for `packages/hash/...` with `apps/hash-*/**`, `libs/hash-*/**` and `libs/@local/hash-*/**`. To avoid repetition, I replaced the official labeler versio with the latest commit from actions/labeler#316. <!-- Explain, at a high level, what this does and why. --> <!-- Use the 'What does this change?' section to list more specific implementation details. --> ## 🔗 Related links <!-- Add links to any context it is worth capturing (e.g. Issues, Discussions, Discord, Asana) --> <!-- Mark any links which are not publicly accessible as _(internal)_ --> <!-- Don't rely on links to explain the PR, especially internal ones: use the sections above --> - [Asana task](https://app.asana.com/0/1203543026679373/1203800233887959/f) _(internal)_ - [Slack thread](https://hashintel.slack.com/archives/C02THT2LG8N/p1674566469357439) _(internal)_ ## 🐾 Next steps - Check if labeler works (we can only see this once the PR is merged because we use `pull_request_target` as a trigger) - Wait for `dot` option to reach GA and use the official labeler. - We can also consider syncing the labels with BP repo and get rid of `A/B/C-`. This does not bring a lot of added value in short term, so I haven’t tasked that out. ## 🛡 What tests cover this? - Linting - CI in actions/labeler#316
1 parent 7987768 commit d59c192

File tree

2 files changed

+25
-68
lines changed

2 files changed

+25
-68
lines changed

.github/labeler.yml

+21-67
Original file line numberDiff line numberDiff line change
@@ -1,102 +1,56 @@
11
A-infra:
2-
- ".github/*"
3-
- ".github/.*"
4-
- ".github/**/*"
5-
- ".github/**/.*"
2+
- ".github/**"
3+
- ".*ignore"
4+
- ".markdownlint*"
5+
- "*.json"
66
- "*.md"
77
- "*.yml"
8-
- "*.json"
9-
- ".markdownlint*"
10-
- ".*ignore"
118

129
A-blocks:
13-
- "blocks/*"
14-
- "blocks/.*"
15-
- "blocks/**/*"
16-
- "blocks/**/.*"
10+
- "blocks/**"
1711

1812
A-hash:
19-
- "packages/hash/*"
20-
- "packages/hash/.*"
21-
- "packages/hash/**/*"
22-
- "packages/hash/**/.*"
13+
- "apps/hash-*/**"
14+
- "libs/@local/hash-*/**"
15+
- "libs/hash-*/**"
2316

2417
A-engine:
25-
- "apps/engine/*"
26-
- "apps/engine/.*"
27-
- "apps/engine/**/*"
28-
- "apps/engine/**/.*"
18+
- "apps/engine/**"
2919

3020
A-learn:
31-
- "apps/hashdotai/docs/*"
32-
- "apps/hashdotai/docs/.*"
33-
- "apps/hashdotai/docs/**/*"
34-
- "apps/hashdotai/docs/**/.*"
35-
- "apps/hashdotai/glossary/*"
36-
- "apps/hashdotai/glossary/.*"
37-
- "apps/hashdotai/glossary/**/*"
38-
- "apps/hashdotai/glossary/**/.*"
21+
- "apps/hashdotai/docs/**"
22+
- "apps/hashdotai/glossary/**"
3923

4024
A-error-stack:
41-
- "packages/libs/error-stack/*"
42-
- "packages/libs/error-stack/.*"
43-
- "packages/libs/error-stack/**/*"
44-
- "packages/libs/error-stack/**/.*"
25+
- "packages/libs/error-stack/**"
4526

4627
A-deer:
47-
- "libs/deer/*"
48-
- "libs/deer/.*"
49-
- "libs/deer/**/*"
50-
- "libs/deer/**/.*"
28+
- "libs/deer/**"
5129

5230
A-backend:
53-
- "apps/hash-graph/*"
54-
- "apps/hash-graph/.*"
55-
- "apps/hash-graph/**/*"
56-
- "apps/hash-graph/**/.*"
31+
- "apps/hash-graph/**"
5732

5833
C-dependencies:
5934
- "**/Cargo.lock"
6035
- "**/yarn.lock"
6136

6237
frontend:
63-
- apps/hash-frontend/*
64-
- apps/hash-frontend/.*
65-
- apps/hash-frontend/**/*
66-
- apps/hash-frontend/**/.*
38+
- "apps/hash-frontend/**"
6739

6840
api:
69-
- apps/hash-api/*
70-
- apps/hash-api/.*
71-
- apps/hash-api/**/*
72-
- apps/hash-api/**/.*
41+
- "apps/hash-api/**"
7342

7443
integration:
75-
- tests/hash-backend-integration/*
76-
- tests/hash-backend-integration/.*
77-
- tests/hash-backend-integration/**/*
78-
- tests/hash-backend-integration/**/.*
44+
- "tests/hash-backend-integration/**"
7945

8046
docker:
81-
- infra/docker/*
82-
- infra/docker/.*
83-
- infra/docker/**/*
84-
- infra/docker/**/.*
47+
- "infra/docker/**"
8548

8649
playwright:
87-
- tests/hash-playwright/*
88-
- tests/hash-playwright/.*
89-
- tests/hash-playwright/**/*
90-
- tests/hash-playwright/**/.*
50+
- "tests/hash-playwright/**"
9151

9252
realtime:
93-
- apps/hash-realtime/*
94-
- apps/hash-realtime/.*
95-
- apps/hash-realtime/**/*
96-
- apps/hash-realtime/**/.*
53+
- "apps/hash-realtime/**"
9754

9855
search-loader:
99-
- apps/hash-search-realtime/*
100-
- apps/hash-search-realtime/.*
101-
- apps/hash-search-realtime/**/*
102-
- apps/hash-search-realtime/**/.*
56+
- "apps/hash-search-realtime/**"

.github/workflows/labeler.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ jobs:
66
triage:
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/labeler@v4
9+
- uses: kachkaev/labeler@305cfeb74cfa5c4878bf6418b4815a4106f2e345
10+
## @todo replace with actions/labeler@v4 (or newer) when this PR is merged:
11+
## https://github.com/actions/labeler/pull/316
1012
with:
13+
dot: true
1114
repo-token: "${{ secrets.GITHUB_TOKEN }}"

0 commit comments

Comments
 (0)