Skip to content

alauper/slackup-generator

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

Slackup-generator

  1. Clone this repo There are two versions of the template - one with images, one without. template_with_images.rb tempalte.rb

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

  1. If you're using the template_with_images.rb, you'll need to include links to your preferred images at the bottom.

  2. 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 or echo "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):

About

cli tool in ruby for slackups

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%