Skip to content

Commit 7f798eb

Browse files
committed
Add a get_prs interface to GitCommit
Signed-off-by: Cristian Le <[email protected]>
1 parent fccfd71 commit 7f798eb

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

COMPATIBILITY.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,13 @@ In case you find any error, please [create a new issue](https://github.com/packi
3636
| `get_all_commits` |||||
3737
| `changes` |||||
3838

39+
## GitCommit
40+
41+
| | GitHub | GitLab | Pagure | Forgejo |
42+
| --------- | :----: | :----: | :----: | :-----: |
43+
| `changes` |||||
44+
| `get_prs` |||||
45+
3946
## Release
4047

4148
| | GitHub | GitLab | Pagure | Forgejo |

ogr/abstract.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1184,6 +1184,10 @@ def changes(self) -> "CommitChanges":
11841184
"""Commit change information."""
11851185
raise NotImplementedError()
11861186

1187+
def get_prs(self) -> Optional[list["PullRequest"]]:
1188+
"""Get the associated pull requests"""
1189+
raise NotImplementedError()
1190+
11871191

11881192
class GitTag(OgrAbstractClass):
11891193
"""

0 commit comments

Comments
 (0)