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

Not able to assign issues, 422 from GitHub #125

Closed
MridulS opened this issue Dec 18, 2020 · 3 comments
Closed

Not able to assign issues, 422 from GitHub #125

MridulS opened this issue Dec 18, 2020 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@MridulS
Copy link

MridulS commented Dec 18, 2020

Describe the bug

To able to assign issue to a GitHub user automatically whenever a degradation/downtime occurs.

To Reproduce

config file -> https://github.com/gesisnotebooks/status/blob/c9e624b1d2709dc774f9aa0b1a8b6b0e07b338e0/.upptimerc.yml

Github Action run -> https://github.com/gesisnotebooks/status/runs/1576330978

Expected behavior
The issue should be assigned to the users in assignees.

Screenshots

From "update response time" step

ERROR RequestError [HttpError]: Validation Failed: {"value":"MridulS","resource":"Issue","field":"assignees","code":"invalid"}
@MridulS MridulS added the bug Something isn't working label Dec 18, 2020
@AnandChowdhary
Copy link
Member

I just noticed that the GitHub docs say "This field is deprecated": https://docs.github.com/en/free-pro-team@latest/rest/reference/issues#create-an-issue--parameters

Maybe that's the problem which wasn't there, let me have a closer look!

@AnandChowdhary
Copy link
Member

This is now fixed, we add assignees using the new API rather than while creating the event. Note, however, that only uses with push access (i.e., your personal access token needs push access, which it likely does) can assign users to an issue.

@MridulS
Copy link
Author

MridulS commented Dec 18, 2020

Thanks @AnandChowdhary !

namcxn pushed a commit to namcxn/uptime-monitor that referenced this issue Mar 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants