-
-
Notifications
You must be signed in to change notification settings - Fork 785
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
Customize PR instructions based on files modified #6685
Customize PR instructions based on files modified #6685
Conversation
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.
Hey @anthonypz Good job with this PR so far. I can follow your logic and understand how this should be working; however, when I test it in my repo the message is not being posted.
Here is one test issue I ran in my repo. As can be seen, the bot is posting [object Promise]
instead of the message. I believe that the code is mostly working but something is breaking down.
Since this issue directly relates to a GitHub Action, this issue really needs to be tested as a GHA which means you will need to set up the testing environment in your own repo to demonstrate the GHA works. This sheet is probably the best starting point as well as the documents listed on #5182.
I can help you once you get set up- feel free to post questions on this issue and on Slack.
Thanks for working on this- as I said, I think the code is mostly there.
Hey @anthonypz Great job! I can confirm this is working now: without I would like to run a couple of formatting questions by @roslynwythe that are beyond the scope of the original issue. I think that the message for
|
Hey @t-will-gillis, thanks for reviewing my changes. Good catch - I agree that your suggested changes make more sense. I'd be happy to implement them as part of this pull request as soon as we know what those changes should look like. |
@t-will-gillis I agree that your suggested changes are worthwhile. Thank you |
Hey @anthonypz Let's go ahead with this then. In the end the comments for the three situations (with --> Feel free to make suggestions if you see something... To confirm:
Logic in Thank you for doing this work beyond the scope of the original issue! |
Thanks for the detailed instructions and providing a demo issue, @t-will-gillis. It was very helpful. I went ahead and made the requested changes, which I'm testing now. |
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.
Hey @anthonypz Great work! I tested for the three different files scenarios, and the appropriate PR review message is posting on the issue. It looks like you were able to get a testing environment set up on your repo also. Looks good and thanks for making the extra revisions.
This is ready to merge, but I have one more request. It looks like in create-instructions.js
lines 32, 50, 52, and 53 the indent from the original file is unaligned (tabs used instead of spaces?) Would you please fix this?
Great job again!
@t-will-gillis That's strange, VS Code usually converts tabs to spaces for me. Not sure what happened there. I've just pushed a fix. Please let me know if anything else is needed. |
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.
I am not even sure how to tab in VSCode because it converts for me also so maybe someone earlier was using a different editor?
Perfect- thanks again
This reverts commit 4295425.
Hey @anthonypz We had to revert this PR because the workflow had an error. I left a message for you on Slack also. |
Fixes #5182
What changes did you make?
github
andcontext
variables).Why did you make the changes (we will use this info to test)?