Post Message in Slack Channel for Push in GitHub

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

  1. Login to webMethods.io Integration tenant and create a Workflow.

  2. Click the Settings and search for the GitHub trigger from the available list of triggers.

  3. Select Push from the list of Select Trigger options. Authorize GitHub by either default or manual configuration, then select the Repository Name.

  4. Click Save, skip testing the trigger for now, then click Done.

  5. Drag and drop the Slack connector to the workflow palette.

  6. Double click on the Slack connector icon in the workflow palette to configure the action.

  7. In the action configuration screen, select Post Message to Channel from the available list of options for Select Action.

  8. Authorize Slack by either Default or Manual configuration. Then, click Next.

  9. 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.

  10. Click Next, then Done. Save the workflow.

  11. Now, push some changes to GitHub. Use the same repository selected in step 3.

  12. Soon the changes are pushed the workflow will execute.

  13. Now check the Slack channel for the message posted.