-
Notifications
You must be signed in to change notification settings - Fork 155
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!: wrap payloads to send to a "method" with "token" or "webhook" #333
Conversation
also fix: were the inputs not being parsed in tests idkperhaps
@seratch @filmaj huge thanks to y'all and the many others who've shared feedback on these changes! 🙏 ✨ I'm feeling solid about these changes and with the tests above passing I think now's an alright time to merge! Going to revert the |
☝️ That failure's expected since the changes to |
Summary
This PR introduces a handful of changes across this action in preparation for
@v2
! - #312 ✨A few more changes might be needed, but I'm hoping this is in an alright place to test things! Most details are in the README but some testing notes are below 🙏 📚
One notable change from the proposal is the parsing of YAML values 😳 I stumbled across the
js-yaml
package during development and am finding that it parses super well and makes it a bit easier to author workflows - it all seems like YAML but it's parsed as a string that's converted to JSON via YAML! I think it's neat, but open to all discussion on this!Planning to soon find ways to test this beyond local builds, but the steps for reviews can hopefully be helpful for testing things 🧪
Running experimental changes in a development or testing workspace
Check out the documentation in
.github/resources
🙏 ✨Running experimental changes of this branch in real workflows can be done with this-
Preview
Here, the payload uses a
method
andtoken
with YAML values:This example POSTs the
payload-file-path
to thewebhook
URL:Reviewers
From the kind reviewer, testing of all kinds is super appreciated! Using these changes with various
token
andmethod
combinations, or testing edge cases with the payloads and inputs withwebhook
are all things that have changed, as well as some of the documentation that goes with this 📚With this branch checked out, notes on testing and changing commands can be found as
resources
:🔗 https://github.com/slackapi/slack-github-action/tree/v2-development/.github/resources
Notes
Todo
Stub IRL callings of the@slack/web-api
WebClientbuild
step back if it's now breaking - it does seem needed to avoid thenpm install
in testing...thread_ts
are being returned!pull_request
in CI - a final step!Requirements