Skip to content

Commit

Permalink
[temp] test
Browse files Browse the repository at this point in the history
  • Loading branch information
andooown committed Aug 24, 2020
1 parent 179d0c1 commit 0d2054c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .github/workflows/auto-release-pr-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,12 @@ jobs:
with:
githubToken: ${{ secrets.GITHUB_TOKEN }}
releasePRNumber: ${{ github.event.pull_request.number }}
bodyTemplate: |
差分
{summary}
以上
commentTemplate: |
diff
{diff}
3 changes: 2 additions & 1 deletion auto-release-pr/release-pr.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ def convert_to_body_line(message: str) -> str:

return f'- {number}: {title}'

body_lines = '\n'.join(map(convert_to_body_line, merge_commit_messages))
# body_lines = '\n'.join(map(convert_to_body_line, merge_commit_messages))
body_lines = '\n'.join([f'- {m.splitlines()[0]}' for m in commit_messages])
if len(body_lines) > 0:
return template.format(summary=body_lines)
else:
Expand Down

0 comments on commit 0d2054c

Please sign in to comment.