Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update list of sponsors in README #2155

Merged
merged 2 commits into from
Jan 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ For an introduction of what the project aims to achieve, [please check out the w

## Sponsors

Fornjot is supported by [**@MitchellHansen**](https://github.com/MitchellHansen), [**@webtrax-oz**](https://github.com/webtrax-oz), [**@seanjensengrey**](https://github.com/seanjensengrey), [**@reivilibre**](https://github.com/reivilibre), [**@lthiery**](https://github.com/lthiery), [**@ahdinosaur**](https://github.com/ahdinosaur), [**@martindederer**](https://github.com/martindederer), [**@bollian**](https://github.com/bollian), [**@nullstyle**](https://github.com/nullstyle), [**@tachiniererin**](https://github.com/tachiniererin), [**@HalfVoxel**](https://github.com/HalfVoxel), [**@sucaba**](https://github.com/sucaba), [**@Kethku**](https://github.com/Kethku), [**@jessebraham**](https://github.com/jessebraham), [**@MattOslin**](https://github.com/MattOslin), [**@jminer**](https://github.com/jminer), [**@jeevcat**](https://github.com/jeevcat), [**@voxpelli**](https://github.com/voxpelli), [**@U007D**](https://github.com/U007D), [**@guillaumechauvat**](https://github.com/guillaumechauvat), [**@mayfieldiv**](https://github.com/mayfieldiv), [**@bglw**](https://github.com/bglw), [**@hansihe**](https://github.com/hansihe), and [my other awesome sponsors](https://github.com/sponsors/hannobraun). Thank you!
Fornjot is supported by [**@MitchellHansen**](https://github.com/MitchellHansen), [**@webtrax-oz**](https://github.com/webtrax-oz), [**@seanjensengrey**](https://github.com/seanjensengrey), [**@reivilibre**](https://github.com/reivilibre), [**@lthiery**](https://github.com/lthiery), [**@ahdinosaur**](https://github.com/ahdinosaur), [**@martindederer**](https://github.com/martindederer), [**@bollian**](https://github.com/bollian), [**@sucaba**](https://github.com/sucaba), [**@nullstyle**](https://github.com/nullstyle), [**@tachiniererin**](https://github.com/tachiniererin), [**@HalfVoxel**](https://github.com/HalfVoxel), [**@Kethku**](https://github.com/Kethku), [**@jessebraham**](https://github.com/jessebraham), [**@MattOslin**](https://github.com/MattOslin), [**@jminer**](https://github.com/jminer), [**@voxpelli**](https://github.com/voxpelli), [**@U007D**](https://github.com/U007D), [**@guillaumechauvat**](https://github.com/guillaumechauvat), [**@mayfieldiv**](https://github.com/mayfieldiv), [**@bglw**](https://github.com/bglw), [**@hansihe**](https://github.com/hansihe), [**@romixlab**](https://github.com/romixlab), and [my other awesome sponsors](https://github.com/sponsors/hannobraun). Thank you!

**Please consider [supporting me too](https://github.com/sponsors/hannobraun), to help make Fornjot sustainable long-term.**

Expand Down
20 changes: 20 additions & 0 deletions tools/automator/src/sponsors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ impl Sponsors {
... on User {
login
sponsorshipForViewerAsSponsorable {
privacyLevel
createdAt
tier {
monthlyPriceInDollars
Expand All @@ -31,6 +32,7 @@ impl Sponsors {
... on Organization {
login
sponsorshipForViewerAsSponsorable {
privacyLevel
createdAt
tier {
monthlyPriceInDollars
Expand Down Expand Up @@ -63,6 +65,12 @@ impl Sponsors {
.nodes
.into_iter()
.filter_map(|node| {
if let QueryResultSponsorshipPrivacy::Private =
node.sponsorship_for_viewer_as_sponsorable.privacy_level
{
return None;
}

if node
.sponsorship_for_viewer_as_sponsorable
.is_one_time_payment
Expand Down Expand Up @@ -190,6 +198,9 @@ pub struct QueryResultSponsorsNode {

#[derive(Debug, serde::Deserialize)]
pub struct QueryResultSponsorable {
#[serde(rename = "privacyLevel")]
pub privacy_level: QueryResultSponsorshipPrivacy,

#[serde(rename = "createdAt")]
pub created_at: DateTime<Utc>,

Expand All @@ -199,6 +210,15 @@ pub struct QueryResultSponsorable {
pub is_one_time_payment: bool,
}

#[derive(Debug, serde::Deserialize)]
pub enum QueryResultSponsorshipPrivacy {
#[serde(rename = "PUBLIC")]
Public,

#[serde(rename = "PRIVATE")]
Private,
}

#[derive(Debug, serde::Deserialize)]
pub struct QueryResultSponsorableTier {
#[serde(rename = "monthlyPriceInDollars")]
Expand Down