Skip to content

[BUG] Private Org Repo not listed in PR Sections #543

Open
@MaxDaten

Description

@MaxDaten

Describe the bug

gh-dash does not display existing PRs in my organizational private repositories. Probably more of a question than a bug, but I'm not sure.

To Reproduce

  1. Config:
prSections:
  - title: Dependabot
    filter: "is:open org:maxdaten-io"
  1. running gh dash --debug --config .gh-dash.yml
  2. PR list is empty

Expected behavior

Would expect that existing PRs are displayed.

Screenshots

Image

System:

  • OS: macOS
$ gh --version                                                                                                                                                                   
gh version 2.67.0 (1980-01-01)
https://github.com/cli/cli/releases/tag/v2.67.0

$ gh dash --version
gh-dash version 4.12.0
goos: darwin
goarch: arm64

$ gh repo list maxdaten-io --visibility=private

Showing 2 of 2 repositories in @maxdaten-io that match your search
...

$ gh pr list --repo maxdaten-io/some-repo

Showing 1 of 1 open pull request in maxdaten-io/some-repo

$ gh auth status
github.com
 ✓ Logged in to github.com account MaxDaten (keyring)
 - Active account: true
 - Git operations protocol: ssh
 - Token: gho_************************************
 - Token scopes: 'gist', 'read:org', 'repo'

When I enter a filter manually in the search box it seems to work:

Image

debug.log

1:54AM DEBU <cmd/root.go:62> Logging to debug.log
1:54AM DEBU <cmd/root.go:64> Running in repo repo=/Users/jloos/Developer/maxdaten-io
1:54AM DEBU <keys/keys.go:182> Rebinding universal keys keys=[]
1:54AM DEBU <theme/theme.go:171> Parsing theme config="&{Ui:{SectionsShowCount:true Table:{ShowSeparator:true Compact:false}} Colors:<nil> Icons:<nil>}" theme="&{SelectedBackground:{Light:006 Dark:008} PrimaryBorder:{Light:013 Dark:008} FaintBorder:{Light:254 Dark:000} SecondaryBorder:{Light:008 Dark:007} FaintText:{Light:007 Dark:245} PrimaryText:{Light:000 Dark:015} SecondaryText:{Light:244 Dark:251} InvertedText:{Light:015 Dark:236} SuccessText:{Light:002 Dark:002} WarningText:{Light:003 Dark:003} ErrorText:{Light:001 Dark:001} NewContributorIconColor:{Light:077 Dark:077} ContributorIconColor:{Light:075 Dark:075} CollaboratorIconColor:{Light:178 Dark:178} MemberIconColor:{Light:178 Dark:178} OwnerIconColor:{Light:178 Dark:178} UnknownRoleIconColor:{Light:178 Dark:178} NewContributorIcon:\U000f0394 ContributorIcon:\uedc6 CollaboratorIcon:\uedcf MemberIcon:\uf42b OwnerIcon:\U000f11d0 UnknownRoleIcon:\U000f1421}"
1:54AM DEBU <ui/ui.go:76> Starting task id="fetching_prs_1_2025-03-05 01:54:56.707852 +0100 CET m=+0.022143709"
1:54AM DEBU <data/prapi.go:258> Fetching PRs query="" limit=20 endCursor=<nil>
1:54AM DEBU <data/prapi.go:263> Successfully fetched PRs count=0
1:54AM DEBU <ui/ui.go:512> Task finished id="fetching_prs_1_2025-03-05 01:54:56.707852 +0100 CET m=+0.022143709"
1:55AM DEBU <ui/ui.go:171> Key pressed key=/
1:55AM DEBU <ui/ui.go:171> Key pressed key=o
1:55AM DEBU <ui/ui.go:171> Key pressed key=r
1:55AM DEBU <ui/ui.go:171> Key pressed key=g
1:55AM DEBU <ui/ui.go:171> Key pressed key=:
1:55AM DEBU <ui/ui.go:171> Key pressed key=m
1:55AM DEBU <ui/ui.go:171> Key pressed key=a
1:55AM DEBU <ui/ui.go:171> Key pressed key=x
1:55AM DEBU <ui/ui.go:171> Key pressed key=d
1:55AM DEBU <ui/ui.go:171> Key pressed key=a
1:55AM DEBU <ui/ui.go:171> Key pressed key=t
1:55AM DEBU <ui/ui.go:171> Key pressed key=e
1:55AM DEBU <ui/ui.go:171> Key pressed key=n
1:55AM DEBU <ui/ui.go:171> Key pressed key=-
1:55AM DEBU <ui/ui.go:171> Key pressed key=i
1:55AM DEBU <ui/ui.go:171> Key pressed key=o
1:55AM DEBU <ui/ui.go:171> Key pressed key=enter
1:55AM DEBU <ui/ui.go:76> Starting task id="fetching_prs_1_2025-03-05 01:55:41.005003 +0100 CET m=+44.319167126"
1:55AM DEBU <data/prapi.go:258> Fetching PRs query=org:maxdaten-io limit=20 endCursor=<nil>
1:55AM DEBU <data/prapi.go:263> Successfully fetched PRs count=1444
1:55AM DEBU <ui/ui.go:512> Task finished id="fetching_prs_1_2025-03-05 01:55:41.005003 +0100 CET m=+44.319167126"
1:55AM DEBU <ui/ui.go:76> Starting task id="fetching_prs_1_Y3Vyc29yOjE="
1:55AM DEBU <data/prapi.go:258> Fetching PRs query=org:maxdaten-io limit=20 endCursor=0x14000877ef8
1:56AM DEBU <data/prapi.go:263> Successfully fetched PRs count=1444
1:56AM DEBU <ui/ui.go:512> Task finished id="fetching_prs_1_Y3Vyc29yOjE="
2:00AM DEBU <ui/ui.go:76> Starting task id=fetching_prs_1_Y3Vyc29yOjIx
2:00AM DEBU <data/prapi.go:258> Fetching PRs query=org:maxdaten-io limit=20 endCursor=0x14000b47478
2:00AM DEBU <data/prapi.go:263> Successfully fetched PRs count=1444
2:00AM DEBU <ui/ui.go:512> Task finished id=fetching_prs_1_Y3Vyc29yOjIx
2:01AM DEBU <ui/ui.go:76> Starting task id=fetching_prs_1_Y3Vyc29yOjQx
2:01AM DEBU <data/prapi.go:258> Fetching PRs query=org:maxdaten-io limit=20 endCursor=0x14000a89238
2:01AM DEBU <ui/ui.go:171> Key pressed key=ctrl+c

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions