Skip to content

Conversation

@ayame113
Copy link
Contributor

@ayame113 ayame113 commented May 1, 2025

close #77

The repository's README says "failure_reaction", but the source code uses "failed_reaction". This PR fixes this to use "failure_reaction" and adds tests.

Copilot AI review requested due to automatic review settings May 1, 2025 10:47
@ayame113 ayame113 requested a review from GrantBirki as a code owner May 1, 2025 10:47
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes a typo where the reaction input key was incorrectly named "failed_reaction" instead of "failure_reaction", ensuring consistency with the repository's README.

  • Fixed the reaction input key for the failure condition in the post function.
  • Updated tests to verify the correct reaction is used on both success and failure outcomes.

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

File Description
src/functions/post.js Renamed input from "failed_reaction" to "failure_reaction"
tests/functions/post.test.js Added tests to check the updated behavior for reaction inputs

@ayame113
Copy link
Contributor Author

ayame113 commented May 9, 2025

@GrantBirki Could you please review this?

@GrantBirki GrantBirki added the bug Something isn't working label May 9, 2025
Copy link
Contributor

@GrantBirki GrantBirki left a comment

Choose a reason for hiding this comment

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

Looks great, thank you!

@GrantBirki GrantBirki merged commit 0821dfd into github:main May 9, 2025
4 checks passed
@GrantBirki
Copy link
Contributor

A new release, v2.0.1 has been published. Please give it a go and let me know if it all works okay! 🙇

@ayame113 ayame113 deleted the fix/failure-reaction-typo branch May 10, 2025 03:53
@ayame113
Copy link
Contributor Author

@GrantBirki
Thank you for your review! I have confirmed that it works with v2.0.1!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

failure_reaction option is not working

2 participants