Enveloppe / obsidian-enveloppe

Enveloppe helps you to publish your notes on a GitHub repository from your Obsidian Vault, for free!
https://enveloppe.github.io/
Apache License 2.0
618 stars 38 forks source link

[Plugin][Bug]: The command "Purge depublished and deleted files" does not work #218

Closed carloslab-ai closed 1 year ago

carloslab-ai commented 1 year ago

Issue validation

Command used

Purge depublished and deleted files

Plugin version

6.5.3

Describe the bug

The command "Purge depublished and deleted files" does not work.

I've tried both to change the "share" key to "false" and delete the published files then use this command but it does not work. There are no files being deleted from the GitHub repo.

How to reproduce ?

No response

Minimal Reproducible Example

  1. Publish a file with the "share" key is set to true. For example:
---
share: true
---
This is a test file.
  1. Change the "share" key to false or delete that file.
  2. Use the "Purge depublished and deleted files" command.

Configuration

{
  "github": {
    "branch": "main",
    "automaticallyMergePR": true,
    "tokenPath": "%configDir%/plugins/%pluginID%/env",
    "api": {
      "tiersForApi": "Github Free/Pro/Team (default)",
      "hostname": ""
    },
    "workflow": {
      "commitMessage": "[PUBLISHER] Merge",
      "name": ""
    },
    "verifiedRepo": true
  },
  "upload": {
    "behavior": "obsidian",
    "defaultName": "docs",
    "rootFolder": "",
    "yamlFolderKey": "",
    "frontmatterTitle": {
      "enable": false,
      "key": "title"
    },
    "replaceTitle": [],
    "replacePath": [
      {
        "regex": "Areas/Website",
        "replacement": "",
        "type": "path"
      }
    ],
    "autoclean": {
      "enable": false,
      "excluded": []
    },
    "folderNote": {
      "enable": false,
      "rename": "index.md"
    },
    "metadataExtractorPath": ""
  },
  "conversion": {
    "hardbreak": false,
    "dataview": true,
    "censorText": [],
    "tags": {
      "inline": false,
      "exclude": [],
      "fields": []
    },
    "links": {
      "internal": false,
      "unshared": false,
      "wiki": false,
      "slugify": false
    }
  },
  "embed": {
    "attachments": true,
    "keySendFile": [],
    "notes": false,
    "folder": "",
    "convertEmbedToLinks": "keep",
    "charConvert": "->"
  }
}

Relevant log output

No response

OS

Windows

Anything else?

No response

Obsidian information

- Obsidian Version: v1.4.5
- Debug Info:

SYSTEM INFO:
    Obsidian version: v1.4.5
    Installer version: v1.1.9
    Operating system: Windows 10 Home Single Language 10.0.22621
    Login status: logged in
    Catalyst license: none
    Insider build toggle: off
    Live preview: off
    Legacy editor: off
    Base theme: dark
    Community theme: AnuPpuccin v1.4.2
    Snippets enabled: 1
    Restricted mode: off
    Plugins installed: 35
    Plugins enabled: 30
        1: Style Settings v1.0.6
        2: Spaced Repetition v1.10.1
        3: DB Folder v3.4.0
        4: Dataview v0.5.56
        5: Custom Attachment Location v0.0.9
        6: Advanced URI v1.38.1
        7: Custom File Explorer sorting v1.8.2
        8: Custom Frames v2.4.6
        9: Surfing v0.8.16
        10: Tasks v4.6.1
        11: Multi-Column Markdown v0.8.3
        12: Obsidian42 - BRAT v0.7.0
        13: Hotkeys for specific files v1.4.0
        14: Open File by Magic Date v0.1.2
        15: Obsidian Columns v1.5.0
        16: Text Generator v0.3.20
        17: Underline v1.2.1
        18: Advanced Tables v0.19.1
        19: Commander v0.5.0
        20: Homepage v3.5.1
        21: Mermaid Tools v1.0.0
        22: Wikilinks to MDLinks v0.0.12
        23: Gemmy v0.0.3
        24: Emoji Toolbar v0.4.1
        25: Templater v1.16.0
        26: Projects v1.16.3
        27: MAKE.md v0.7.31
        28: Trash Explorer v1.2.2
        29: Image Toolkit v1.4.0
        30: Github Publisher v6.5.3

RECOMMENDATIONS:
    Custom theme and snippets: for cosmetic issues, please first try updating your theme and disabling your snippets. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community theme and snippets.
    Community plugins: for bugs, please first try updating all your plugins to latest. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community plugins.
Mara-Li commented 1 year ago

You need to active the auto-clean in the configuration upload settings.