Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create test.txt\n\nChange-Id: Ikdsljnf #7

Open
wants to merge 14 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions .github/workflows/pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@ jobs:
- run: |
for commit in $(git rev-list ${{ github.event.before}}..${{ github.sha}}); do
git checkout $commit
git log -1 --pretty=format:"%s" >> msg.txt
if git interpret-trailers --parse < msg.txt | grep -q "^Change-Id: $" ; then
exit 0
if git log -1 --pretty=format:"%s" | grep -q "Change-Id: "
then
echo "Substring found."
else
echo "Substring not found."
fi
echo "run test"
done
1 change: 1 addition & 0 deletions test.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
test
1 change: 1 addition & 0 deletions testing.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
test