mirror of
https://github.com/BioArchLinux/bioarchlinux-tools.git
synced 2025-03-09 22:53:31 +00:00
23 lines
652 B
Python
23 lines
652 B
Python
from pathlib import Path
|
|
import time
|
|
|
|
MY_GITHUB = 'BioArchLinuxBot'
|
|
REPO_NAME = 'BioArchLinux/Packages'
|
|
|
|
ADMIN_GH = 'starsareintherose'
|
|
|
|
REPO_URL = f'git@github.com:{REPO_NAME}.git'
|
|
MYMAIL = 'lilac@bioarchlinux.org'
|
|
REPODIR = Path('/usr/share/lilac/Packages/BioArchLinux').expanduser()
|
|
|
|
def gen_log_comment(pkgs: list[str]) -> str:
|
|
ss = ['''\
|
|
| pkgbase | build history | last build log |
|
|
| --- | --- | --- |''']
|
|
t = int(time.time())
|
|
for pkg in set(pkgs):
|
|
ss.append(f'''\
|
|
| {pkg} \
|
|
| [build history](https://build.bioarchlinux.org/#{pkg}) \
|
|
| [last build log](https://build.bioarchlinux.org/api/pkg/{pkg}/log/{t}) |''')
|
|
return '\n'.join(ss)
|