Skip to content

Commit

Permalink
Added new footer to response
Browse files Browse the repository at this point in the history
  • Loading branch information
shaunburdick committed May 29, 2016
1 parent 172e34d commit d1128d4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions lib/bot.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const Botkit = require('botkit');
const moment = require('moment');
const J2S = require('jira2slack');
const logger = require('./logger')();
const PACKAGE = require('../package');

const RESPONSE_FULL = 'full';

Expand Down Expand Up @@ -66,6 +67,7 @@ class Bot {
response.pretext = `Here is some information on ${issue.key}`;
response.title = issue.fields.summary;
response.title_link = this.buildIssueLink(issue.key);
response.footer = `Slack Jira ${PACKAGE.version} - ${PACKAGE.homepage}`;
response.fields = [];
if (format === RESPONSE_FULL) {
response.fields.push({
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "slack-jirabot",
"version": "2.3.1",
"version": "2.3.2",
"description": "Slackbot for interacting with JIRA",
"main": "app.js",
"private": true,
Expand All @@ -22,9 +22,9 @@
"node": "^4.0.0"
},
"dependencies": {
"botkit": "^0.1.1",
"botkit": "^0.2.0",
"jira-client": "^3.0.2",
"jira2slack": "^0.1.0",
"jira2slack": "^1.0.0",
"moment": "^2.10.3",
"redact-object": "^1.0.1",
"winston": "^2.1.1"
Expand Down

0 comments on commit d1128d4

Please sign in to comment.