Skip to content

Commit

Permalink
try the format fails comment action
Browse files Browse the repository at this point in the history
  • Loading branch information
tylerjw committed Mar 23, 2021
1 parent c48f6fc commit 8783a6f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,15 @@ jobs:
- name: Install clang-format-10
run: sudo apt-get install clang-format-10
- uses: pre-commit/action@v2.0.0
- name: Comment on PR if checks fail
if: failure()
uses: actions/github-script@0.9.0
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
github.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: 'The format checks failed :(, Here are instructions for running pre-commit to fix the formatting: https://github.com/ros-planning/moveit2/wiki/pre-commit.'
})
2 changes: 1 addition & 1 deletion src/query_results.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,4 +99,4 @@ mongo::BSONObj MongoResultIterator::metadataRaw() const
return next_->copy();
}

} // namespace warehouse_ros_mongo
} // warehouse_ros_mongo

0 comments on commit 8783a6f

Please sign in to comment.