You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have tested this in our repo, and believe I have an explanation of why this isn't working:
The go github function that is called, GetOrgMembership, uses the "Get organization membership for a user" endpoint, which doesn't seem to contain any info about the teams within that org that the user is a member of. Also, we are passing a team string to the second argument, which expects an org string instead, leading to 404s always being returned in the logs from the action:
[Author is member of team] skip, GET https://api.github.com/orgs/{team}/memberships/{user}: 404 Not Found []
org identifier (perhaps this is already available somewhere for other API calls that are already being made by labeler? Otherwise, it will probably have to be added to config)
team slug, as opposed to the team name (as currently documented), which can contain spaces
user (we already have this)
The text was updated successfully, but these errors were encountered:
swrobel
changed the title
author-in-team isn't labeling when author is a member of the specified team
[Bug] author-in-team isn't labeling when author is a member of the specified team
Oct 4, 2024
Someone else opened an issue, but I added my findings here as this still isn't working for me (sorry, haven't had a chance to test until now) #160 (comment)
I have tested this in our repo, and believe I have an explanation of why this isn't working:
The go github function that is called, GetOrgMembership, uses the "Get organization membership for a user" endpoint, which doesn't seem to contain any info about the teams within that org that the user is a member of. Also, we are passing a
team
string to the second argument, which expects anorg
string instead, leading to 404s always being returned in the logs from the action:I think instead, you may need to use the GetTeamMembershipBySlug function, which requires:
The text was updated successfully, but these errors were encountered: