wuffle 0.65.0 → 0.66.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -104,7 +104,7 @@ We automatically synchronize all repositories you granted us access to via the G
104
104
  const octokit = await githubClient.getOrgScoped(owner);
105
105
 
106
106
  const repositories = await octokit.paginate(
107
- octokit.apps.listReposAccessibleToInstallation,
107
+ octokit.rest.apps.listReposAccessibleToInstallation,
108
108
  {
109
109
  per_page: 100
110
110
  }
@@ -152,7 +152,7 @@ We automatically synchronize all repositories you granted us access to via the G
152
152
 
153
153
  // open issues
154
154
  octokit.paginate(
155
- octokit.issues.listForRepo,
155
+ octokit.rest.issues.listForRepo,
156
156
  {
157
157
  ...params,
158
158
  state: 'open'
@@ -162,7 +162,7 @@ We automatically synchronize all repositories you granted us access to via the G
162
162
 
163
163
  // closed issues, updated last 30 days
164
164
  octokit.paginate(
165
- octokit.issues.listForRepo,
165
+ octokit.rest.issues.listForRepo,
166
166
  {
167
167
  ...params,
168
168
  state: 'closed',
@@ -173,7 +173,7 @@ We automatically synchronize all repositories you granted us access to via the G
173
173
 
174
174
  // open pulls, all
175
175
  octokit.paginate(
176
- octokit.pulls.list,
176
+ octokit.rest.pulls.list,
177
177
  {
178
178
  ...params,
179
179
  state: 'open'
@@ -182,7 +182,7 @@ We automatically synchronize all repositories you granted us access to via the G
182
182
 
183
183
  // closed pulls, updated last 30 days
184
184
  octokit.paginate(
185
- octokit.pulls.list,
185
+ octokit.rest.pulls.list,
186
186
  {
187
187
  ...params,
188
188
  state: 'closed'
@@ -245,7 +245,7 @@ export default function GithubApp(config, app, logger, injector) {
245
245
  function fetchInstallations() {
246
246
  return /** @type Promise<Array<Installation>> */ (getAppScopedClient().then(
247
247
  octokit => octokit.paginate(
248
- octokit.apps.listInstallations,
248
+ octokit.rest.apps.listInstallations,
249
249
  { per_page: 100 }
250
250
  )
251
251
  ));
@@ -44,7 +44,7 @@ export default function GithubChecks(webhookEvents, events, githubClient, store)
44
44
 
45
45
  const {
46
46
  data: result
47
- } = await github.checks.listForRef({
47
+ } = await github.rest.checks.listForRef({
48
48
  owner,
49
49
  repo,
50
50
  ref: sha,
@@ -1,4 +1,4 @@
1
- import { ProbotOctokit } from 'probot/lib/octokit/probot-octokit.js';
1
+ import { ProbotOctokit } from 'probot';
2
2
  import { Cache } from '../../util/index.js';
3
3
 
4
4
 
@@ -77,7 +77,7 @@ export default function GithubIssues(config, logger, columns) {
77
77
 
78
78
  const params = context.repo({ issue_number });
79
79
 
80
- return context.octokit.issues.get(params)
80
+ return context.octokit.rest.issues.get(params)
81
81
  .then(response => response.data)
82
82
  .catch(err => {
83
83
 
@@ -156,7 +156,7 @@ export default function GithubIssues(config, logger, columns) {
156
156
  log.info(addLabelParams, 'add labels');
157
157
 
158
158
  invocations.push(
159
- context.octokit.issues.addLabels(addLabelParams)
159
+ context.octokit.rest.issues.addLabels(addLabelParams)
160
160
  );
161
161
  }
162
162
 
@@ -170,7 +170,7 @@ export default function GithubIssues(config, logger, columns) {
170
170
  log.info(params, 'update');
171
171
 
172
172
  invocations.push(
173
- context.octokit.issues.update(params)
173
+ context.octokit.rest.issues.update(params)
174
174
  );
175
175
  }
176
176
 
@@ -187,7 +187,7 @@ export default function GithubIssues(config, logger, columns) {
187
187
  }, 'remove label');
188
188
 
189
189
  invocations.push(
190
- context.octokit.issues.removeLabel(removeLabelParams).catch(err => {
190
+ context.octokit.rest.issues.removeLabel(removeLabelParams).catch(err => {
191
191
 
192
192
  // gracefully handle non-existing label
193
193
  // may have been already removed by other
@@ -39,7 +39,7 @@ export default function GithubReviews(webhookEvents, events, githubClient, store
39
39
 
40
40
  const {
41
41
  data: reviews
42
- } = await github.pulls.listReviews({
42
+ } = await github.rest.pulls.listReviews({
43
43
  owner,
44
44
  repo,
45
45
  pull_number: issue.number
@@ -46,7 +46,7 @@ export default function GithubStates(webhookEvents, events, githubClient, store)
46
46
 
47
47
  const {
48
48
  data: response
49
- } = await github.repos.getCombinedStatusForRef({
49
+ } = await github.rest.repos.getCombinedStatusForRef({
50
50
  owner,
51
51
  repo,
52
52
  ref: sha
@@ -17,7 +17,7 @@ export default function SecurityContext(githubClient) {
17
17
 
18
18
  const {
19
19
  data: user
20
- } = await github.users.getAuthenticated();
20
+ } = await github.rest.users.getAuthenticated();
21
21
 
22
22
  return user;
23
23
  };
@@ -46,7 +46,7 @@ export default function UserAccess(
46
46
  const octokit = await githubClient.getUserScoped(user);
47
47
 
48
48
  return octokit.paginate(
49
- octokit.apps.listInstallationsForAuthenticatedUser
49
+ octokit.rest.apps.listInstallationsForAuthenticatedUser
50
50
  );
51
51
  }
52
52
 
@@ -65,7 +65,7 @@ export default function UserAccess(
65
65
  const octokit = await githubClient.getUserScoped(user);
66
66
 
67
67
  return octokit.paginate(
68
- octokit.apps.listInstallationReposForAuthenticatedUser,
68
+ octokit.rest.apps.listInstallationReposForAuthenticatedUser,
69
69
  {
70
70
  installation_id: installation.id,
71
71
  per_page: 100
@@ -184,7 +184,7 @@ export default function UserAccess(
184
184
 
185
185
  return githubClient.getOrgScoped(owner)
186
186
  .then(octokit => {
187
- return octokit.repos.getCollaboratorPermissionLevel({
187
+ return octokit.rest.repos.getCollaboratorPermissionLevel({
188
188
  repo,
189
189
  owner,
190
190
  username: login
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wuffle",
3
- "version": "0.65.0",
3
+ "version": "0.66.1",
4
4
  "description": "A multi-repository task board for GitHub issues",
5
5
  "author": {
6
6
  "name": "Nico Rehwaldt",
@@ -45,35 +45,35 @@
45
45
  "@aws-sdk/client-s3": "^3.525.0",
46
46
  "async-didi": "^0.3.1",
47
47
  "body-parser": "^2.0.0",
48
- "compression": "^1.8.0",
49
- "express-session": "^1.18.1",
48
+ "compression": "^1.8.1",
49
+ "express-session": "^1.18.2",
50
50
  "fake-tag": "^5.0.0",
51
51
  "memorystore": "^1.6.7",
52
- "min-dash": "^4.2.2",
52
+ "min-dash": "^4.2.3",
53
53
  "mkdirp": "^3.0.1",
54
54
  "p-defer": "^4.0.1",
55
55
  "prexit": "^2.3.0",
56
56
  "probot": "^13.4.5",
57
- "smee-client": "^3.1.1"
57
+ "smee-client": "^4.0.0"
58
58
  },
59
59
  "devDependencies": {
60
60
  "@graphql-eslint/eslint-plugin": "^4.4.0",
61
61
  "@octokit/graphql-schema": "^15.25.0",
62
- "@types/compression": "^1.7.2",
63
- "@types/express-session": "^1.18.1",
62
+ "@types/compression": "^1.8.1",
63
+ "@types/express-session": "^1.18.2",
64
64
  "@types/mocha": "^10.0.10",
65
- "chai": "^4.5.0",
65
+ "chai": "^6.0.0",
66
66
  "graphql": "^16.11.0",
67
- "mocha": "^10.8.2",
68
- "nock": "^14.0.4",
69
- "nodemon": "^3.1.9",
70
- "npm-run-all2": "^8.0.1",
71
- "sinon": "^18.0.1",
72
- "sinon-chai": "^3.7.0",
67
+ "mocha": "^11.0.0",
68
+ "nock": "^14.0.10",
69
+ "nodemon": "^3.1.10",
70
+ "npm-run-all2": "^8.0.4",
71
+ "sinon": "^21.0.0",
72
+ "sinon-chai": "^4.0.0",
73
73
  "typescript": "^5.7.2"
74
74
  },
75
75
  "engines": {
76
- "node": ">= 18"
76
+ "node": ">= 20"
77
77
  },
78
78
  "files": [
79
79
  "bin",
@@ -83,5 +83,5 @@
83
83
  "index.js",
84
84
  "wuffle.config.example.js"
85
85
  ],
86
- "gitHead": "7db067f8630f6d93f0e13c3b52795e505c0cf876"
86
+ "gitHead": "4041219897b8a7d238d0d84eb06214bb1ab55d8e"
87
87
  }