Comparing version 0.7.1 to 0.7.2
@@ -23,3 +23,3 @@ #!/usr/bin/env node | ||
console.warn( | ||
`DEPRECATION: The --integration flag and APP_ID environment variable are\n` + | ||
`DEPRECATION: The --integration flag and INTEGRATION_ID environment variable are\n` + | ||
`deprecated. Use the --app flag or set APP_ID environment variable instead.` | ||
@@ -26,0 +26,0 @@ ); |
# Changelog | ||
## 0.7.1 | ||
## 0.7.1 (2017-06-16) | ||
Fixes: | ||
- Fix error introduced in 0.7.0 that was preventing events from being received. | ||
- Fix error introduced in 0.7.0 that was preventing events from being received. ([#161](https://github.com/probot/probot/pull/161)) | ||
[View full changelog](https://github.com/probot/probot/compare/v0.7.0...v0.7.1) | ||
## 0.7.0 | ||
## 0.7.0 (2017-06-15) | ||
@@ -13,0 +13,0 @@ Breaking Changes: |
@@ -86,6 +86,6 @@ # Plugins | ||
and run your bot from your plugin's directory, replacing `9999` and `private-key.pem` below with the ID and path to the private key of your app. | ||
and run your bot from your plugin's directory, replacing `APP_ID` and `private-key.pem` below with your App's ID and the path to the private key of your app. | ||
``` | ||
$ probot run -i 9999 -P private-key.pem ./index.js | ||
$ probot run -a APP_ID -P private-key.pem ./index.js | ||
Listening on http://localhost:3000 | ||
@@ -92,0 +92,0 @@ ``` |
@@ -5,3 +5,3 @@ const bunyan = require('bunyan'); | ||
const cacheManager = require('cache-manager'); | ||
const createIntegration = require('github-integration'); | ||
const createApp = require('github-app'); | ||
const createWebhook = require('github-webhook-handler'); | ||
@@ -29,3 +29,3 @@ const Raven = require('raven'); | ||
const webhook = createWebhook({path: '/', secret: options.secret}); | ||
const integration = createIntegration({ | ||
const app = createApp({ | ||
id: options.id, | ||
@@ -36,3 +36,3 @@ cert: options.cert, | ||
const server = createServer(webhook); | ||
const robot = createRobot({integration, webhook, cache, logger}); | ||
const robot = createRobot({app, webhook, cache, logger}); | ||
@@ -39,0 +39,0 @@ // Log all webhook errors |
@@ -11,4 +11,4 @@ const GitHubApi = require('github'); | ||
class Robot { | ||
constructor({integration, webhook, cache, logger}) { | ||
this.integration = integration; | ||
constructor({app, webhook, cache, logger}) { | ||
this.app = app; | ||
this.webhook = webhook; | ||
@@ -89,5 +89,5 @@ this.cache = cache; | ||
* `context.payload.installation.id`. If called without this parameter, the | ||
* client wil authenticate [as the integration](https://developer.github.com/apps/authentication/#as-an-integration) | ||
* client wil authenticate [as the app](https://developer.github.com/apps/building-integrations/setting-up-and-registering-github-apps/about-authentication-options-for-github-apps/#authenticating-as-a-github-app) | ||
* instead of as a specific installation, which means it can only be used for | ||
* [integration APIs](https://developer.github.com/v3/integrations/). | ||
* [app APIs](https://developer.github.com/v3/apps/). | ||
* | ||
@@ -101,5 +101,5 @@ * @returns {Promise<github>} - An authenticated GitHub API client | ||
if (id) { | ||
const res = await this.cache.wrap(`integration:${id}:token`, () => { | ||
const res = await this.cache.wrap(`app:${id}:token`, () => { | ||
this.log.trace(`creating token for installation ${id}`); | ||
return this.integration.createToken(id); | ||
return this.app.createToken(id); | ||
}, {ttl: 60 * 60}); | ||
@@ -110,3 +110,3 @@ | ||
} else { | ||
github = await this.integration.asIntegration(); | ||
github = await this.app.asApp(); | ||
} | ||
@@ -113,0 +113,0 @@ |
{ | ||
"name": "probot", | ||
"version": "0.7.1", | ||
"version": "0.7.2", | ||
"description": "a trainable robot that responds to activity on GitHub", | ||
@@ -18,3 +18,3 @@ "repository": "https://github.com/probot/probot", | ||
"dependencies": { | ||
"bottleneck": "^1.15.1", | ||
"bottleneck": "^1.16.0", | ||
"bunyan": "^1.8.5", | ||
@@ -24,10 +24,10 @@ "bunyan-format": "^0.2.1", | ||
"cache-manager": "^2.4.0", | ||
"commander": "^2.9.0", | ||
"commander": "^2.10.0", | ||
"dotenv": "~4.0.0", | ||
"github": "^9.2.0", | ||
"github-integration": "^2.0.1", | ||
"github-app": "^3.0.0", | ||
"github-webhook-handler": "^0.6.0", | ||
"load-plugins": "^2.1.2", | ||
"pkg-conf": "^2.0.0", | ||
"raven": "^2.0.0", | ||
"raven": "^2.1.0", | ||
"resolve": "^1.3.2", | ||
@@ -34,0 +34,0 @@ "semver": "^5.3.0" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
73208
+ Addedgithub-app@^3.0.0
+ Addedgithub@10.1.0(transitive)
+ Addedgithub-app@3.2.0(transitive)
- Removedgithub-integration@^2.0.1
- Removedgithub-integration@2.0.1(transitive)
Updatedbottleneck@^1.16.0
Updatedcommander@^2.10.0
Updatedraven@^2.1.0