We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e4575ea commit 72ae8c1Copy full SHA for 72ae8c1
ubuntu_lint/context.py
@@ -84,13 +84,16 @@ def changes(self) -> deb822.Changes:
84
85
return self._changes
86
87
- @property
88
- def changelog_entry(self) -> changelog.ChangeBlock:
+ def changelog_entry_by_index(self, index: int) -> changelog.ChangeBlock:
89
if not self._changelog:
90
raise MissingContextException("missing context for changelog entry")
91
assert self._changelog is not None
92
93
- return self._changelog[0]
+ return self._changelog[index]
+
94
+ @property
95
+ def changelog_entry(self) -> changelog.ChangeBlock:
96
+ return self.changelog_entry_by_index(0)
97
98
@property
99
def lp(self) -> Launchpad:
0 commit comments