Skip to content

Commit cc4c590

Browse files
authored
Create checktitle.py
1 parent 01d5281 commit cc4c590

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.ci_support/checktitle.py

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import sys
2+
3+
4+
if __name__ == "__main__":
5+
pr_title = sys.argv[1]
6+
with open("disableautomerge.txt", "r") as f:
7+
disable_lst = f.readlines()
8+
if len(pr_title) > 0:
9+
for disable in disable_lst:
10+
if len(disable.rstrip()) > 0 and disable.rstrip() in pr_title:
11+
sys.exit(1)

0 commit comments

Comments
 (0)