Skip to content

Commit

Permalink
ci: delete commit once fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
hanxiao committed Dec 18, 2020
1 parent 8cfcf07 commit 776498e
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,31 @@ jobs:
issue-number: ${{ github.event.pull_request.number }}
body: |
Thanks for your contribution :heart:
Unforunately, this PR has a **bad commit message**, please refer to:
:broken_heart: Unforunately, this PR has one ore more **bad commit messages**, it can not be merged. To fix this problem, please refer to:
- [Commit Message Guideline for the First Time Contributor](https://github.com/jina-ai/jina/issues/553)
- [Contributing Guideline](https://github.com/jina-ai/jina/blob/master/CONTRIBUTING.md)
Further CI tests are *cancelled* until the commit message gets fixed.
Note, other CI tests will *not* *start* until the commit messages get fixed.
reaction-type: "eyes"
- name: if lint success then delete prev warning if exist
if: ${{ success() }}
uses: peter-evans/find-comment@v1
id: fc
with:
issue-number: ${{ github.event.pull_request.number }}
comment-author: 'github-actions[bot]'
body-includes: '**bad commit messages**'
- name: Delete comment if exist
if: ${{ steps.fc.outputs.comment-id != 0 }}
uses: actions/github-script@v3
with:
github-token: ${{ secrets.PAT }}
script: |
github.issues.deleteComment({
owner: context.repo.owner,
repo: context.repo.repo,
comment_id: ${{ steps.fc.outputs.comment-id }},
})
unit-test:
needs: commit-lint
Expand Down

0 comments on commit 776498e

Please sign in to comment.