Skip to content

Integrate with the team repo#267

Merged
Centril merged 7 commits intorust-lang:masterfrom
emilyalbini:team-repo
Mar 31, 2019
Merged

Integrate with the team repo#267
Centril merged 7 commits intorust-lang:masterfrom
emilyalbini:team-repo

Conversation

@emilyalbini
Copy link
Copy Markdown
Member

Comment thread src/scraper.rs Outdated
Comment thread src/teams.rs Outdated
Comment thread src/teams.rs Outdated
Comment thread src/github/nag.rs
Comment thread src/teams.rs Outdated
Comment thread src/teams.rs
Comment thread src/teams.rs
let de: ToDeserialize = ::reqwest::get(url)?
.error_for_status()?
.json()?;
self.cached_teams = de.teams;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note to self: rust-lang/rfcs#2522 would have been handy here.

Comment thread src/teams.rs Outdated
Comment thread src/teams.rs Outdated
Comment thread src/teams.rs Outdated
@emilyalbini
Copy link
Copy Markdown
Member Author

Addressed all review comments, and fixed CI failing.

Copy link
Copy Markdown
Contributor

@Centril Centril left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good; just a nit :)

Comment thread src/scraper.rs Outdated
Comment thread src/teams.rs Outdated
Copy link
Copy Markdown
Contributor

@Centril Centril left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Comment thread src/scraper.rs
thread::sleep(sleep_duration);
}
})
pub fn start_scraping() -> Option<JoinHandle<()>> {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note to self (i.e. please ignore for PR review purposes), cc Centril/rfcs#17.
This would have been so nice with:

pub fn start_scraping() -> Option<JoinHandle<()>> = try {
    spawn_thread("GitHub scraper", CONFIG.github_interval_mins?, || try {
        scrape_github(github::most_recent_update()?);
    })
};

@Centril Centril merged commit 586e101 into rust-lang:master Mar 31, 2019
@emilyalbini emilyalbini deleted the team-repo branch March 31, 2019 16:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants