-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix webhook asset download using API (#13)
- Loading branch information
1 parent
79e37a3
commit cab04e3
Showing
3 changed files
with
10 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
# SPDX-FileCopyrightText: 2024 Attila Gombos <[email protected]> | ||
# SPDX-License-Identifier: MIT | ||
|
||
from typing import Optional, Tuple | ||
from typing import Optional | ||
|
||
from context_logger import get_logger | ||
from github.GitRelease import GitRelease | ||
|
@@ -20,12 +20,6 @@ def get_config(self) -> ReleaseConfig: | |
def get_release(self) -> Optional[GitRelease]: | ||
raise NotImplementedError() | ||
|
||
def get_config_and_release(self) -> Tuple[ReleaseConfig, Optional[GitRelease]]: | ||
raise NotImplementedError() | ||
|
||
def check_release(self) -> bool: | ||
raise NotImplementedError() | ||
|
||
def check_latest_release(self) -> bool: | ||
raise NotImplementedError() | ||
|
||
|
@@ -48,8 +42,9 @@ def check_latest_release(self) -> bool: | |
if latest_release := self._get_release(): | ||
if not self._release or self._release.tag_name != latest_release.tag_name: | ||
old_tag = self._release.tag_name if self._release else None | ||
log.info('New release found', | ||
repo=self._config.full_name, old_tag=old_tag, new_tag=latest_release.tag_name) | ||
log.info( | ||
'New release found', repo=self._config.full_name, old_tag=old_tag, new_tag=latest_release.tag_name | ||
) | ||
self._release = latest_release | ||
return True | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters