Skip to content

Commit

Permalink
Fixed minor bug in new-release.py in the git shell command
Browse files Browse the repository at this point in the history
  • Loading branch information
hugsy committed Oct 22, 2021
1 parent 278e84d commit b982f3c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions gef.py
Expand Up @@ -4552,6 +4552,7 @@ def pane_title(): return "example:pane"
register_external_context_pane("example_pane", display_pane, pane_title)
"""
__gef__.add_context_pane(pane_name, display_pane_function, pane_title_function)
return


#
Expand Down
8 changes: 4 additions & 4 deletions scripts/new-release.py
Expand Up @@ -56,10 +56,10 @@ def generate_changelog(args: argparse.Namespace) -> bool:

dbg("Adding contributor summary...")
args.output_file.write(f"## Contributors{os.linesep}{os.linesep}")
contributor_names = shell(f"git log {latest_tag}... --pretty=format:'%aN' | sort -u").splitlines()
contributor_names = shell(f"git log {latest_tag}..HEAD --pretty=format:'%aN' | sort -u").splitlines()
commits = {}
for author in contributor_names:
author_commits = shell(f'git log {latest_tag}... --pretty=format:"%h" --author="{author}"').splitlines()
author_commits = shell(f'git log {latest_tag}..HEAD --pretty=format:"%h" --author="{author}"').splitlines()
commits[ author ] = len(author_commits)
total_commits = sum(commits.values())

Expand Down Expand Up @@ -90,8 +90,8 @@ def generate_changelog(args: argparse.Namespace) -> bool:
""")

dbg("Adding commit summary...")
log = shell(f"""git log "{latest_tag}"...HEAD --pretty=format:' * %cs [%h](https://github.com/{args.repository}/commit/%H) • *%aN* • %s ' --reverse""")
diff = shell(f"""git diff --no-color --stat {latest_tag} HEAD""")
log = shell(f"""git log {latest_tag}..HEAD --pretty=format:' * %cs [%h](https://github.com/{args.repository}/commit/%H) • *%aN* • %s ' --reverse""")
diff = shell(f"""git diff --no-color --stat {latest_tag}..HEAD""")
args.output_file.write(f"""
## Commit details
Expand Down

0 comments on commit b982f3c

Please sign in to comment.