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 "Discussions" shortcut to repository screen #1432

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Fs00
Copy link
Contributor

@Fs00 Fs00 commented Dec 26, 2024

This PR adds a "Discussions" shortcut to the "Other information" section for repositories that have discussions enabled, which opens the Discussions page in a custom tab or browser.

other_info_discussions

I have decided not to put it near issues/pulls/forks etc. because it would have looked out of place, considering that there is no way to get the discussions count from the REST API.
While working on the code, I did some minor clean-ups to leverage lambdas/method references and removed some leftover dead code.

Open question: is "Other information" still a good title for this section? Releases and discussions are not really "information", maybe just "Other" would be a better fit?

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.

1 participant