Skip to content

Slack Message Updater can update working status to slack channel by mining JIRA tickets from Git repositories' commits with customized message format.

Notifications You must be signed in to change notification settings

rubelhassan/slack_updater

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Slack Message Updater

This app can update working status to slack channel by minning JIRA tickets from Git repositories with customized message format.

Configure and Run

Create

settings.json file

{  
  "user": {  
    "name": "git user name",  
    "email": "git user email"  
  },  
  "repositories": [  
    "/absolute/path/to/repo1",  
    "/absolute/path/to/repo2"  
  ],  
  "ticket_map": {  
    "PREFIX1": "https://www.atlassian.com/software/jira/project1/",  
    "PREFIX2": "https://www.atlassian.com/software/jira/project2/",  
  },  
  "webhook": "your slack app webhook",  
  "commit_depth": <int:max commits to mine>  
}

Update

message.json file

{
  "message": {
    "blocks": [
      {
        "type": "section",
        "text": {
          "type": "mrkdwn",
          "text": "*Top Task (TT) For The Day:* {tickets}"
        }
      },
      {
        "type": "section",
        "text": {
          "type": "mrkdwn",
          "text": "*Last day’s TT complete:* {yes_no}"
        }
      },
      {
        "type": "section",
        "text": {
          "type": "mrkdwn",
          "text": "*Any Hurdle:* {yes_no}"
        }
      }
    ]
  },
  "variables": {
    "yes_no": [
      "Yes",
      "No"
    ]
  }
}

Create Conda Environment

conda create --name envname --file=environments.yml

Activate Environment and Run Command

conda activate slack_updater
python app.py

About

Slack Message Updater can update working status to slack channel by mining JIRA tickets from Git repositories' commits with customized message format.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages