Skip to content

Commit e4234df

Browse files
authored
Merge pull request #67 from legendu-net/push-rumyvtuwqoyr
Merge push-rumyvtuwqoyr Into main
2 parents db2c0f2 + 30ac5f2 commit e4234df

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

github_rest_api/actions/container/build_container_images.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,8 +229,8 @@ def parse_args():
229229
def _resolve_image_dirs(args: argparse.Namespace) -> list[str]:
230230
if args.image_dirs:
231231
return args.image_dirs
232-
lines = Path(args.file_image_dirs).read_text().splitlines()
233-
return [line.strip() for line in lines if line.strip()]
232+
with Path(args.file_image_dirs).open(encoding="utf-8") as fin:
233+
return [s for line in fin if (s := line.strip()) and not s.startswith("#")]
234234

235235

236236
def main():

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ requires = [ "hatchling" ]
44

55
[project]
66
name = "github-rest-api"
7-
version = "0.37.0"
7+
version = "0.37.1"
88
description = "Simple wrapper of GitHub REST APIs."
99
readme = "README.md"
1010
authors = [ { name = "Ben Du", email = "longendu@yahoo.com" } ]

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)