Commit 9f41a9e
authored
fix(jargons-editor): wrong pending contribution stats computation (#57)
This Pull request fixes the issue where all Pull Requests are considered
in the computation of pending word contribution; this was because of a
missing imperative labels i.e. `📖 new word` and `📖 edit word` which
should've been used to within the search request filter to narrow down
list of PRs returns by checking for the presence of either of both label
in opened pull requests on the jargons.dev repo.
### Changes Made
- Added missing labels `label:":book: edit word",":book: new word"` to
the `pendingType` pull search as filter that check for the presence of
either label
- Extracted `buildStatsUrl` to utils from `doContributionStats` action
- Added the same missing labels `label:":book: edit word",":book: new
word"` to the `buildStatsUrl` execution queryString param for the
computation of `totalWords` stats url
### Screencast
https://github.com/babblebey/jargons.dev/assets/25631971/1db9a614-8432-466b-a234-44693b2253d5
📖1 parent 3298a9a commit 9f41a9e
3 files changed
Lines changed: 17 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
33 | | - | |
| 34 | + | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
| |||
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | 51 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
70 | 80 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
17 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
18 | 22 | | |
19 | 23 | | |
20 | 24 | | |
| |||
0 commit comments