Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: github publish to create new issue #1206

Merged
merged 2 commits into from
Aug 26, 2021

Conversation

Copy link
Contributor

@jonathanyeung jonathanyeung left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor comments.

});
repositoryId = result.repository.id;
} catch (error: any) {
throw new DendronError({ message: stringifyError(error) });
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add Severity.Minor to the DendronError? Same below.

/**
* method to get the repository id
*/

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: delete blank line. I'm not sure if Intellisense will pick up the docstring if there's a space here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Intellisense can pickup the docstring even if there is a blank space. Still deleting to maintain a common pattern.

@@ -98,6 +99,7 @@ export class PublishPodCommand extends BaseCommand<
} else {
window.showInformationMessage("contents copied to clipboard");
}
await new ReloadIndexCommand().execute();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Curious - what happened that requires a reload index?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After we create the issue, the note is updated with url and issueID in the frontmatter.

While adding some modification to the note(either body or frontmatter) afterwards, I could see no note found error, which gets removed after I ran Reload Index.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting - would you mind creating a scratch note in our workspace detailing this issue? Seems like a bug.

@jonathanyeung jonathanyeung merged commit 67abef0 into master Aug 26, 2021
@jonathanyeung jonathanyeung deleted the feat/createIssue-in-github branch August 26, 2021 11:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants