File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 7
7
</div >
8
8
</div >
9
9
</div >
10
-
11
10
</template >
12
11
13
12
<script >
@@ -21,18 +20,20 @@ export default {
21
20
},
22
21
async mounted () {
23
22
await fetch (
24
- ` https://api.github.com/repos/thomasbnt/awesome-web-monetization/contributors?per_page=15 ` , {
23
+ ` https://api.github.com/repos/thomasbnt/awesome-web-monetization/contributors?per_page=30 ` , {
25
24
headers: {
26
25
' accept' : ' application/vnd.github+json' ,
27
26
' content-type' : ' application/json' ,
28
27
' Authorization' : import .meta.env.GITHUB_TOKEN
29
28
}
30
29
})
31
30
.then (async res => {
32
- this .gitContributors = await res .json ()
31
+ const contributors = await res .json ()
32
+ // if the contributor is a bot from type: "Bot", remove it from the list
33
+ this .gitContributors = contributors .filter (contributor => contributor .type !== ' Bot' )
34
+ // And remove "thomasbnt" from the list
35
+ this .gitContributors = this .gitContributors .filter (contributor => contributor .login !== ' restyled-commits' )
33
36
this .totalContrib = this .gitContributors .length
34
- console .log ({ totalContrib: this .totalContrib })
35
- console .log ({ x: this .gitContributors })
36
37
})
37
38
.catch (err => console .log (err))
38
39
}
You can’t perform that action at this time.
0 commit comments