Skip to content

fix: GithubIssueTracker should use host-aware token resolution #102

@erishforG

Description

@erishforG

Problem

GithubIssueTracker::resolve_token() only checks env vars (PARSEC_GITHUB_TOKEN, GITHUB_TOKEN, GH_TOKEN), ignoring the per-host tokens configured in [github."host"] config sections added in #93.

This causes parsec start <issue> and parsec ship to fail fetching issue titles from GitHub Issues API, resulting in plain PR titles like "97" instead of "97: config: support per-repo config".

Solution

Pass ParsecConfig to GithubIssueTracker and use host-aware token resolution matching the approach in src/github/mod.rs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions