-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Add StateReason to IssueUpdate #2665
Conversation
If acceptable, I'd be happy to update Octokit for the other languages to add |
Hey @heaths, thanks for this change! ❤️ I'm taking a look at it now and will let you know! Feel free to make the change in octokit.rb if you're up for it. Octokit.js should already have it given the auto-generation that occurs. |
Hey @heaths, just a quick note about the sourcelink failure in the windows CI build. It is unrelated to your change and is something we are working on. Apologies for the noise. |
@nickfloyd I've almost got a change ready in octokit.rb, but on trying to re-record tests with VCR (Ruby 3.1.2) getting constant errors like:
A cassette is generated (though pretty-printed - not compact like existing cassettes; not sure if that's a problem) but with only a single request/response pair - 201 Created. I've added 2 tests - keeping the others as regression tests - but updated one I've granted my auth token every conceivable scope (would be nice if required scopes were documented), which has eliminated 401 Unauthorized errors initially. Looking through bugs I see no mention of this. FWIW, I've been unable to Does your CI have any sort of "re-record for me" functionality? Update: I was able to get Ruby 2.7.6 installed finally, but it made no difference. In fact, lots of errors about |
Hey @heaths, oof, sorry for the trouble in Rubyland. The story there is less tidy than we'd like it to be. Please keep pressing if you still feel motivated to do it - we certainly appreciate your effort there. Things like compacting the cassettes aren't a top concern, and unfortunately, there is no replay built into CI (that would be an excellent idea for future efforts, though). I'm going to work on getting what you did here merged in and released and will have to circle back around possibly this Friday to see about the ruby challenges. Thank you again for all you're doing here! ❤️ |
@nickfloyd if you want, I could push the changes I made for octokit.rb if someone else wouldn't mind taking a crack at re-recording. I'd love to know why it's not working, though. I can open an issue or start a discussion on that repo if that's preferred. I did see if anyone else was having that problem. If anything, maybe I can make some improvements to the docs to help others. For example, it'd be great to document which scopes your GitHub auth token needs. It took a little trial and error (and just some assumptions, like that it cleans up so I'll need Updated: I started a discussion here. |
@heaths are you all set with this PR and comfortable with it going in? |
Yes, that would be great. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! ❤️ Thank you for the change!
Thank you, @nickfloyd. When might we see a new package published so we can take advantage of this? /cc @jsquire @JimSuplizio |
@nickfloyd @kfcampbell when might we expect the next package release so we can use these changes? TIA |
Hey @heaths, apologies for the delay; we've been trying to catch up on some things. We plan to send this out the door this week, hopefully sooner rather than later... Again sorry for the delay. |
Resolves #2664
Behavior
Before the change?
state_reason
when closing or reopening an issue. This negatively impacts task lists that link issues: can make you think an issue was actually completed vs. not planned.After the change?
state_reason
when closing or reopening an issue.Other information
Additional info
Pull request checklist
Does this introduce a breaking change?
Please see our docs on breaking changes to help!
Type: Breaking change
label)If
Yes
, what's the impact:IssueUpdate
constructor. But seems this has been done many times before. Would it be better to add an overload? I merely copied the pattern that's been used to date, it seems.Pull request type
Please add the corresponding label for change this PR introduces:
Type: Bug
Type: Feature
Type: Documentation
Type: Maintenance