mirror of
https://github.com/go-gitea/gitea
synced 2025-07-05 10:07:22 +00:00
add Slack API webhook support
This commit is contained in:
@ -359,6 +359,22 @@ function initRepoSetting() {
|
||||
return true;
|
||||
}
|
||||
});
|
||||
|
||||
// web hook type change
|
||||
$('select#hook-type').on("change", function () {
|
||||
hookTypes = ['Gogs','Slack'];
|
||||
|
||||
var curHook = $(this).val();
|
||||
hookTypes.forEach(function(hookType) {
|
||||
if (curHook === hookType) {
|
||||
$('div#'+hookType.toLowerCase()).toggleShow();
|
||||
}
|
||||
else {
|
||||
$('div#'+hookType.toLowerCase()).toggleHide();
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
$('#transfer-button').click(function () {
|
||||
$('#transfer-form').show();
|
||||
});
|
||||
@ -594,4 +610,4 @@ function homepage() {
|
||||
}
|
||||
$('#promo-form').attr('action', '/user/sign_up');
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user