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]: No 'data' is returned when calling repos.addCollaborator #1568

Open
lukaszlenart opened this issue Apr 27, 2023 · 0 comments
Open

[BUG]: No 'data' is returned when calling repos.addCollaborator #1568

lukaszlenart opened this issue Apr 27, 2023 · 0 comments
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

Comments

@lukaszlenart
Copy link

What happened?

I'm using Ocktokit repos.addCollaborator function to add a collaborator to a newly created repo and it was possible to extract url of the repo by accessing the data structure from the response. Right now there is no data field just these:

{
  "status": 204,
  "url": "https://api.github.com/repos/...",
  "headers": {
  ..
}

Versions

"@octokit/rest": "^19.0.7"

"engines": {
  "npm": "9.5.1",
  "node": "v18.16.0"
}

Relevant log output

[ERROR] 09:09:49:022 [hr-github] TypeError : Cannot read properties of undefined (reading 'html_url')


### Code of Conduct

- [X] I agree to follow this project's Code of Conduct
@lukaszlenart lukaszlenart added Status: Triage This is being looked at and prioritized Type: Bug Something isn't working as documented labels Apr 27, 2023
@kfcampbell kfcampbell added Priority: Normal Status: Up for grabs Issues that are ready to be worked on by anyone and removed Status: Triage This is being looked at and prioritized labels May 1, 2023
@nickfloyd nickfloyd added the hacktoberfest Issues for participation in Hacktoberfest label Sep 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
Status: 🔥 Backlog
Development

No branches or pull requests

3 participants