Skip to content

Commit

Permalink
commands: validate github settings before commands
Browse files Browse the repository at this point in the history
  • Loading branch information
julesvirallinen committed Sep 27, 2023
1 parent f2e8b38 commit 8e59719
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ export default class DigitalGarden extends Plugin {
metadataCache,
this.settings,
);
publisher.validateSettings();

const siteManager = new DigitalGardenSiteManager(
metadataCache,
Expand Down Expand Up @@ -399,6 +400,7 @@ export default class DigitalGarden extends Plugin {
metadataCache,
this.settings,
);
publisher.validateSettings();
const publishSuccessful = await publisher.publish(activeFile);

if (publishSuccessful) {
Expand Down

0 comments on commit 8e59719

Please sign in to comment.