mirror of
https://gitcode.com/gitea/gitea.git
synced 2025-05-23 18:18:31 +08:00
Add pull request manually merge instruction (#13840)
* add pull request command line instructions * Add pull request manually merge instuction * Fix styles * Fix lint * Move inline style to class file * add space between merge button and hint text * Add sentence end charcter * Change the language file * adjust secondary bg * further adjustment Co-authored-by: silverwind <me@silverwind.io>
This commit is contained in:
@ -1201,6 +1201,12 @@ async function initRepository() {
|
||||
}
|
||||
}
|
||||
|
||||
function initPullRequestMergeInstruction() {
|
||||
$('.show-instruction').on('click', () => {
|
||||
$('.instruct').toggle();
|
||||
});
|
||||
}
|
||||
|
||||
function initPullRequestReview() {
|
||||
if (window.location.hash && window.location.hash.startsWith('#issuecomment-')) {
|
||||
const commentDiv = $(window.location.hash);
|
||||
@ -2526,6 +2532,7 @@ $(document).ready(async () => {
|
||||
initContextPopups();
|
||||
initTableSort();
|
||||
initNotificationsTable();
|
||||
initPullRequestMergeInstruction();
|
||||
|
||||
const routes = {
|
||||
'div.user.settings': initUserSettings,
|
||||
|
Reference in New Issue
Block a user