-
Notifications
You must be signed in to change notification settings - Fork 148
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
base: main
Are you sure you want to change the base?
Conversation
also fix: were the inputs not being parsed in tests idkperhaps
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
📝 Sharing a few quick responses to great feedback, but will continue with iteration to the README
after this!
@@ -0,0 +1 @@ | |||
20 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Per the great suggestion of @filmaj 🙏
```sh | ||
$ slack install | ||
$ slack trigger create # SLACK_WEBHOOK_TRIGGER | ||
$ slack deploy # SLACK_BOT_TOKEN and SLACK_INCOMING_WEBHOOK |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for calling this out! I agree that the actions of this app deserve a bit more explanation. The writer might've been holding too much context at first...
I've added a few details in the overview with a recommendation to develop and experiment with act
, while using CI testing for more real apps 🧪 📚
@@ -0,0 +1,115 @@ | |||
name: Development run |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@filmaj Apologies for causing this confusion! I wrote a few notes that encourage using develop
when testing changes while leaving notes on test
to the following CI sections of the maintainer's guide 🙏
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