Skip to content

Commit cc91dcc

Browse files
authored
chore: upgrade circle-github-bot, use new env var name (#3608)
1 parent fc06b4d commit cc91dcc

5 files changed

Lines changed: 19 additions & 19 deletions

File tree

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
at: '.'
6161
- restore_cache: *restore_cache
6262
- run: yarn start:update-quicktests
63-
- run: ./scripts/demo.js || true
63+
- run: ./scripts/submit-comment-with-artifact-links.js || true
6464
- store_artifacts:
6565
path: plottable.css
6666
- store_artifacts:

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"@types/sinon": "^1.16.36",
3939
"awesome-typescript-loader": "^3.4.1",
4040
"chai": "2.0.0",
41-
"circle-github-bot": "1.0.0",
41+
"circle-github-bot": "^2.1.0",
4242
"grunt": "~0.4.5",
4343
"grunt-blanket-mocha": "^1.0.0",
4444
"grunt-bump": "0.7.0",

scripts/demo.js

Lines changed: 0 additions & 13 deletions
This file was deleted.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/usr/bin/env node
2+
3+
const bot = require("circle-github-bot").create();
4+
5+
demos = [
6+
bot.artifactLink("quicktests/index.html", "quicktests"),
7+
bot.artifactLink("quicktests/fiddle.html", "fiddle"),
8+
];
9+
10+
bot.comment(process.env.GITHUB_API_TOKEN, `
11+
<h3>${bot.commitMessage()}</h3>
12+
Demo: <strong>${demos.join(" | ")}</strong>
13+
`);

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1156,10 +1156,10 @@ cipher-base@^1.0.0, cipher-base@^1.0.1:
11561156
dependencies:
11571157
inherits "^2.0.1"
11581158

1159-
circle-github-bot@1.0.0:
1160-
version "1.0.0"
1161-
resolved "https://registry.yarnpkg.com/circle-github-bot/-/circle-github-bot-1.0.0.tgz#ed86b3a8003c3f9a4ef0e7c4311f6c4e58fdafdb"
1162-
integrity sha512-O03FawVUz4px4Pky+lcUbLv1PFkH0LLJMMzyj2/8oQ9IF2XrktYj9jM+R5lK/2nZJXj7A+DSrv5cakr3UlOaDA==
1159+
circle-github-bot@^2.1.0:
1160+
version "2.1.0"
1161+
resolved "https://registry.yarnpkg.com/circle-github-bot/-/circle-github-bot-2.1.0.tgz#4500464dd8ca60a5aef1162ff5a18b931c46f78e"
1162+
integrity sha512-2tx2KrgbVQ+TtKML+j7S5A4yYmkoHdpWo49aOOXnyiqpqSEIOVupK+KBaHO4H09BPr/L5efXuPHDnDbVlfCZlg==
11631163

11641164
circular-json@^0.3.1:
11651165
version "0.3.1"

0 commit comments

Comments
 (0)