Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lib_base
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sikang
lib_base
Commits
e1755bf0
Commit
e1755bf0
authored
Oct 17, 2019
by
sikang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
8da250eb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
3 deletions
+20
-3
python/main.py
+4
-2
python/shell.py
+16
-1
No files found.
python/main.py
View file @
e1755bf0
...
...
@@ -39,4 +39,6 @@ elif commod == 5:
elif
commod
==
6
:
Shell
.
push_base
(
config
)
\ No newline at end of file
elif
commod
==
8
:
Shell
.
push_with_tag
(
config
)
\ No newline at end of file
python/shell.py
View file @
e1755bf0
...
...
@@ -18,7 +18,7 @@ class Shell:
#commit&push lib_base
@staticmethod
def
push_base
(
config
):
commit_msg
=
input
(
"输入commit msg:
\n
"
)
commit_msg
=
input
(
"输入commit msg:"
)
command
=
"
%
s
\n
%
s
\n
%
s
\n
%
s
\n
"
\
%
(
"cd
%
s/
%
s"
%
(
config
[
'root'
],
"lib_base"
),
...
...
@@ -46,3 +46,18 @@ class Shell:
"git pull"
)
os
.
system
(
command
)
#push with tag
@staticmethod
def
push_with_tag
(
config
):
Shell
.
push_project
(
config
)
tagName
=
"t
%
s-
%
s"
%
(
config
[
'corp_id'
],
config
[
'app_id'
])
command
=
"
%
s
\n
%
s
\n
%
s
\n
%
s
\n
"
\
%
(
"cd
%
s"
%
config
[
'root'
],
"git tag -d
%
s"
%
tagName
,
"git push origin --delete tag
%
s"
%
tagName
,
"git tag -a
%
s -m
%
s"
%
(
tagName
,
tagName
),
"git push origin
%
s"
%
tagName
,
)
os
.
system
(
command
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment