Skip to content

Commit

Permalink
chore: Remove commit body and PR# from post-processor-changes-txt (#1137
Browse files Browse the repository at this point in the history
)

Fixes #1134 🦕

Removes the commit body and relative PR# from the commit message.

For example, for this commit: 9763f20

`post-processor-changes.txt` would contain

```
build: enable npm for php/python builds 

Source-Link: 9763f20
```

instead of

```
build: enable npm for php/python builds (#1133)

* build: enable npm for php/python builds

* update comment
Source-Link: 9763f20
```
  • Loading branch information
parthea authored Jun 24, 2021
1 parent d4a91f8 commit e934b93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker/owlbot/python/cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ steps:
entrypoint: '/bin/sh'
args:
- '-c'
- 'git log -1 --format="%s%n%n%b%nSource-Link: https://github.com/googleapis/synthtool/commit/%H" > post-processor-changes.txt'
- 'git log -1 --format="%s%n%nSource-Link: https://github.com/googleapis/synthtool/commit/%H" | sed -e "s/([^()]*)$//g" > post-processor-changes.txt'
- name: 'gcr.io/cloud-builders/docker'
args: [ 'build',
'-t', 'gcr.io/$PROJECT_ID/owlbot-python:$SHORT_SHA',
Expand Down

0 comments on commit e934b93

Please sign in to comment.