2
0
Fork 0

Compare commits

...

3 commits

Author SHA1 Message Date
Carlos Galindo
7c5e429ae0 more beta strings 2024-05-25 12:20:42 +02:00
Carlos Galindo
4dd422d07c create config_dir automatically 2024-05-25 12:19:36 +02:00
Carlos Galindo
7bbafeedeb add meshcentral@boira, files_autotagging and files_retention 2024-05-25 12:18:50 +02:00
2 changed files with 10 additions and 1 deletions

View file

@ -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
View 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: