mirror of
https://github.com/EnixCoda/Gitako.git
synced 2026-03-11 08:54:44 +00:00
fix: resolve PR title
This commit is contained in:
parent
6789fe6a11
commit
ab322e95d7
1 changed files with 2 additions and 3 deletions
|
|
@ -19,9 +19,8 @@ export function isInCodePage() {
|
|||
}
|
||||
|
||||
export function getIssueTitle() {
|
||||
const title = $('.gh-header-title .js-issue-title')?.textContent
|
||||
const id = $('.gh-header-title .gh-header-number')?.textContent
|
||||
if (title && id) return `${id} ${title}`
|
||||
const title: string | undefined = $('.gh-header-title')?.textContent
|
||||
return title?.trim().replace(/\n/g, '')
|
||||
}
|
||||
|
||||
export function getCurrentBranch() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue