Skip to content

Commit

Permalink
Refactor: Remove top content by targeting the issue template comment
Browse files Browse the repository at this point in the history
  • Loading branch information
KBandipo authored and Ifycode committed Dec 10, 2024
1 parent e43961a commit f118ee3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions @dev-client/views/@plugin_githubsync/githubsync.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,12 @@ issueTemplatesDropdownSelect.addEventListener('change', async (e) => {
}
let content = await response.text();

if (content.startsWith('---')) {
const findIndex = content.indexOf('---', 3);
const findIndex = content.indexOf('<!-- Issue template by Collabo Community -->');
if (findIndex !== -1) {
content = content.slice(findIndex + 3).trim();
content = content.slice(findIndex + 46).trim();
}
}



issueBodyInput.value = content;
} catch (error) {
Expand Down

0 comments on commit f118ee3

Please sign in to comment.