File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 22Author: LetMeFly
33Date: 2022-07-03 11:21:14
44LastEditors: LetMeFly
5- LastEditTime: 2023-10-20 11:55:12
5+ LastEditTime: 2023-10-20 11:59:02
66Command: python newSolution.py 102. 二叉树的层序遍历
77What's more: 当前仅支持数字开头的题目
88'''
@@ -157,5 +157,7 @@ def getProblemUrl():
157157os .system ('git add .' )
158158os .system (f'git commit -m "添加了问题“{ num } .{ title } ”的代码和题解"' )
159159os .system (f'git push --set-upstream origin { num } ' )
160- os .system (f'gh pr create -t "添加了问题“{ num } .{ title } ”的代码和题解" -b "By newSolution.py using GH"' )
161- os .system (f'gh pr merge { issueNum } -m -d' )
160+ prResult = os .popen (f'gh pr create -t "添加了问题“{ num } .{ title } ”的代码和题解" -b "By newSolution.py using GH | close: #{ issueNum } "' ).read ()
161+ print (prResult )
162+ prNumber = int (prResult .split ('/' )[- 1 ])
163+ os .system (f'gh pr merge { prNumber } -m -d' )
You can’t perform that action at this time.
0 commit comments