Open pcrockett opened 2 years ago
Here's the relevant portion of my config that shows what I'm doing:
github:
# apiKey: "Use WTF_GITHUB_TOKEN env variable instead"
title: "GitHub"
showStats: false
showMyPullRequests: false
showOpenReviewRequests: false
customQueries:
myPRs:
title: "My PRs"
filter: "is:open is:pr author:pcrockett archived:false user:my-org"
assignedPRs:
title: "Assigned PRs"
filter: "is:open is:pr archived:false user:my-org assignee:pcrockett"
reviewRequests:
title: "Review Requests"
filter: "is:open is:pr archived:false user:my-org review-requested:pcrockett"
enabled: true
enableStatus: true
repositories:
- "pcrockett/some-private-repo-i-dont-care-about"
position:
top: 3
left: 2
height: 1
width: 1
refreshInterval: 5m
username: "pcrockett"
Yep, should be possible to create it so that ‘repositories’ is optional.
Definately an interesting idea. There is some refactoring work we'd have to do, because the github client is actually initialized within a repo object. I'm going to start by decomposing that first, which should make only custom queries a bit easier.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I wonder if the best thing would be to just write a new module for a number of these modules which take ad-hoc queries They were originally written in a less flexible way, and it is probably faster to write a new module for advanced users than trying to force backwards compatibility.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
What should it do?
I have access to a lot of repositories, and I want to use my dashboard to display all relevant GitHub information. I want a list of open pull requests, issues, etc. for any of my dozens of repositories.
I got this working with the
customQueries
setting. I usefilter
to control what I see in my dashboard rather than specifying a huge list of repos. So that means I really don't need therepositories
setting at all.I tried excluding the
repositories
setting from my config, however that causes wtfutil to crash:As a workaround, I added a single repository that I don't care about to my
repositories
list, and everything works correctly... except that repository name shows up in my dashboard title. Which is not terribly ideal.Is there a reason we need to specify a list of repos? Can we make it optional?