Skip to content

Conversation

neverpanic
Copy link
Member

The change in f859fb8 assumed that GitHub would respond to API requests to /organizations/$org_name/team/$team_id, but it doesn't. The only supported URL seems to be /organizations/$org_id/team/$team_id, so we need to somehow query the teams using both their org and team IDs. Fortunately GitHub includes an "url" field in the response for listing teams that can be used to obtain the correct path.

Use this field to determine the correct URL and adjust the test harness to match GitHub's actual behavior.

The change in f859fb8 assumed that GitHub would respond to API requests
to /organizations/$org_name/team/$team_id, but it doesn't. The only
supported URL seems to be /organizations/$org_id/team/$team_id, so we
need to somehow query the teams using both their org and team IDs.
Fortunately GitHub includes an "url" field in the response for listing
teams that can be used to obtain the correct path.

Use this field to determine the correct URL and adjust the test harness
to match GitHub's actual behavior.
@neverpanic neverpanic merged commit 42a5029 into trac-hacks:master May 26, 2025
1 check passed
@neverpanic neverpanic deleted the cal-fix-135 branch May 26, 2025 12:10
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.

1 participant