
Used github secrets to add GITHUB_TOKEN and WEBHOOK_URL values. Let’s define a workflow that could run the above script when a release is published on the repository.

raise_for_status () if _name_ = '_main_' : notify_slack () Integrating with GitHub Actions post ( WEBHOOK_URL, json = data ) response. Import requests from pprint import pprint GITHUB_TOKEN = os.

After going through the Git api documentation I quickly wrote this python code to get the json response of latest release. To do this, we have to use github api to get the latest release and its description. Implementationįirst thing first, lets write a module that sends a slack notification about the release. Gitub actions is a platform which automates, customizes, and executes software development workflows in the repository. We will use github actions for running the job that notifies slack channel upon publishing a new release. An organization which uses slack as their communication platform can utilize slack channels to communicate with stake holders at once. When a software release is made in github, all the stake holders need to know about the list of changes that went in the release. As the shipment moves along the way to destination it status changes and this event will be sent to a handler that calls the webhook url with the status data.

A shipment company provides a way to subscribe to shipments by allowing the developer to add a webhook url to the shipment. Customers want to order some toys online and they would like to receive shipment updates. Lets take an example of shipment tracker. As a stakeholder I would like to know when a software release has been made which includes list of changes categorized by either of the three types (features, maintenance, bug fixes).
