Summary
This article describes a business use case that will post messages to Slack channel for every push made in GitHub.
Pre-requisites
-
User should have a working webMethods.io Integration tenant.
-
User should have a working GitHub and Slack account.
Steps
-
Login to webMethods.io Integration tenant and create a Workflow.
-
Click the Settings and search for the GitHub trigger from the available list of triggers.
-
Select Push from the list of Select Trigger options. Authorize GitHub by either default or manual configuration, then select the Repository Name.
-
Click Save, skip testing the trigger for now, then click Done.
-
Drag and drop the Slack connector to the workflow palette.
-
Double click on the Slack connector icon in the workflow palette to configure the action.
-
In the action configuration screen, select Post Message to Channel from the available list of options for Select Action.
-
Authorize Slack by either Default or Manual configuration. Then, click Next.
-
Provide mandatory inputs and map the appropriate fields from the GitHub trigger to form a proper text message to be posted to the Slack channel.
-
Click Next, then Done. Save the workflow.
-
Now, push some changes to GitHub. Use the same repository selected in step 3.
-
Soon the changes are pushed the workflow will execute.
-
Now check the Slack channel for the message posted.