Compare commits
3 commits
949c0b9c9b
...
7c5e429ae0
Author | SHA1 | Date | |
---|---|---|---|
|
7c5e429ae0 | ||
|
4dd422d07c | ||
|
7bbafeedeb |
2 changed files with 10 additions and 1 deletions
|
@ -72,6 +72,9 @@ FEED_READERS = [
|
|||
# LanguageTool GHTags languagetool-org/languagetool 36 (sysadmin/boira)
|
||||
GithubTagReader(name = "LanguageTool", project = "languagetool-org/languagetool",
|
||||
target = GITLAB_BOIRA_CARGAJI),
|
||||
# meshcentral GHReleases Ylianst/MeshCentral 36 (sysadmin/boira)
|
||||
GithubReader(name = "meshcentral", project = "Ylianst/MeshCentral",
|
||||
target = GITLAB_BOIRA_CARGAJI),
|
||||
# python3-snakes PIPY snakes 37 (packages/python3-snakes)
|
||||
PIPYReader(name = "python3-snakes", package = "snakes",
|
||||
target = GITLAB_SNAKES_CARGAJI),
|
||||
|
@ -83,6 +86,10 @@ FEED_READERS = [
|
|||
target = CGJForgejoPoster("archpkgs/meshcentral")),
|
||||
# nc-cospend GHReleases eneiluj/cospend-nc archpkgs/nextcloud-app-cospend
|
||||
NCAppReader(app = "nextcloud-app-cospend", project = "eneiluj/cospend-nc"),
|
||||
# nc-f_autotagging GHReleases
|
||||
NCAppReader(app = "nextcloud-app-files_automatedtagging", project = "nextcloud/files_automatedtagging"),
|
||||
# nc-f_retention GHReleases
|
||||
NCAppReader(app = "nextcloud-app-files_retention", project = "nextcloud/files_retention"),
|
||||
# nc-forms GHReleases nextcloud/forms archpkgs/nextcloud-app-forms
|
||||
NCAppReader(app = "nextcloud-app-forms", project = "nextcloud/forms"),
|
||||
# nc-maps GHReleases nextcloud/maps archpkgs/nextcloud-app-maps
|
||||
|
|
4
issue_generator.py
Executable file → Normal file
4
issue_generator.py
Executable file → Normal file
|
@ -164,7 +164,7 @@ class FeedReader:
|
|||
self.target = target
|
||||
self.version_file = CONFIG_DIR + self.name
|
||||
self.etag_file = CONFIG_DIR + self.name + ".etag"
|
||||
self.beta_strings = [ "nightly", "beta", "alpha", "rc" ]
|
||||
self.beta_strings = [ "nightly", "beta", "alpha", "rc", "pr" ]
|
||||
|
||||
def first_item(self) -> dict[str, Any] | None | int:
|
||||
'''Get the first item of the feed (newest)'''
|
||||
|
@ -174,6 +174,8 @@ class FeedReader:
|
|||
else: etag = None
|
||||
feed = feedparser.parse(self.url, etag=etag)
|
||||
if feed.etag and feed.etag != etag:
|
||||
if not os.path.isdir(CONFIG_DIR):
|
||||
os.mkdir(CONFIG_DIR)
|
||||
with open(self.etag_file, mode='w', encoding="UTF-8") as file:
|
||||
file.write(feed.etag)
|
||||
if feed.status == 304:
|
||||
|
|
Loading…
Reference in a new issue