Skip to content

Commit 4b9b38b

Browse files
committed
refactor: move issue and pull request labeling npm dependencies into shared location (#3456)
PR Close #3456
1 parent c8ad100 commit 4b9b38b

6 files changed

Lines changed: 49 additions & 58 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
load("@devinfra_npm//:defs.bzl", "npm_link_all_packages")
2+
3+
package(default_visibility = ["//github-actions/labeling:__subpackages__"])
4+
5+
npm_link_all_packages()

github-actions/labeling/issue/BUILD.bazel

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
1-
load("@devinfra_npm//:defs.bzl", "npm_link_all_packages")
21
load("//tools:defaults.bzl", "esbuild_checked_in", "jasmine_test", "ts_project")
32

43
package(default_visibility = ["//github-actions/labeling/issue:__subpackages__"])
54

6-
npm_link_all_packages()
7-
85
ts_project(
96
name = "lib",
107
srcs = glob(
@@ -13,13 +10,13 @@ ts_project(
1310
),
1411
tsconfig = "//github-actions:tsconfig",
1512
deps = [
16-
":node_modules/@actions/core",
17-
":node_modules/@actions/github",
18-
":node_modules/@google/genai",
19-
":node_modules/@octokit/openapi-types",
20-
":node_modules/@octokit/rest",
21-
":node_modules/@types/node",
2213
"//github-actions:utils",
14+
"//github-actions/labeling:node_modules/@actions/core",
15+
"//github-actions/labeling:node_modules/@actions/github",
16+
"//github-actions/labeling:node_modules/@google/genai",
17+
"//github-actions/labeling:node_modules/@octokit/openapi-types",
18+
"//github-actions/labeling:node_modules/@octokit/rest",
19+
"//github-actions/labeling:node_modules/@types/node",
2320
"//ng-dev/pr/common/labels",
2421
],
2522
)
@@ -31,14 +28,15 @@ ts_project(
3128
tsconfig = "//github-actions:tsconfig_test",
3229
deps = [
3330
":lib",
34-
":node_modules/@actions/core",
35-
":node_modules/@actions/github",
36-
":node_modules/@google/genai",
37-
":node_modules/@octokit/openapi-types",
38-
":node_modules/@octokit/rest",
39-
":node_modules/@types/jasmine",
40-
":node_modules/@types/node",
31+
4132
"//github-actions:utils",
33+
"//github-actions/labeling:node_modules/@actions/core",
34+
"//github-actions/labeling:node_modules/@actions/github",
35+
"//github-actions/labeling:node_modules/@google/genai",
36+
"//github-actions/labeling:node_modules/@octokit/openapi-types",
37+
"//github-actions/labeling:node_modules/@octokit/rest",
38+
"//github-actions/labeling:node_modules/@types/jasmine",
39+
"//github-actions/labeling:node_modules/@types/node",
4240
],
4341
)
4442

github-actions/labeling/issue/package.json renamed to github-actions/labeling/package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,15 @@
33
"dependencies": {
44
"@actions/core": "3.0.0",
55
"@actions/github": "9.0.0",
6-
"@octokit/openapi-types": "27.0.0",
76
"@octokit/rest": "22.0.1",
87
"@google/genai": "^1.43.0",
98
"@types/jasmine": "6.0.0",
9+
"@types/micromatch": "^4.0.10",
1010
"@types/node": "24.10.13",
11+
"micromatch": "^4.0.8",
12+
"typed-graphqlify": "3.1.6",
13+
"undici": "7.19.2",
14+
"@octokit/openapi-types": "27.0.0",
1115
"jasmine": "6.1.0"
1216
}
1317
}

github-actions/labeling/pull-request/BUILD.bazel

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
1-
load("@devinfra_npm//:defs.bzl", "npm_link_all_packages")
21
load("//tools:defaults.bzl", "esbuild_checked_in", "jasmine_test", "ts_project")
32

43
package(default_visibility = ["//github-actions/labeling/pull-request:__subpackages__"])
54

6-
npm_link_all_packages()
7-
85
ts_project(
96
name = "lib",
107
srcs = glob(
@@ -13,14 +10,14 @@ ts_project(
1310
),
1411
tsconfig = "//github-actions:tsconfig",
1512
deps = [
16-
":node_modules/@actions/core",
17-
":node_modules/@actions/github",
18-
":node_modules/@octokit/rest",
19-
":node_modules/@types/micromatch",
20-
":node_modules/@types/node",
21-
":node_modules/micromatch",
22-
":node_modules/undici",
2313
"//github-actions:utils",
14+
"//github-actions/labeling:node_modules/@actions/core",
15+
"//github-actions/labeling:node_modules/@actions/github",
16+
"//github-actions/labeling:node_modules/@octokit/rest",
17+
"//github-actions/labeling:node_modules/@types/micromatch",
18+
"//github-actions/labeling:node_modules/@types/node",
19+
"//github-actions/labeling:node_modules/micromatch",
20+
"//github-actions/labeling:node_modules/undici",
2421
"//ng-dev/commit-message",
2522
"//ng-dev/pr/common/labels",
2623
"//ng-dev/utils",
@@ -38,12 +35,12 @@ ts_project(
3835
"//github-actions/labeling/pull-request:__subpackages__",
3936
],
4037
deps = [
41-
"//github-actions:node_modules/@types/jasmine",
42-
"//github-actions:node_modules/@types/node",
38+
"//github-actions/labeling:node_modules/@actions/core",
39+
"//github-actions/labeling:node_modules/@actions/github",
40+
"//github-actions/labeling:node_modules/@octokit/rest",
41+
"//github-actions/labeling:node_modules/@types/jasmine",
42+
"//github-actions/labeling:node_modules/@types/node",
4343
"//github-actions/labeling/pull-request:lib",
44-
"//github-actions/labeling/pull-request:node_modules/@actions/core",
45-
"//github-actions/labeling/pull-request:node_modules/@actions/github",
46-
"//github-actions/labeling/pull-request:node_modules/@octokit/rest",
4744
],
4845
)
4946

pnpm-lock.yaml

Lines changed: 12 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pnpm-workspace.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ packages:
2020
- github-actions/branch-manager
2121
- github-actions/saucelabs
2222
- github-actions/browserstack
23-
- github-actions/labeling/issue
24-
- github-actions/labeling/pull-request
23+
- github-actions/labeling
2524
- github-actions/bazel/configure-remote
2625
# The minimum age of a release to be considered for dependency installation.
2726
# The value is in minutes (1440 minutes = 1 day).

0 commit comments

Comments
 (0)