Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
gitHooks
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
APP
gitHooks
Commits
79f8e5db
Commit
79f8e5db
authored
Jan 03, 2018
by
iOS-银 恭敬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加卸载方法
parent
17bd281a
Pipeline
#922
failed with stages
Changes
6
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
11 additions
and
9 deletions
+11
-9
README.md
gitHooks/README.md
+6
-0
clangformat.pyc
gitHooks/clangformat.pyc
+0
-0
notejira.py
gitHooks/notejira.py
+1
-1
pre-push
gitHooks/pre-push
+2
-0
send.py
gitHooks/send.py
+0
-5
setup.plist
gitHooks/setup.plist
+2
-3
No files found.
gitHooks/README.md
View file @
79f8e5db
...
@@ -31,6 +31,12 @@ pip install biplist --user
...
@@ -31,6 +31,12 @@ pip install biplist --user
python
setup
.
py
python
setup
.
py
```
```
### 卸载方法
```
rm -rf ~/.git_template/hooks
```
### 功能控制是否开启
### 功能控制是否开启
1.
配置统一xcode模板,默认开启(git config githooks.xcodetemplate "YES")
1.
配置统一xcode模板,默认开启(git config githooks.xcodetemplate "YES")
2.
自动格式化代码功能,由提交到仓库的.clang-format文件是否存在控制
2.
自动格式化代码功能,由提交到仓库的.clang-format文件是否存在控制
...
...
gitHooks/clangformat.pyc
0 → 100644
View file @
79f8e5db
File added
gitHooks/notejira.py
View file @
79f8e5db
...
@@ -99,7 +99,7 @@ def can_note_jira():
...
@@ -99,7 +99,7 @@ def can_note_jira():
#7.检查jira用户名
#7.检查jira用户名
if
len
(
jira_user_name
())
==
0
or
len
(
jira_user_pwd
())
==
0
:
if
len
(
jira_user_name
())
==
0
or
len
(
jira_user_pwd
())
==
0
:
print
"你没有为JIRA配置用户名或密码,请按照如下命令格式分别配置用户名和密码"
print
"你没有为JIRA配置用户名或密码,请按照如下命令格式分别配置用户名和密码"
print
"git config --global jira.user
\"
xxx
@56qq.com
\"
"
print
"git config --global jira.user
\"
xxx
\"
"
print
"git config --global jira.pwd
\"
xxxpwd
\"
"
print
"git config --global jira.pwd
\"
xxxpwd
\"
"
exit
(
-
1
)
exit
(
-
1
)
pass
pass
...
...
gitHooks/pre-push
View file @
79f8e5db
...
@@ -5,12 +5,14 @@
...
@@ -5,12 +5,14 @@
import
notejira
import
notejira
import
reviewboard
import
reviewboard
def
main
():
def
main
():
review_url
=
reviewboard
.
post_review_if_need
()
review_url
=
reviewboard
.
post_review_if_need
()
notejira
.
note_jira_if_need
(
review_url
)
notejira
.
note_jira_if_need
(
review_url
)
pass
pass
if
__name__
==
'__main__'
:
if
__name__
==
'__main__'
:
...
...
gitHooks/send.py
View file @
79f8e5db
...
@@ -11,14 +11,9 @@ import clangformat
...
@@ -11,14 +11,9 @@ import clangformat
import
statistics
import
statistics
# mail_to_list=['shuaipeng.wang@56qq.com']
mail_to_list
=
[
'app@quantgroup.com'
]
mail_to_list
=
[
'app@quantgroup.com'
]
# mail_host="mail.huochebang.com"
# mail_sender_name="githooks.ios@huochebang.com"
# mail_sender_pwd="chuth-7?7vephaJere"
mail_host
=
"mail.quantgroup.cn"
mail_host
=
"mail.quantgroup.cn"
mail_sender_name
=
"gongjing.yin@quantgroup.cn"
mail_sender_name
=
"gongjing.yin@quantgroup.cn"
mail_sender_pwd
=
"Gongjing.2323"
mail_sender_pwd
=
"Gongjing.2323"
...
...
gitHooks/setup.plist
View file @
79f8e5db
...
@@ -8,9 +8,8 @@
...
@@ -8,9 +8,8 @@
<string>
QuantGroupNo1..
</string>
<string>
QuantGroupNo1..
</string>
<key>
project_paths
</key>
<key>
project_paths
</key>
<array>
<array>
<string>
/Users/QuantGroup/Desktop/办公/WorkSpace/CreditWallet
</string>
<string>
/Users/QuantGroup/Desktop/Office/WorkSpace/CreditWallet
</string>
<string>
/Users/QuantGroup/Desktop/办公/WorkSpace/btlk-ios
</string>
<string>
/Users/QuantGroup/Desktop/Office/WorkSpace/btlk-ios
</string>
<string>
/Users/QuantGroup/Desktop/办公/WorkSpace/TensorFlow
</string>
<string></string>
<string></string>
<string></string>
<string></string>
<string></string>
<string></string>
...
...
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