Skip to content

Commit

Permalink
chore: make operation review-permissions more reliable by waiting til…
Browse files Browse the repository at this point in the history
…l the approval is finished
  • Loading branch information
netomi committed Oct 7, 2024
1 parent 5366bf2 commit 35a3519
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions otterdog/providers/github/web.py
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,9 @@ async def accept_dialog(dialog):
await page.goto(
f"https://github.com/organizations/{org_id}/settings/installations/{installation_id}/permissions/update"
)

await page.locator('button:text("Accept new permissions")').click()
await page.wait_for_url(f"https://github.com/organizations/{org_id}/settings/installations/{installation_id}")

async def _login_if_required(self, page: Page) -> None:
actor = await self._logged_in_as(page)
Expand Down

0 comments on commit 35a3519

Please sign in to comment.