-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Same as issues/discussions for a repo but for a user only #9213
Comments
If someone is interested in working on this, the GraphQL queries for this would be {
user(login: "andry81") {
issues {
totalCount
}
}
} {
user(login: "andry81") {
repositoryDiscussions {
totalCount
}
}
} |
you could assign me and i will get to it in a few days or so |
I wanted to add this and i first looked for a shield to add it to before creating something new. @andry81 Please let me know if this solves the first issue for displaying user created issues or you still want us to discuss adding a new shield/option? Regarding discussions across repositories I could not find a way to implement this with existing shields. I think it would be best to add this in a new shield. I could for example use the search query with discussion as search type for this type of shield similar to issues costume search query ($query: String!) {
search(query: $query, type: DISCUSSION) {
discussionCount
}
} Please provide me with feedback what would better fit the project so i could implement the solution. |
This commit adds a GitHub Discussions custom search service in the github-discussions-custom-search.service.js file. It includes classes for global discussions search (GithubDiscussionsSearch) and repository-specific discussions search (GithubRepoDiscussionsSearch). Users can now search discussions with custom queries and retrieve the discussion count. Fixes badges#9213
I ended up adding this, i think that its good to have regardless of the original issue. |
@jNullj Thanks for the effort! One more thing here is that the issues and discussions is not reachable from a not logged in page. May be add a second icon to indicate that the badge url requires the GitHub login? Or may be add a second line of text like login required? |
do you refer to GitHub API token? I just tested and you are right, i could not make requests without one altho the API should have a small rate limit for calls without a token. |
I've meant the simple url in the readme file: https://github.com/issues?q=author%3Aandry81+sort%3Aupdated-desc+ |
Not sure what readme file you refer to, i never added those urls in my pull request and I don't see why they should be added. |
@jNullj Thank you! This is what I was looking for. |
This commit adds a GitHub Discussions custom search service in the github-discussions-custom-search.service.js file. It includes classes for global discussions search (GithubDiscussionsSearch) and repository-specific discussions search (GithubRepoDiscussionsSearch). Users can now search discussions with custom queries and retrieve the discussion count. Fixes badges#9213
It would be useful if add a badge for the commits too: https://github.com/search?q=author%3Aandry81&type=commits&s=author-date&o=desc |
I can add this in a seperate PR as a new service for 'commit custom search'. But lets wait to see what the maintainers think about the changes i added so far and those changes as well. I want to avoid making too much changes without knowing they will not get rejected. |
This commit adds a GitHub Discussions custom search service in the github-discussions-custom-search.service.js file. It includes classes for global discussions search (GithubDiscussionsSearch) and repository-specific discussions search (GithubRepoDiscussionsSearch). Users can now search discussions with custom queries and retrieve the discussion count. Fixes badges#9213
…#9340) * Add GitHub Discussions custom search service This commit adds a GitHub Discussions custom search service in the github-discussions-custom-search.service.js file. It includes classes for global discussions search (GithubDiscussionsSearch) and repository-specific discussions search (GithubRepoDiscussionsSearch). Users can now search discussions with custom queries and retrieve the discussion count. Fixes #9213 * Add tester to GithubDiscussionsSearch * Add documentation for GithubDiscussionsSearch Inform users of filters and query values for the free search. * Update GithubDiscussionsSearch examples Change examples from filter by author to `filter` by `answered-by` as this has higher change of being a more common use case. * fix typo --------- Co-authored-by: jNullj <jNullj@users.noreply.github.com> Co-authored-by: chris48s <chris48s@users.noreply.github.com>
I can add this with the an REST api call, the GraphQL does not support commit search (yet?). |
📋 Description
Add links of number of issues/discussions just for a user only.
🔗 Data
issues by user: https://github.com/issues?q=author%3Aandry81+sort%3Aupdated-desc+
discussions by user: https://github.com/discussions?q=author%3Aandry81+sort%3Aupdated-desc+
Both links need a login.
🎤 Motivation
Put it as a statistic in the main page readme file:
user/user
The text was updated successfully, but these errors were encountered: