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

Add modal example #2332

Merged
merged 10 commits into from
Sep 21, 2023
Merged

Add modal example #2332

merged 10 commits into from
Sep 21, 2023

Conversation

germa89
Copy link
Collaborator

@germa89 germa89 commented Sep 12, 2023

Thanks to @mcMunich for suggesting it

Close #2310

@germa89 germa89 marked this pull request as ready for review September 12, 2023 15:57
@germa89 germa89 requested a review from PipKat September 12, 2023 16:20
@codecov
Copy link

codecov bot commented Sep 12, 2023

Codecov Report

Merging #2332 (dc2e2e1) into main (0e14c4d) will increase coverage by 0.22%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main    #2332      +/-   ##
==========================================
+ Coverage   87.61%   87.83%   +0.22%     
==========================================
  Files          45       45              
  Lines        8518     8518              
==========================================
+ Hits         7463     7482      +19     
+ Misses       1055     1036      -19     

@germa89 germa89 self-assigned this Sep 12, 2023
@germa89 germa89 requested review from PipKat and removed request for PipKat September 18, 2023 16:17
@germa89
Copy link
Collaborator Author

germa89 commented Sep 19, 2023

@ansys-reviewer-bot help

@ansys-reviewer-bot
Copy link
Contributor

I am sorry... I cannot understand your request.

Options are:

  • @ansys-reviewer-bot stop review: to stop the bot from reviewing this PR.
  • @ansys-reviewer-bot review: to ask for a review.

@germa89
Copy link
Collaborator Author

germa89 commented Sep 19, 2023

@ansys-reviewer-bot review

@ansys-reviewer-bot
Copy link
Contributor

Okay, I will trigger a review of your PR.

Co-authored-by: ansys-reviewer-bot[bot] <143693109+ansys-reviewer-bot[bot]@users.noreply.github.com>
@germa89
Copy link
Collaborator Author

germa89 commented Sep 19, 2023

@RobPasMue it keeps posting comments... xDD

@germa89
Copy link
Collaborator Author

germa89 commented Sep 19, 2023

@ansys-reviewer-bot stop review

@ansys-reviewer-bot
Copy link
Contributor

Okay, I will not perform any more reviews on your PR.

@germa89
Copy link
Collaborator Author

germa89 commented Sep 19, 2023

Oohh.. I had to stop it manually

@PipKat
Copy link
Member

PipKat commented Sep 19, 2023

@germa89 @RobPasMue Are we allowed to use the PR review bot on libraries not yet public? For example, can I use it on my PRs while drafting the PyAnsys Writer's Guide?

@RobPasMue
Copy link
Member

RobPasMue commented Sep 20, 2023

Hi @germa89! Yes, you have to stop it manually for now. If you prefer some other behavior let us know :)

And yes, @PipKat, you can use the bot on your projects as well if you want. The bot will never be public, what we made public is the package we use inside of it https://pypi.org/project/review-bot/

If you want to use it somewhere, just let me know :) either at ansys or ansys-internal

PyPI
A Python library to automatically generate suggestions and improvements for patches in GitHub PRs by leveraging the power of OpenAI.

@germa89
Copy link
Collaborator Author

germa89 commented Sep 20, 2023

Hi @germa89! Yes, you have to stop it manually for now. If you prefer some other behavior let us know :

I would say that it is a bit weird to keep getting comments and comments after you have resolve them all. If I were a person, I would expect to get all the comments, for me later to address them all at once.

But this is just my opinion. :)

@RobPasMue
Copy link
Member

Hi @germa89! Yes, you have to stop it manually for now. If you prefer some other behavior let us know :

I would say that it is a bit weird to keep getting comments and comments after you have resolve them all. If I were a person, I would expect to get all the comments, for me later to address them all at once.

But this is just my opinion. :)

  • How would you decide when to get all comments? Some PRs are opened at early stages in which almost no code is implemented. If you only perform a review at that point, you might be missing out things.

@RobPasMue
Copy link
Member

Hey, I agree its annoying 😄 I'd love to know how would you expect it to work! You are one of our first users, I want to adapt it 😄

@germa89
Copy link
Collaborator Author

germa89 commented Sep 20, 2023

I mean... presumably.. you only want a review when you are "ready" so either because you trigger it with the commands.

Or even better, can we request the app as reviewer?? presumably we can... I wouldn't make the app approve PRs per se, just either request changes or leave comments. We could detag/tag the bot as reviewer to retrigger a review. I think this is a very natural way to work. Not sure how difficult it is to implement.

@RobPasMue
Copy link
Member

Hmm I don't think we can add it as a reviewer easily. Whenever you go to a PR in which the bot hasn't performed a review yet, and you try to search for it, it doesn't show up...

I think we might have to disable the "automatic" review behavior. And just put a comment saying, hey if you want to trigger a review you have to run blablabla

stop review would in that case stop making sense so we could just delete it

@RobPasMue
Copy link
Member

Pinging @AlejandroFernandezLuces for context

@germa89
Copy link
Collaborator Author

germa89 commented Sep 20, 2023

Hmm I don't think we can add it as a reviewer easily. Whenever you go to a PR in which the bot hasn't performed a review yet, and you try to search for it, it doesn't show up...

Shit .. it is true. I am surprised. Funny you can ask the old bot

image

We could hack this by setting a team maybe? So the bot will jump in if we ask a team called "Reviewers" to review? I dont know ...

I think we might have to disable the "automatic" review behavior. And just put a comment saying, hey if you want to trigger a review you have to run blablabla

stop review would in that case stop making sense so we could just delete it

Yep.... I guess you could just make the bot post a message saying, "Hey! I'm available!" ... At least for some months, so people is aware of it.

@RobPasMue
Copy link
Member

FYI the old bot is not really a bot, it is an actual account 😄 that's why you can ask it a review

Yeah we could create a pseudo team (empty) that the bot listens to. That would be an option =)

And I agree, let's disable it for now and make the greeting message available with the possible commands to run =)

@RobPasMue
Copy link
Member

RobPasMue commented Sep 20, 2023

Can you open an issue on the service repo? https://github.com/ansys-internal/review-bot-service

GitHub
GitHub is where people build software. More than 100 million people use GitHub to discover, fork, and contribute to over 330 million projects.

@germa89 germa89 merged commit 332e3db into main Sep 21, 2023
23 checks passed
@germa89 germa89 deleted the doc/adding-modal-example branch September 21, 2023 09:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

modal analysis
3 participants