Skip to content

Commit 4d4e744

Browse files
committed
Some stuff
1 parent bb05c70 commit 4d4e744

File tree

6 files changed

+25
-8
lines changed

6 files changed

+25
-8
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# @changesets/bot
22

3+
## 1.2.0
4+
5+
### Minor Changes
6+
7+
- Add a link to create a changeset from the comment
8+
- Optimise network calls
9+
310
## 1.1.5
411

512
### Patch Changes

index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ module.exports = app => {
6565

6666
app.on(["pull_request.opened", "pull_request.synchronize"], async context => {
6767
try {
68+
console.log(process.env.NOW_GITHUB_COMMIT_REF);
6869
let number = context.payload.number;
6970

7071
let repo = {

now.js

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1-
var { serverless } = require("@chadfawcett/probot-serverless-now");
1+
// inlined from https://unpkg.com/@chadfawcett/[email protected]/index.js
2+
3+
const { createProbot } = require("probot");
4+
const { findPrivateKey } = require("probot/lib/private-key");
25
const appFn = require("./");
3-
module.exports = serverless(appFn);
6+
7+
const options = {
8+
id: process.env.APP_ID,
9+
secret: process.env.WEBHOOK_SECRET,
10+
cert: findPrivateKey()
11+
};
12+
13+
const probot = createProbot(options);
14+
15+
probot.load(appFn);
16+
17+
module.exports = probot.server;

now.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"version": 2,
3+
"scope": "changesets",
34
"env": {
45
"APP_ID": "@app-id",
56
"WEBHOOK_SECRET": "@webhook-secret",

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
"repository": "https://github.com/changesets/bot",
77
"homepage": "https://github.com/apps/changeset-bot",
88
"dependencies": {
9-
"@chadfawcett/probot-serverless-now": "^1.0.0",
109
"human-id": "^1.0.2",
1110
"probot": "^9.5.0"
1211
},

yarn.lock

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -130,11 +130,6 @@
130130
lodash "^4.17.13"
131131
to-fast-properties "^2.0.0"
132132

133-
"@chadfawcett/probot-serverless-now@^1.0.0":
134-
version "1.0.0"
135-
resolved "https://registry.yarnpkg.com/@chadfawcett/probot-serverless-now/-/probot-serverless-now-1.0.0.tgz#5044ad72343cf8a946a8415596526106ce10b872"
136-
integrity sha512-n69PzPtDIyG124x1IVpWOBay3YN3xz3JbnDg8g/m8yNet7eNXgYwbvEe8FUdc9SOKd/0jyW4sj5ikGIyyuaCqw==
137-
138133
"@cnakazawa/watch@^1.0.3":
139134
version "1.0.3"
140135
resolved "https://registry.yarnpkg.com/@cnakazawa/watch/-/watch-1.0.3.tgz#099139eaec7ebf07a27c1786a3ff64f39464d2ef"

0 commit comments

Comments
 (0)