Skip to content

Commit

Permalink
Merge pull request #267 from lsst-sqre/tickets/DM-44635/check-suite-p…
Browse files Browse the repository at this point in the history
…ull-requests

Add `pull_requests` to `GitHubCheckSuiteModel`
  • Loading branch information
fajpunk authored Jul 12, 2024
2 parents 5d197a2 + 0e6ee60 commit dfc5353
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions changelog.d/20240712_100038_danfuchs_mobu_github_app.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<!-- Delete the sections that don't apply -->

### New features

- Add `pull_requests` to `GitHubCheckSuiteModel` to capture info about any pull requests associated with a GitHub check suite event.
4 changes: 4 additions & 0 deletions src/safir/github/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,10 @@ class GitHubCheckSuiteModel(BaseModel):
description="The conclusion of the check suite."
)

pull_requests: list[GitHubCheckRunPrInfoModel] = Field(
description="A list of pull requests associated with this check suite."
)


class GitHubCheckRunStatus(str, Enum):
"""The check run status."""
Expand Down

0 comments on commit dfc5353

Please sign in to comment.