Skip to content

Commit

Permalink
feat: update dependencies
Browse files Browse the repository at this point in the history
BREAKING CHANGE: probot < 9.2.13 no longer supported.
  • Loading branch information
dessant committed Jun 10, 2019
1 parent eb3d123 commit fccb39c
Show file tree
Hide file tree
Showing 5 changed files with 2,002 additions and 1,907 deletions.
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
8.12.0
10.16.0
3 changes: 1 addition & 2 deletions docs/deploy.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@ This app requires these **Permissions & events** for the GitHub App:

- Issues - **Read & Write**
- Organization projects - **Read-only**
- [x] Check the box for **Project card for organization projects** events
- Repository metadata - **Read-only**
- Repository projects - **Read-only**
- [x] Check the box for **Project card for repository projects** events
- [x] Check the box for **Project card** events
- Single File - **Read-only**
- Path: `.github/issue-states.yml`
20 changes: 10 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,27 +13,27 @@
"scripts": {
"start": "probot run ./src/index.js",
"watch": "nodemon --exec 'yarn run start'",
"update": "ncu --upgrade --upgradeAll && yarn",
"update": "ncu --upgrade && yarn",
"push": "git push --follow-tags origin master",
"release": "standard-version && yarn run push"
"release": "standard-version"
},
"files": [
"docs",
"src"
],
"dependencies": {
"joi": "^14.3.1",
"probot": "^7.5.0",
"probot-config": "dessant/probot-config#8097468e816af64a947cca23daaa33fbb0a25d70",
"probot-messages": "^0.1.2",
"probot": "^9.2.13",
"probot-config": "^1.0.1",
"probot-messages": "^1.0.1",
"uuid": "^3.3.2"
},
"devDependencies": {
"nodemon": "1.18.9",
"npm-check-updates": "^2.15.0",
"prettier": "^1.16.0",
"smee-client": "^1.0.2",
"standard-version": "^4.4.0"
"nodemon": "1.19.1",
"npm-check-updates": "^3.1.10",
"prettier": "^1.18.2",
"smee-client": "^1.1.0",
"standard-version": "^6.0.1"
},
"engines": {
"node": ">=8.12.0"
Expand Down
10 changes: 5 additions & 5 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const schema = require('./schema');

module.exports = async robot => {
const github = await robot.auth();
const appName = (await github.apps.get({})).data.name;
const appName = (await github.apps.getAuthenticated()).data.name;

robot.on(
['project_card.created', 'project_card.converted', 'project_card.moved'],
Expand Down Expand Up @@ -44,15 +44,15 @@ module.exports = async robot => {
if (!match) {
return;
}
const [owner, repo, number] = match.slice(1);
const issue = {owner, repo, number};
const [owner, repo, issue_number] = match.slice(1);
const issue = {owner, repo, issue_number};
const config = await getConfig(context, log, {owner, repo});
if (!config) {
return;
}
const {openIssueColumns, closedIssueColumns, perform} = config;

const {data: columnData} = await github.projects.getProjectColumn({
const {data: columnData} = await github.projects.getColumn({
column_id: payload.project_card.column_id
});
const columnName = columnData.name;
Expand All @@ -77,7 +77,7 @@ module.exports = async robot => {
newState === 'open' ? 'Opening issue' : 'Closing issue'
);
if (perform) {
await github.issues.edit({...issue, state: newState});
await github.issues.update({...issue, state: newState});
}

storeCard(cardId);
Expand Down
Loading

0 comments on commit fccb39c

Please sign in to comment.