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: allow onSuccessFunction/onFailFunction to be a promise #122

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jochemkeller
Copy link

Hi,

Thanks for a great SR plug-in 🙏

It is seeing heavy usage in a corporate environment I work in, where I also ran into the issue that I'd like to asynchronously build the template using this library. However if for instance onSuccessFunction is a Promise, the slackMessage isn't awaited, resulting in a Promise { <pending> } being offered to the Slack API and of course this results in SemanticReleaseError: invalid_payload.

await Promise.resolve() wrappers for both onSuccessFunction & onFailFunction should allow us to input both Promises and sync functions.

If you have any thoughts please let me know!

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.

1 participant