-
Clone this repo There are two versions of the template - one with images, one without.
template_with_images.rb
tempalte.rb
-
All configuration settings are at the top of the file. Change
AUTHOR_NAME
,AUTHORIZATION_TOKEN
,SLACK_WEB_HOOK
AUTHOR_NAME = "YOUR-NAME"
AUTHORIZATION_TOKEN = "YOUR-GITHUB-API-AUTH-TOKEN"
...
SLACK_WEB_HOOK = "https://hooks.slack.com/services/YOUR-SLACK-WEBHOOK"
Note - your GITHUB-API-AUTH-TOKEN can be found in github->settings->developer settings
https://github.com/settings/apps
When it prompts for scope permission, I granted repo
.
-
If you're using the
template_with_images.rb
, you'll need to include links to your preferred images at the bottom. -
Run from anywhere with an alias. This step depends on which file you want to run.
echo "alias slackup='ruby path/to/template.rb'" >> ~/.bash_profile
orecho "alias slackup='ruby path/to/template_with_images.rb'" >> ~/.bash_profile
The output will look similar to
PR ID:
Deploy:
Update:
----
*Ticket*: https://jira.smpl.ch/browse/ATL-XXXX
*PR*: https://github.com/acima-credit/merchant_portal/pull/XXXX
*Title*: [Title Pulled From PR]
*Deploy*: [Today]
*Update*: [This is my update]
Would you like to post to slack? (y/n):