[MAINT]: issue_label doesn't work for Organizations #1840
Labels
hacktoberfest
Issues for participation in Hacktoberfest
Status: Up for grabs
Issues that are ready to be worked on by anyone
Type: Bug
Something isn't working as documented
Describe the need
There is currently no way to create an issue_label for a repo owned by an organization, rather than the account on which the PAT is used for authentication in the provider.
Specifically, the
repository
attribute in thegithub_issue_label
resource is hard-coded to this format:https://api.github.com/repos/<PAT user>/
, meaning if you try to pass<my organization>/<repo>
, you'll end up withhttps://api.github.com/repos/<PAT user>/<my organization>/<repo>
.The API already supports an
owner
argument, so it seems like that could be exposed in the resource so that this would work.SDK Version
No response
API Version
No response
Relevant log output
Code of Conduct
The text was updated successfully, but these errors were encountered: