-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add work wechat webhook #5252
Add work wechat webhook #5252
Conversation
options/locale/locale_pt-BR.ini
Outdated
@@ -1115,6 +1115,7 @@ settings.slack_domain=Domínio | |||
settings.slack_channel=Canal | |||
settings.add_discord_hook_desc=Integre o <a href="%s">Discord</a> em seu repositório. | |||
settings.add_dingtalk_hook_desc=Integre o <a href="%s">Dingtalk</a> em seu repositório. | |||
settings.add_workwechat_hook_desc=Integre o <a href="%s">Work Wechat</a> em seu repositório. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add translations via https://crowdin.com/project/gitea
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok.
routers/api/v1/convert/convert.go
Outdated
@@ -151,7 +151,10 @@ func ToHook(repoLink string, w *models.Webhook) *api.Hook { | |||
config["icon_url"] = s.IconURL | |||
config["color"] = s.Color | |||
} | |||
|
|||
if w.HookTaskType == models.WORKWECHAT { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
else if
Codecov Report
@@ Coverage Diff @@
## master #5252 +/- ##
=========================================
- Coverage 38.83% 38.5% -0.34%
=========================================
Files 354 355 +1
Lines 50174 50599 +425
=========================================
- Hits 19485 19483 -2
- Misses 27866 28294 +428
+ Partials 2823 2822 -1
Continue to review full report at Codecov.
|
else if Copy right 2018 remove unused translations
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 months. Thank you for your contributions. |
Please resolve conflicts. |
Please resolve conflicted files |
@rocklau do you still work on this :( ? |
Please resolve the conflicts. |
@rocklau I know this PR is old ... but do you still have passion to get it upstream? |
new feature: send events to work wechat group
unit test done list
work flow:
get CORP_ID from https://work.weixin.qq.com/wework_admin/frame#profile
get APP_SECRET from your corporation app profile /wework_admin/frame#apps/modApiApp/
curl -X GET \ 'https://qyapi.weixin.qq.com/cgi-bin/gettoken?corpid=CORP_ID&corpsecret=CORP_APP_SECRET'
TargetURL:https://qyapi.weixin.qq.com/cgi-bin/appchat/send?access_token=ACCESS_TOKEN
Chat ID: gitea