Skip to content

Commit

Permalink
fix: further adjustments on the GitHub comment
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrickHeneise authored Mar 23, 2021
1 parent 203826f commit 451e4d5
Show file tree
Hide file tree
Showing 7 changed files with 1,879 additions and 15 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/seocheck.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
name: Integraton Test

on: [pull_request_target]
on: [pull_request]

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}
- uses: actions/[email protected]
with:
version: 12
node-version: 12
- name: Markdown SEO Check
uses: ./
with:
Expand Down
2 changes: 1 addition & 1 deletion .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1 +1 @@
npx --no-install commitlint --edit $1
npx commitlint --edit "$1"
4 changes: 3 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17833,10 +17833,12 @@ module.exports = /******/ (() => {
try {
core.info(`Starting Markdown SEO Check ...`)
const files = await listFiles_files()
if (!files || files.length === 0) {
return
}
const results = files.map(check).filter((i) => i.file)
hasErrors = results.filter((r) => r.errors && r.errors.length > 0)
const message = comment(results)

if (message && message.length > 0) {
await octokit.issues.createComment({
...context.repo,
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

Loading

0 comments on commit 451e4d5

Please sign in to comment.