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:
parent
c85bb62635
commit
2d71cdb668
7 changed files with 78 additions and 42 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue