Skip to content

Commit

Permalink
blog: This month in Servo (December 2024)
Browse files Browse the repository at this point in the history
  • Loading branch information
delan committed Jan 6, 2025
1 parent 4904114 commit a4bc75a
Show file tree
Hide file tree
Showing 3 changed files with 364 additions and 9 deletions.
15 changes: 9 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,16 +108,16 @@ To avoid false positives, be sure to step through each replacement rather than u

OpenCollective:

- Go to <https://opencollective.com/dashboard/servo/incoming-contributions?limit=1000&status=ACTIVE&status=ERROR&type=RECURRING>
- Go to <https://opencollective.com/dashboard/servo/incoming-contributions?limit=1000&status=ACTIVE&status=ERROR&frequency=MONTHLY&frequency=YEARLY>
- Make sure there is only one page of results; if there are more pages, we’ll need to update the process like we did for GitHub
- Make sure there is a column with “month” or “year”, because some table filters hide that column
- Make sure there is a column with “monthly” or “yearly”
- Run this code in devtools:
```js
$$("table tbody tr")
.map(tr => [...tr.cells][2].innerText.match(/[$](\S+)\s*USD\s*[/]\s*(\S+)/))
.map(match => match && [+match[1].replace(/[.,]/g, ""), match[2]])
.map(([cents, period]) => cents / {month:1,year:12}[period])
.reduce((result, cents) => result + cents, 0)
.map(tr => [...tr.cells].slice(2,4).map(td => td.innerText))
.map(([amount, period]) => [amount.match(/[$](\S+)/)[1].replace(/[.,]/g, ""), period])
.map(([cents, period]) => cents / {monthly:1,yearly:12}[period])
.reduce((result, cents) => result + cents, 0)
```
- The result is USD cents/month

Expand Down Expand Up @@ -152,7 +152,10 @@ LFX:

thanks.dev:

- Go to <https://thanks.dev/>
- Click **Sign in with GitHub** and follow the instructions (if any)
- Go to <https://thanks.dev/dashboard>
- Click **For maintainers**
- The number of donors is in “You currently have X donors.”

## Triaging commits in nightlies for monthly updates
Expand Down
Loading

0 comments on commit a4bc75a

Please sign in to comment.