diff --git a/mkdocsPublisher/githubInteraction/branch.ts b/mkdocsPublisher/githubInteraction/branch.ts index 73b03ae7..db0e5636 100644 --- a/mkdocsPublisher/githubInteraction/branch.ts +++ b/mkdocsPublisher/githubInteraction/branch.ts @@ -1,7 +1,7 @@ import {Octokit} from "@octokit/core"; import {MkdocsPublicationSettings} from "../settings/interface"; import {FilesManagement} from "./filesManagement"; -import {MetadataCache, Vault} from "obsidian"; +import {MetadataCache, Vault, Notice} from "obsidian"; export class GithubBranch extends FilesManagement { settings: MkdocsPublicationSettings; @@ -85,6 +85,7 @@ export class GithubBranch extends FilesManagement { async mergePullRequest (branchName: string, silent = false, pullRequestNumber: number) { + new Notice('Trying to merge request with pull request number ' + pullRequestNumber + ' in ' + branchName); const octokit = new Octokit({ auth: this.settings.GhToken, }); diff --git a/mkdocsPublisher/utils/convertText.ts b/mkdocsPublisher/utils/convertText.ts index bd02b03a..0c55f2f2 100644 --- a/mkdocsPublisher/utils/convertText.ts +++ b/mkdocsPublisher/utils/convertText.ts @@ -52,7 +52,6 @@ function convertLinkCitation(fileContent: string, settings: MkdocsPublicationSet const matchedLink = fileContent.match(regexToReplace); if (matchedLink) { for (const link of matchedLink) { - new Notice(`${pathInGithub}`); const regToReplace = new RegExp(`${linkedFile.linkFrom}`); const newLink = link.replace(regToReplace, pathInGithub); //strict replacement of link fileContent = fileContent.replace(link, newLink); diff --git a/mkdocsPublisher/utils/filePathConvertor.ts b/mkdocsPublisher/utils/filePathConvertor.ts index f9dca46e..d4741e90 100644 --- a/mkdocsPublisher/utils/filePathConvertor.ts +++ b/mkdocsPublisher/utils/filePathConvertor.ts @@ -13,7 +13,6 @@ function createRelativePath(sourceFile: TFile, targetFile: {linked: TFile, linkF const sourcePath = getReceiptFolder(sourceFile, settings, metadata); const frontmatter = metadata.getCache(targetFile.linked.path) ? metadata.getCache(targetFile.linked.path).frontmatter : null; if (targetFile.linked.extension === '.md' && (!frontmatter || !frontmatter[settings.shareKey])) { - new Notice('Nothing to see here ;)') return targetFile.altText; } const targetPath = targetFile.linked.extension === 'md' ? getReceiptFolder(targetFile.linked, settings, metadata) : getImageLinkOptions(targetFile.linked, settings);