Skip to content

Comments

Add IssuePullRequest model on Issue#62

Merged
SeanTAllen merged 1 commit intomainfrom
issue-pull-request-model
Feb 8, 2026
Merged

Add IssuePullRequest model on Issue#62
SeanTAllen merged 1 commit intomainfrom
issue-pull-request-model

Conversation

@SeanTAllen
Copy link
Member

Summary

  • Add IssuePullRequest class that captures the pull_request sub-object from GitHub's issues API (url, html_url, diff_url, patch_url, merged_at)
  • Replace is_pull_request: Bool on Issue with pull_request: (IssuePullRequest | None) — callers can both distinguish PRs from true issues and access PR-specific URLs/merge status
  • Breaking change: code using issue.is_pull_request must switch to matching on issue.pull_request

Motivated by Discussion #45.

@ponylang-main ponylang-main added the discuss during sync Should be discussed during an upcoming sync label Feb 8, 2026
SeanTAllen added a commit that referenced this pull request Feb 8, 2026
Replace the boolean `is_pull_request` field on `Issue` with a richer
`pull_request: (IssuePullRequest | None)` field that captures the
actual pull_request sub-object from GitHub's issues API (url, html_url,
diff_url, patch_url, merged_at).

This lets callers both distinguish PRs from true issues and access
PR-specific URLs and merge status, rather than just knowing whether
the pull_request key was present.
@SeanTAllen SeanTAllen force-pushed the issue-pull-request-model branch from c73d618 to b40a87e Compare February 8, 2026 17:49
@SeanTAllen SeanTAllen changed the title Add IssuePullRequest model, replace is_pull_request on Issue Add IssuePullRequest model on Issue Feb 8, 2026
@SeanTAllen SeanTAllen merged commit ddcdc44 into main Feb 8, 2026
9 checks passed
@SeanTAllen SeanTAllen deleted the issue-pull-request-model branch February 8, 2026 17:59
@ponylang-main ponylang-main removed the discuss during sync Should be discussed during an upcoming sync label Feb 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants