Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .eslintignore

This file was deleted.

23 changes: 0 additions & 23 deletions .eslintrc

This file was deleted.

13 changes: 5 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,16 @@
"author": "LonoxX",
"license": "MIT",
"devDependencies": {
"@types/node": "^25.0.8",
"@typescript-eslint/eslint-plugin": "^8.53.0",
"@typescript-eslint/parser": "^8.53.0",
"@types/node": "^25.3.0",
"builtin-modules": "^5.0.0",
"esbuild": "^0.27.2",
"eslint": "^9.39.2",
"obsidian": "^1.11.4",
"esbuild": "^0.27.3",
"obsidian": "^1.12.2",
"prettier": "^3.8.1",
"tslib": "^2.8.1",
"typescript": "^5.9.3"
},
"dependencies": {
"date-fns": "^4.1.0",
"octokit": "^5.0.5",
"prettier": "^3.7.4"
"octokit": "^5.0.5"
}
}
12 changes: 12 additions & 0 deletions src/cleanup-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ export class CleanupManager {
for (const file of files) {
// Try to get number from frontmatter first (most reliable)
const properties = extractProperties(this.app, file);

// Skip files that belong to a different type (e.g. PRs in a shared folder)
if (properties.type === "pr") {
continue;
}

let fileNumberString: string | null = null;

if (properties.number) {
Expand Down Expand Up @@ -125,6 +131,12 @@ export class CleanupManager {
for (const file of files) {
// Try to get number from frontmatter first (most reliable)
const properties = extractProperties(this.app, file);

// Skip files that belong to a different type (e.g. issues in a shared folder)
if (properties.type === "issue") {
continue;
}

let fileNumberString: string | null = null;

if (properties.number) {
Expand Down
8 changes: 4 additions & 4 deletions src/content-generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ export class ContentGenerator {
subIssues?: any[],
parentIssue?: any,
): Promise<string> {
// Determine whether to escape hash tags (repo setting takes precedence if ignoreGlobalSettings is true)
const shouldEscapeHashTags = repo.ignoreGlobalSettings ? repo.escapeHashTags : settings.escapeHashTags;
// Determine whether to escape hash tags (repo setting takes precedence if using a custom profile)
const shouldEscapeHashTags = repo.profileId !== "default" ? repo.escapeHashTags : settings.escapeHashTags;

// Check if custom template is enabled and load template content
if (repo.useCustomIssueContentTemplate && repo.issueContentTemplate) {
Expand Down Expand Up @@ -152,8 +152,8 @@ ${subIssues.map((si: any) => {
settings: GitHubTrackerSettings,
projectData?: ProjectData[],
): Promise<string> {
// Determine whether to escape hash tags (repo setting takes precedence if ignoreGlobalSettings is true)
const shouldEscapeHashTags = repo.ignoreGlobalSettings ? repo.escapeHashTags : settings.escapeHashTags;
// Determine whether to escape hash tags (repo setting takes precedence if using a custom profile)
const shouldEscapeHashTags = repo.profileId !== "default" ? repo.escapeHashTags : settings.escapeHashTags;

// Check if custom template is enabled and load template content
if (repo.useCustomPullRequestContentTemplate && repo.pullRequestContentTemplate) {
Expand Down
Loading
Loading