Skip to content

experimental: markdown lint in CI #62

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

Closed
wants to merge 1 commit into from
Closed
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
5 changes: 5 additions & 0 deletions .github/workflows/TODO.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Evaluate:

* misspell
* spellcheck
* govulncheck
36 changes: 36 additions & 0 deletions .github/workflows/markdown.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Markdown

on:
pull_request_target:
paths:
- '**/*.md'

permissions:
pull-requests: write
contents: read

jobs:
lint-markdown:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4

- name: Run markdown linter
id: markdownlint
#continue-on-error: true
uses: docker://avtodev/markdown-lint:v1
with:
config: .markdownlint.yml
args: '**/*.md'
output: ./markdownlint.txt

- name: Create PR comment
if: ${{ failure() && steps.markdownlint.outcome == 'failure' }}
#if: steps.markdownlint.outputs.exit_code != 0
uses: peter-evans/create-or-update-comment@v4
with:
issue-number: ${{ github.event.pull_request.number }}
title: Markdown Lint Report
body-path: ./markdownlint.txt
labels: report, bot-generated
28 changes: 28 additions & 0 deletions .markdownlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Default state for all rules
default: true

# ul-style
MD004: false

# hard-tabs
MD010: false

# line-length
MD013: false

# no-duplicate-header
MD024:
siblings_only: true

#single-title
MD025: false

# ol-prefix
MD029:
style: ordered

# no-inline-html
MD033: false

# fenced-code-language
MD040: false
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,6 @@
[![Go Report Card](https://goreportcard.com/badge/github.com/go-openapi/errors)](https://goreportcard.com/report/github.com/go-openapi/errors)

Shared errors and error interface used throughout the various libraries found in the go-openapi toolkit.


# blah blah
Loading