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

Fix: external linked issues notification #181

Merged
merged 8 commits into from Nov 23, 2022

Conversation

sameer-coder
Copy link
Contributor

@sameer-coder sameer-coder commented Nov 21, 2022

This PR fixes the issues #179 and #180

The action was failing when trying to create a comment on an issue linked to an external repository. That error is handled correctly now and the action no longer fails.

closes #179
closes #180

@nearform-actions nearform-actions deleted a comment from github-actions bot Nov 22, 2022
@sameer-coder sameer-coder marked this pull request as ready for review November 22, 2022 10:41
@sameer-coder sameer-coder marked this pull request as draft November 22, 2022 13:30
@sameer-coder sameer-coder marked this pull request as ready for review November 22, 2022 13:49
@@ -3,7 +3,7 @@
const md = require('markdown-it')()

function getPrNumbersFromReleaseNotes(releaseNotes) {
const parsedReleaseNotes = md.parse(releaseNotes)
const parsedReleaseNotes = md.parse(releaseNotes, {})
Copy link
Contributor

Choose a reason for hiding this comment

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

why this change?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was throwing the js error in #180. As per MarkdownIt docs the parse method needs 2 args
MarkdownIt.parse(src, env) --> Array

@sameer-coder sameer-coder merged commit 5b717d2 into main Nov 23, 2022
@sameer-coder sameer-coder deleted the fix-external-linked-issues branch November 23, 2022 07:08
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.

js error in release workflow Handle external linked issues
2 participants