We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7560b1d commit 39bcb99Copy full SHA for 39bcb99
2 files changed
index.ts
@@ -83,7 +83,7 @@ const PullGithubMenu = {
83
try {
84
const { tree } = await octokit.getPathTree()
85
const imgList: ImgType[] = tree
86
- .filter(each => /\.(jpg|png)$/.test(each.path))
+ .filter(each => /\.(jpg|png|jpeg|gif)$/.test(each.path))
87
.map(each => {
88
const unzipImg = unzip({
89
f: each.path,
lib/octokit.ts
@@ -156,9 +156,11 @@ export class Octo {
156
}
157
158
let ins: Octo = null
159
-
+let _cacheOption: string = ''
160
export function getIns (config: PluginConfig): Octo {
161
- if (ins) return ins
+ const str = JSON.stringify(config)
162
+ if (ins && _cacheOption === str) return ins
163
+ _cacheOption = str
164
ins = new Octo(config)
165
return ins
166
0 commit comments