Skip to content

Conversation

@arash77
Copy link
Contributor

@arash77 arash77 commented Jul 16, 2024

This pull request adds two new functions, minimize and unminimize, to the IssueComment class. These functions allow users to minimize and unminimize comments using the GitHub GraphQL API. The minimize function takes an optional reason parameter and sends a mutation to minimize the comment. The unminimize function sends a mutation to unminimize the comment. These functions provide more control and flexibility for managing comments in GitHub issues.

Copy link
Collaborator

@EnricoMi EnricoMi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Looks like we need GraphQL testing capabilities in this project.

@EnricoMi EnricoMi closed this Jul 28, 2024
@EnricoMi EnricoMi reopened this Jul 28, 2024
Copy link
Collaborator

@EnricoMi EnricoMi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like there is testing available. Can you add some tests for those two new IssueComment methods?

@arash77
Copy link
Contributor Author

arash77 commented Jul 29, 2024

Looks like there is testing available. Can you add some tests for those two new IssueComment methods?

I added the tests. Are they enough?

@EnricoMi
Copy link
Collaborator

I have added missing test data.

@arash77
Copy link
Contributor Author

arash77 commented Jul 29, 2024

I have added missing test data.

Thank you so much!

Copy link
Collaborator

@EnricoMi EnricoMi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@EnricoMi EnricoMi added this pull request to the merge queue Jul 29, 2024
Merged via the queue into PyGithub:main with commit 09c4f58 Jul 29, 2024
@arash77 arash77 deleted the add-minimize-and-unminimize-to-comment branch July 29, 2024 18:09
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.

2 participants