Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
AAriam committed Oct 25, 2023
1 parent d5fb3ab commit 36f41b1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ namespaces = true
# ----------------------------------------- Project Metadata -------------------------------------
#
[project]
version = "0.0.0.dev164"
version = "0.0.0.dev165"
name = "RepoDynamics"
dependencies = [
"packaging >= 23.2, < 24",
Expand Down
7 changes: 5 additions & 2 deletions src/repodynamics/actions/init.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
from repodynamics.commit import CommitParser
from repodynamics.version import PEP440SemVer
from repodynamics.actions._changelog import ChangelogManager
from repodynamics.meta.files.forms import FormGenerator
from repodynamics.datatype import (
Branch,
BranchType,
Expand Down Expand Up @@ -1065,8 +1066,10 @@ def create_pattern(titles):
ids = []
for elem in body_elems:
if elem.get("id"):
ids.append(elem["id"])
titles.append(elem["attributes"]["label"])
pre_process = elem.get("pre_process")
if not pre_process or FormGenerator._pre_process_existence(pre_process):
ids.append(elem["id"])
titles.append(elem["attributes"]["label"])
self.logger.success("Extract titles from issue form", titles)
pattern = create_pattern(titles)
self.logger.success("Generate regex pattern for issue body", pattern)
Expand Down

0 comments on commit 36f41b1

Please sign in to comment.