Skip to content

Commit

Permalink
โœจ feat: not merged except for release note
Browse files Browse the repository at this point in the history
  • Loading branch information
Zerohertz committed Oct 31, 2024
1 parent e71e06e commit 876694d
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions zerohertzLib/api/github.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,11 @@ def __call__(
# dict_keys(['url', 'repository_url', 'labels_url', 'comments_url', 'events_url', 'html_url', 'id', 'node_id', 'number', 'title', 'user', 'labels', 'state', 'locked', 'assignee', 'assignees', 'milestone', 'comments', 'created_at', 'updated_at', 'closed_at', 'author_association', 'active_lock_reason', 'draft', 'pull_request', 'body', 'reactions', 'timeline_url', 'performed_via_github_app', 'state_reason'])

# html_url: HTML์˜ URL https://github.com/Zerohertz/zerohertzLib/pull/64
# number: Issue ๋˜๋Š” PR์˜ ๋ฒˆํ˜ธ 64
# title: Issue ๋˜๋Š” PR์˜ ์ œ๋ชฉ [Docs] Build by Sphinx for GitHub Pages
# body: Issue ๋˜๋Š” PR์˜ MarkDown #63 (Build: 6095f8f85a0d6d8936a2caa373e675c6f5368644)
# labels: Issue ๋˜๋Š” PR์— ํ• ๋‹น๋œ label๋“ค List[dict_keys(['id', 'node_id', 'url', 'name', 'color', 'default', 'description'])]
# closed_at: Issue ๋˜๋Š” PR์ด ์ข…๋ฃŒ๋œ ์‹œ์  2023-11-16T07:48:51Z
# number: Issue ๋˜๋Š” PR์˜ ๋ฒˆํ˜ธ 64
# title: Issue ๋˜๋Š” PR์˜ ์ œ๋ชฉ [Docs] Build by Sphinx for GitHub Pages
# body: Issue ๋˜๋Š” PR์˜ MarkDown #63 (Build: 6095f8f85a0d6d8936a2caa373e675c6f5368644)
# labels: Issue ๋˜๋Š” PR์— ํ• ๋‹น๋œ label๋“ค List[dict_keys(['id', 'node_id', 'url', 'name', 'color', 'default', 'description'])]
# closed_at: Issue ๋˜๋Š” PR์ด ์ข…๋ฃŒ๋œ ์‹œ์  2023-11-16T07:48:51Z
return results

def _shield_icon(self, tag: str, color: str, href: str) -> str:
Expand Down Expand Up @@ -219,12 +219,17 @@ def release_note(
bodies_version = defaultdict(list)
versions = defaultdict(str)
for release in releases:
version = self._parse_version(release["title"])
if "\x08" in release["title"]:
error_title = release["title"].replace("\x08", "-> \\x08 <-")
raise ValueError(
f"""\\x08 is in '{release["html_url"]}'\n\tError Title: {error_title}"""
)
if (
release["state"] == "closed"
and release["pull_request"]["merged_at"] is None
):
continue
version = self._parse_version(release["title"])
bodies_version[version].append(
[
release["number"],
Expand Down

0 comments on commit 876694d

Please sign in to comment.