Skip to content

Commit 7dd3cec

Browse files
authored
chore: add PR labeler (#9064)
1 parent 26ca2ff commit 7dd3cec

File tree

2 files changed

+162
-0
lines changed

2 files changed

+162
-0
lines changed

.github/labeler.yml

Lines changed: 142 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,142 @@
1+
# Configuration for GitHub Actions Labeler
2+
# https://github.com/actions/labeler
3+
4+
internal:
5+
- changed-files:
6+
- any-glob-to-any-file:
7+
- internal/**
8+
- internal/**/*
9+
10+
ci:
11+
- changed-files:
12+
- any-glob-to-any-file:
13+
- .github/workflows/**
14+
- .github/actions/**
15+
- dependency_range_tests/**
16+
- dependency_range_tests/**/*
17+
- environment_tests/**
18+
- environment_tests/**/*
19+
- libs/langchain-scripts/**
20+
- libs/langchain-scripts/**/*
21+
- libs/langchain-standard-tests/**
22+
- libs/langchain-standard-tests/**/*
23+
24+
examples:
25+
- changed-files:
26+
- any-glob-to-any-file:
27+
- examples/**
28+
- examples/**/*
29+
30+
langchain:
31+
- changed-files:
32+
- any-glob-to-any-file:
33+
- langchain/**
34+
- langchain/**/*
35+
36+
core:
37+
- changed-flies:
38+
- any-glob-to-any-file:
39+
- langchain-core/**
40+
- langchain-core/**/*
41+
42+
textsplitters:
43+
- changed-files:
44+
- any-glob-to-any-file:
45+
- libs/langchain-textsplitters/**
46+
- libs/langchain-textsplitters/**/*
47+
48+
provider/anthropic:
49+
- changed-files:
50+
- any-glob-to-any-file:
51+
- libs/langchain-anthropic/**
52+
- libs/langchain-anthropic/**/*
53+
54+
provider/aws:
55+
- changed-files:
56+
- any-glob-to-any-file:
57+
- libs/langchain-aws/**
58+
- libs/langchain-aws/**/*
59+
60+
provider/azure:
61+
- changed-files:
62+
- any-glob-to-any-file:
63+
- libs/langchain-*azure*/**
64+
- libs/langchain-*azure*/**/*
65+
66+
provider/ollama:
67+
- changed-files:
68+
- any-glob-to-any-file:
69+
- libs/langchain-ollama/**
70+
- libs/langchain-ollama/**/*
71+
72+
provider/openai:
73+
- changed-files:
74+
- any-glob-to-any-file:
75+
- libs/langchain-openai/**
76+
- libs/langchain-openai/**/*
77+
78+
provider/google:
79+
- changed-files:
80+
- any-glob-to-any-file:
81+
- libs/langchain-*google*/**
82+
- libs/langchain-*google*/**/*
83+
84+
provider/groq:
85+
- changed-files:
86+
- any-glob-to-any-file:
87+
- libs/langchain-groq/**
88+
- libs/langchain-groq/**/*
89+
90+
provider/mistralai:
91+
- changed-files:
92+
- any-glob-to-any-file:
93+
- libs/langchain-mistralai/**
94+
- libs/langchain-mistralai/**/*
95+
96+
provider/mongodb:
97+
- changed-files:
98+
- any-glob-to-any-file:
99+
- libs/langchain-mongodb/**
100+
- libs/langchain-mongodb/**/*
101+
102+
provider/redis:
103+
- changed-files:
104+
- any-glob-to-any-file:
105+
- libs/langchain-redis/**
106+
- libs/langchain-redis/**/*
107+
108+
provider/xai:
109+
- changed-files:
110+
- any-glob-to-any-file:
111+
- libs/langchain-xai/**
112+
- libs/langchain-xai/**/*
113+
114+
community:
115+
- changed-files:
116+
- any-glob-to-any-file:
117+
- libs/langchain-community/**
118+
- libs/langchain-community/**/*
119+
- libs/langchain-baidu-qianfan/**
120+
- libs/langchain-baidu-qianfan/**/*
121+
- libs/langchain-cerebras/**
122+
- libs/langchain-cerebras/**/*
123+
- libs/langchain-cloudflare/**
124+
- libs/langchain-cloudflare/**/*
125+
- libs/langchain-cohere/**
126+
- libs/langchain-cohere/**/*
127+
- libs/langchain-exa/**
128+
- libs/langchain-exa/**/*
129+
- libs/langchain-mixedbread-ai/**
130+
- libs/langchain-mixedbread-ai/**/*
131+
- libs/langchain-nomic/**
132+
- libs/langchain-nomic/**/*
133+
- libs/langchain-pinecone/**
134+
- libs/langchain-pinecone/**/*
135+
- libs/langchain-qdrant/**
136+
- libs/langchain-qdrant/**/*
137+
- libs/langchain-tavily/**
138+
- libs/langchain-tavily/**/*
139+
- libs/langchain-weaviate/**
140+
- libs/langchain-weaviate/**/*
141+
- libs/langchain-yandex/**
142+
- libs/langchain-yandex/**/*

.github/workflows/labeler.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Automatically label PRs based on the files changed
2+
name: "Pull Request Labeler"
3+
4+
on:
5+
pull_request_target:
6+
types: [opened, synchronize, reopened, ready_for_review]
7+
8+
permissions:
9+
contents: read
10+
pull-requests: write
11+
12+
jobs:
13+
label:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Label PR based on file paths
17+
uses: actions/labeler@v5
18+
with:
19+
repo-token: "${{ secrets.GITHUB_TOKEN }}"
20+
sync-labels: true # Remove labels when files no longer match

0 commit comments

Comments
 (0)