Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
H
HappyKit
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mobile
HappyKit
Commits
634f7480
Commit
634f7480
authored
Sep 22, 2019
by
汪洋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
整理代码结构; 使用 require_all
parent
b4087d17
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
9 additions
and
24 deletions
+9
-24
confluence_request.rb
confluence_request.rb
+1
-1
ding.rb
ding.rb
+1
-0
kexing_notify.rb
kexing_notify.rb
+2
-3
main.rb
main.rb
+4
-4
notify_release_date_by_email.rb
notify_release_date_by_email.rb
+1
-3
common.rb
rubyCommon/common.rb
+0
-13
No files found.
Confluence
.rb
→
confluence_request
.rb
View file @
634f7480
...
...
@@ -2,7 +2,7 @@
require
'httparty'
require
"ostruct"
def
login
def
login
# 登录
options
=
{
:body
=>
{
:os_username
=>
" jaguar"
,
:os_password
=>
'jaguar@GM123'
,
:login
=>
'%E7%99%BB%E5%BD%95'
},
...
...
ding.rb
View file @
634f7480
#!/usr/bin/ruby
require
'dingbot'
DingBot
.
endpoint
=
'https://oapi.dingtalk.com/robot/send'
TEST_BOT
=
"0e53adfed496676b49931ab73092ce6dc206ced89fb66852be0906b5e3dcfa75"
def
ding_text
(
bot_id
,
msg
)
...
...
kexing_notify.rb
View file @
634f7480
#!/usr/bin/ruby
require
File
.
dirname
(
__FILE__
)
+
'/ding'
require
File
.
dirname
(
__FILE__
)
+
'/Confluence'
require_rel
'ding'
# 提前通知要过可行;当天也会提示
def
ke_xing_notify
()
...
...
@@ -47,7 +46,7 @@ def notify_to_book_ke_xing_meeting_room()
end
end
# PMs-更美 app 大迭代
# PMs-更美 app 大迭代
PM_BOT
=
"7f105786f654bac5491b5ad808d24521e6fec5d8da8f8b6b7590c16a91a1c4fd"
# 更美大迭代技术可行小组
KEXING_BOT
=
"6565866a84fe1e879c06273d434152bfd7669d93153780ca34ec2792e0386c1c"
...
...
main.rb
View file @
634f7480
#!/usr/bin/ruby
require
File
.
dirname
(
__FILE__
)
+
'/Confluence'
require
File
.
dirname
(
__FILE__
)
+
'/notify_release_date_by_email'
require
File
.
dirname
(
__FILE__
)
+
'/kexing_notify'
require
"require_all"
require_rel
'confluence_request'
require_rel
'notify_release_date_by_email'
require_rel
'kexing_notify'
$DEBUG
=
false
DingBot
.
endpoint
=
'https://oapi.dingtalk.com/robot/send'
login
notify_release_date_by_email
...
...
notify_release_date_by_email.rb
View file @
634f7480
#!/usr/bin/ruby
# encoding: UTF-8
require
'mail'
require
'dingbot'
require
File
.
dirname
(
__FILE__
)
+
'/Confluence'
require
File
.
dirname
(
__FILE__
)
+
'/ding'
require_rel
'ding'
# 类似于“7.11开发”这样的事件名,用于对比记录邮件是否已经发送
$dev_title
=
""
...
...
rubyCommon/common.rb
deleted
100644 → 0
View file @
b4087d17
DingBot
.
endpoint
=
'https://oapi.dingtalk.com/robot/send'
DingBot
.
access_token
=
'8142e051fe21d101b7e619c179741b0502f99b66ede221e164c2c1643122378d'
def
dingBot
message
=
DingBot
::
Message
::
Text
.
new
(
'邮件发送失败,有可能是存在无效收件人'
,
[
'15811315780'
],
false
)
DingBot
.
send_msg
(
message
)
end
\ No newline at end of file
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