wuffle 0.63.0 → 0.63.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.
|
@@ -134,12 +134,11 @@ export default function AuthRoutes(logger, router, securityContext) {
|
|
|
134
134
|
|
|
135
135
|
const {
|
|
136
136
|
access_token
|
|
137
|
-
} = await fetch(
|
|
137
|
+
} = await fetch(`https://github.com/login/oauth/access_token?${params.toString()}`, {
|
|
138
138
|
headers: {
|
|
139
139
|
'Accept': 'application/json'
|
|
140
140
|
},
|
|
141
|
-
method: 'POST'
|
|
142
|
-
body: params
|
|
141
|
+
method: 'POST'
|
|
143
142
|
}).then(res => {
|
|
144
143
|
|
|
145
144
|
if (res.status >= 400) {
|
|
@@ -171,7 +171,7 @@ We automatically synchronize all repositories you granted us access to via the G
|
|
|
171
171
|
response => response.data.filter(issue => !('pull_request' in issue))
|
|
172
172
|
),
|
|
173
173
|
|
|
174
|
-
// open pulls
|
|
174
|
+
// open pulls, all
|
|
175
175
|
octokit.paginate(
|
|
176
176
|
octokit.pulls.list,
|
|
177
177
|
{
|
|
@@ -324,12 +324,23 @@ We automatically synchronize all repositories you granted us access to via the G
|
|
|
324
324
|
let expired = false;
|
|
325
325
|
let removed = false;
|
|
326
326
|
|
|
327
|
+
// if an open issue or pull request links to
|
|
328
|
+
// a non-existing repository, then it must have been
|
|
329
|
+
// removed
|
|
327
330
|
if (!repositories[issue.repository.id]) {
|
|
328
331
|
log.debug({ issue: key }, 'cleanup -> repository removed');
|
|
329
332
|
|
|
330
333
|
removed = true;
|
|
331
334
|
}
|
|
332
335
|
|
|
336
|
+
// if an open pull request was not found (we always
|
|
337
|
+
// fetch all), then it must have been deleted
|
|
338
|
+
if (issue.pull_request && issue.state === 'open') {
|
|
339
|
+
log.debug({ issue: key }, 'cleanup -> pull request deleted');
|
|
340
|
+
|
|
341
|
+
removed = true;
|
|
342
|
+
}
|
|
343
|
+
|
|
333
344
|
const updatedTime = new Date(updated_at).getTime();
|
|
334
345
|
|
|
335
346
|
if (updatedTime < expiryTime) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wuffle",
|
|
3
|
-
"version": "0.63.
|
|
3
|
+
"version": "0.63.1",
|
|
4
4
|
"description": "A multi-repository task board for GitHub issues",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Nico Rehwaldt",
|
|
@@ -45,32 +45,32 @@
|
|
|
45
45
|
"@aws-sdk/client-s3": "^3.525.0",
|
|
46
46
|
"async-didi": "^0.3.1",
|
|
47
47
|
"body-parser": "^1.20.0",
|
|
48
|
-
"compression": "^1.7.
|
|
49
|
-
"express-session": "^1.18.
|
|
48
|
+
"compression": "^1.7.5",
|
|
49
|
+
"express-session": "^1.18.1",
|
|
50
50
|
"fake-tag": "^5.0.0",
|
|
51
51
|
"memorystore": "^1.6.7",
|
|
52
52
|
"min-dash": "^4.1.1",
|
|
53
53
|
"mkdirp": "^3.0.1",
|
|
54
54
|
"p-defer": "^4.0.0",
|
|
55
55
|
"prexit": "^2.2.0",
|
|
56
|
-
"probot": "^13.0
|
|
57
|
-
"smee-client": "^2.0.
|
|
56
|
+
"probot": "^13.3.0",
|
|
57
|
+
"smee-client": "^2.0.4"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"@graphql-eslint/eslint-plugin": "^3.20.1",
|
|
61
61
|
"@octokit/graphql-schema": "^15.0.0",
|
|
62
62
|
"@types/compression": "^1.7.2",
|
|
63
|
-
"@types/express-session": "^1.
|
|
64
|
-
"@types/mocha": "^10.0.
|
|
65
|
-
"chai": "^4",
|
|
63
|
+
"@types/express-session": "^1.18.0",
|
|
64
|
+
"@types/mocha": "^10.0.9",
|
|
65
|
+
"chai": "^4.5.0",
|
|
66
66
|
"graphql": "^16.6.0",
|
|
67
|
-
"mocha": "^10.
|
|
68
|
-
"nock": "^13.5.
|
|
69
|
-
"nodemon": "^3.1.
|
|
70
|
-
"npm-run-all2": "^
|
|
71
|
-
"sinon": "^
|
|
67
|
+
"mocha": "^10.8.2",
|
|
68
|
+
"nock": "^13.5.6",
|
|
69
|
+
"nodemon": "^3.1.7",
|
|
70
|
+
"npm-run-all2": "^7.0.1",
|
|
71
|
+
"sinon": "^18.0.1",
|
|
72
72
|
"sinon-chai": "^3.7.0",
|
|
73
|
-
"typescript": "^5.
|
|
73
|
+
"typescript": "^5.6.3"
|
|
74
74
|
},
|
|
75
75
|
"engines": {
|
|
76
76
|
"node": ">= 18"
|
|
@@ -83,5 +83,5 @@
|
|
|
83
83
|
"index.js",
|
|
84
84
|
"wuffle.config.example.js"
|
|
85
85
|
],
|
|
86
|
-
"gitHead": "
|
|
86
|
+
"gitHead": "2e2bafe82284043f5458ff4b0756257272e5dd58"
|
|
87
87
|
}
|