Skip to content

Commit

Permalink
1.2.2 (#5)
Browse files Browse the repository at this point in the history
* Update: Slack API message design
* Update: Node packages
  • Loading branch information
sergejmueller committed Mar 4, 2019
1 parent 4863d4e commit 22b5bf3
Show file tree
Hide file tree
Showing 5 changed files with 67 additions and 38 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
# oppy / CHANGELOG


### 1.2.2 (2019-03-04)

* Update: Slack API message design
* Update: Node packages


### 1.2.1 (2019-02-22)

* Refactor Slack API call
* Update: Refactor Slack API request


### 1.2.0 (2019-02-19)
Expand Down
6 changes: 2 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ ical.fromURL(argv['personio-ics'], {}, (error, data) => {

absences.push(
util.format(
'%s _(%s)_',
'>%s _(%s)_',
event.summary,
pluralize('day', diffDays, true)
)
Expand Down Expand Up @@ -92,9 +92,7 @@ ical.fromURL(argv['personio-ics'], {}, (error, data) => {
got(argv['slack-webhook'], {
method: 'POST',
body: JSON.stringify({
'attachments': [{
'text': diffAbsences.sort().join('\n')
}]
'text': '\n' + diffAbsences.sort().join('\n')
})
});

Expand Down
54 changes: 34 additions & 20 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@deptagency/oppy",
"version": "1.2.1",
"version": "1.2.2",
"main": "index.js",
"license": "MIT",
"description": "Slack Bot for Personio daily absences",
Expand All @@ -17,7 +17,7 @@
"got": "^9.6.0",
"lodash.difference": "^4.5.0",
"mri": "^1.1.4",
"node-ical": "^0.9.0",
"node-ical": "^0.9.2",
"pluralize": "^7.0.0"
},
"keywords": [
Expand All @@ -32,7 +32,7 @@
"test": "eslint ."
},
"devDependencies": {
"eslint": "^5.13.0",
"eslint": "^5.15.0",
"eslint-plugin-node": "^8.0.1",
"eslint-plugin-security": "^1.4.0"
},
Expand Down
31 changes: 21 additions & 10 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -288,9 +288,9 @@ eslint-plugin-security@^1.4.0:
dependencies:
safe-regex "^1.1.0"

eslint-scope@^4.0.0:
version "4.0.0"
resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-4.0.0.tgz#50bf3071e9338bcdc43331794a0cb533f0136172"
eslint-scope@^4.0.2:
version "4.0.2"
resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-4.0.2.tgz#5f10cd6cabb1965bf479fa65745673439e21cb0e"
dependencies:
esrecurse "^4.1.0"
estraverse "^4.1.1"
Expand All @@ -303,17 +303,17 @@ eslint-visitor-keys@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-1.0.0.tgz#3f3180fb2e291017716acb4c9d6d5b5c34a6a81d"

eslint@^5.13.0:
version "5.14.0"
resolved "https://registry.yarnpkg.com/eslint/-/eslint-5.14.0.tgz#380739df2489dd846baea008638b036c1e987974"
eslint@^5.15.0:
version "5.15.0"
resolved "https://registry.yarnpkg.com/eslint/-/eslint-5.15.0.tgz#f313a2f7c7628d39adeefdba4a9c41f842012c9e"
dependencies:
"@babel/code-frame" "^7.0.0"
ajv "^6.9.1"
chalk "^2.1.0"
cross-spawn "^6.0.5"
debug "^4.0.1"
doctrine "^3.0.0"
eslint-scope "^4.0.0"
eslint-scope "^4.0.2"
eslint-utils "^1.3.1"
eslint-visitor-keys "^1.0.0"
espree "^5.0.1"
Expand Down Expand Up @@ -729,6 +729,16 @@ mkdirp@^0.5.1:
dependencies:
minimist "0.0.8"

moment-timezone@^0.5.23:
version "0.5.23"
resolved "https://registry.yarnpkg.com/moment-timezone/-/moment-timezone-0.5.23.tgz#7cbb00db2c14c71b19303cb47b0fb0a6d8651463"
dependencies:
moment ">= 2.9.0"

"moment@>= 2.9.0":
version "2.24.0"
resolved "https://registry.yarnpkg.com/moment/-/moment-2.24.0.tgz#0d055d53f5052aa653c9f6eb68bb5d12bf5c2b5b"

mri@^1.1.4:
version "1.1.4"
resolved "https://registry.yarnpkg.com/mri/-/mri-1.1.4.tgz#7cb1dd1b9b40905f1fac053abe25b6720f44744a"
Expand All @@ -749,10 +759,11 @@ nice-try@^1.0.4:
version "1.0.5"
resolved "https://registry.yarnpkg.com/nice-try/-/nice-try-1.0.5.tgz#a3378a7696ce7d223e88fc9b764bd7ef1089e366"

node-ical@^0.9.0:
version "0.9.1"
resolved "https://registry.yarnpkg.com/node-ical/-/node-ical-0.9.1.tgz#abf1e5e65bb235fb035a53cae648a20542864279"
node-ical@^0.9.2:
version "0.9.2"
resolved "https://registry.yarnpkg.com/node-ical/-/node-ical-0.9.2.tgz#f5a328e96290863059811a999685d4cc2901908f"
dependencies:
moment-timezone "^0.5.23"
request "^2.88.0"
rrule "^2.5.6"
uuid "^3.3.2"
Expand Down

0 comments on commit 22b5bf3

Please sign in to comment.