Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
sheldonhull committed Aug 13, 2024
1 parent 1b50ffb commit c8d126d
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,14 +88,18 @@ jobs:
if [[ -z "$(git diff --name-only --diff-filter=A .changes/unreleased)" ]]; then
echo "No changie entry found in .changes/unreleased"
comment="❌ A changie entry is required in .changes/unreleased"
gh pr review ${{ github.event.pull_request.number }} --request-changes --body "$comment"
if ! gh pr view ${{ github.event.pull_request.number }} --comments | grep -q "❌ A changie entry is required in .changes/unreleased"; then
gh pr review ${{ github.event.pull_request.number }} --request-changes --body "$comment"
fi
else
echo "Changie entry found"
comment="βœ… changie entry was found"
gh pr review ${{ github.event.pull_request.number }} --comment --body "$comment"
if ! gh pr view ${{ github.event.pull_request.number }} --comments | grep -q "βœ… changie entry was found"; then
gh pr review ${{ github.event.pull_request.number }} --comment --body "$comment"
fi
fi
if [[ -n "$comment" ]]; then
gh pr comment ${{ github.event.pull_request.number }} --body "$comment" --edit-last || gh pr comment ${{ github.event.pull_request.number }} --body "$comment"
fi
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_TOKEN: ${{ github.event.pull_request.number }}

0 comments on commit c8d126d

Please sign in to comment.