Skip to content

Commit

Permalink
fix: query string
Browse files Browse the repository at this point in the history
  • Loading branch information
ourai committed Jul 31, 2024
1 parent 8b0aa2f commit b901ec1
Show file tree
Hide file tree
Showing 2 changed files with 403 additions and 401 deletions.
4 changes: 3 additions & 1 deletion .knosys/scripts/command/pmc/count.js
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,9 @@ function generateRewardTable(rewards) {
let usernameMdStr = `\`${reward.username}\``;

if (reward.merged > 0 || reward.total > 0) {
usernameMdStr = `[${usernameMdStr}](https://github.com/openbuildxyz/Web3-Frontend-Bootcamp/pulls?q=${encodeURIComponent('is:pr+author:' + reward.username + '+is:closed')})`;
const qs = ['is:pr', `author:${reward.username}`, 'is:closed'].map(p => encodeURIComponent(p)).join('+');

usernameMdStr = `[${usernameMdStr}](https://github.com/openbuildxyz/Web3-Frontend-Bootcamp/pulls?q=${qs})`;
}

return `| ${uidx + 1} | ${usernameMdStr} | ${reward.merged} | ${reward.total} |`;
Expand Down
Loading

0 comments on commit b901ec1

Please sign in to comment.