Skip to content

Commit

Permalink
chore: replace feat/fix with chore in post-processor-changes.txt for …
Browse files Browse the repository at this point in the history
…python (#1183)
  • Loading branch information
parthea authored Aug 23, 2021
1 parent 484b7ec commit 8032ab5
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion docker/owlbot/python/cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,15 @@ steps:
entrypoint: '/bin/sh'
args:
- '-c'
- 'git log -1 --format="%s%n%nSource-Link: https://github.com/googleapis/synthtool/commit/%H" | sed -e "s/([^()]*)$//g" > post-processor-changes.txt'
# Get the last commit in synthtool and write it to post-processor-changes.txt.
# If the commit message ends with parenthesis, remove them.
# If the commit message starts with feat or fix, replace it with chore.
# If the commit message includes ! followed by a colon to signal a breaking change, remove the !.
- >
git log -1 --format="%s%n%nSource-Link: https://github.com/googleapis/synthtool/commit/%H" > post-processor-changes.txt &&
sed -i "s/([^()]*)$//g" post-processor-changes.txt &&
sed -i "s/^\(feat\|fix\)/chore/g" post-processor-changes.txt &&
sed -i "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 8032ab5

Please sign in to comment.