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

BUG: Tip bot does not correctly use approvers list #169

Closed
shawntabrizi opened this issue Sep 2, 2024 · 7 comments · Fixed by #177
Closed

BUG: Tip bot does not correctly use approvers list #169

shawntabrizi opened this issue Sep 2, 2024 · 7 comments · Fixed by #177
Assignees

Comments

@shawntabrizi
Copy link
Member

Karim is part of the approvers list.

image

But the bot rejects his approval.

image

Is it potentially a problem with using the tip bot in a different org than paritytech?

@Bullrich
Copy link
Contributor

Bullrich commented Sep 2, 2024

First suggestion I would recommend is to remove him from the group and then add him again.

We faced a similar problem in the past where, for some unknown reason, a user appeared as a team member in the UI but not in the API.

@mordamax
Copy link
Contributor

mordamax commented Sep 2, 2024

@KarimJedda please add a link
afair it was not a paritytech org, that could be a reason i guess

@shawntabrizi
Copy link
Member Author

@mordamax here is the link to where this happened: polkadot-developers/bounties#1

@mutantcornholio mutantcornholio self-assigned this Sep 3, 2024
@mutantcornholio
Copy link
Contributor

mutantcornholio commented Sep 3, 2024

Screen Shot 2024-09-03 at 10 53 36

According to GitHub, at the time of the comment, @KarimJedda still wasn't a member of team

@shawntabrizi
Copy link
Member Author

Yo @mutantcornholio, the issue persists, and its not cool to just close the issue without solving the problems being reported.

image

@rzadp
Copy link
Contributor

rzadp commented Sep 13, 2024

I believe that 404 is actually a 403 - no access to read that info from a different org.

We should either:

a) Create a separate tip-bot-approvers per each org.
b) Provide the bot deployment with some additional token with read access to paritytech's org teams.

@mutantcornholio
Copy link
Contributor

mutantcornholio commented Sep 13, 2024

I think we're just using the wrong token here

We're handling tip request with an installation octokitInstance that we use for replying in another org.

Here we're using that token to query if tipRequester is a member of parity.

Instead, we should either use this one, or if it doesn't work then get a different installation token for our org, just how we did it for non-parity one.

To query members of parity team we should always use parity installation, for replying to requests, we need to use token of installation to the org, from which request is coming from

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 a pull request may close this issue.

5 participants