Skip to content
New issue

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

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

Already on GitHub? # to your account

Properly check project goals ACL #1909

Merged

Conversation

spastorino
Copy link
Member


Ok(gh_id == GOAL_OWNER_GH_ID)
pub async fn check_project_goal_acl(gh: &GithubClient, gh_id: u64) -> anyhow::Result<bool> {
const GOALS_TEAM: &str = "goals";
Copy link
Member Author

Choose a reason for hiding this comment

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

To be honest, not 100% sure if this is the way we pass team names down to get_team

Copy link
Member Author

Choose a reason for hiding this comment

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

goals show up here https://team-api.infra.rust-lang.org/v1/teams.json with the right group of members, so it should be fine

Copy link
Contributor

@nikomatsakis nikomatsakis left a comment

Choose a reason for hiding this comment

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

LGTM r? @jackh726

@nikomatsakis
Copy link
Contributor

r? @jackh726

@jackh726 jackh726 merged commit 9efcc37 into rust-lang:master Feb 21, 2025
3 checks passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants