list existing wiki repos for a user/organsation? #150442
Replies: 3 comments 2 replies
-
Hi @pabs3 , great question! GitHub does not provide a direct API to list wikis, but you can determine which repositories have the wiki feature enabled by checking the has_wiki field. Below are two methods to achieve this using the GitHub API:
Alternatively, you can check if a specific repository has the wiki feature enabled using the following command:
Look for the "has_wiki": true field in the response. This confirms whether the wiki feature is enabled for a specific repository of the user pabs3. |
Beta Was this translation helpful? Give feedback.
-
I mentioned that feature in my initial post and am already using it, but there are a lot of repos that have the wiki feature enabled but do not have any wiki repo created, so this means I waste a lot of requests on repos that don't exist. Could you escalate this to internal feature development teams? |
Beta Was this translation helpful? Give feedback.
-
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
Beta Was this translation helpful? Give feedback.
-
Select Topic Area
Question
Body
Using the REST API, I can list the repos for a user/organisation, and whether or not each repo has the wiki feature enabled, but repos that have the wiki feature enabled, don't necessarily have a wiki repo created for that wiki.
So I want to be able to list all of the existing wiki repos for a user/organisation. Does anyone know if this is possible, or should I brute force it instead?
For example,
https://github.com/pabs3/whowatch
has the wiki feature enabled, but thehttps://github.com/pabs3/whowatch.wiki.git
repo does not exist.I want to be able to automatically clone all my GitHub repos locally, including the wiki repos.
Beta Was this translation helpful? Give feedback.
All reactions