diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index ed6e387e4..5ebe8dbb3 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -27,3 +27,25 @@ jobs: shell: bash - run: go version - run: make lint + + prettify: + name: Prettify + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + if: github.event_name == 'pull_request' + with: + fetch-depth: 0 + ref: ${{ github.event.pull_request.head.ref }} + - uses: actions/checkout@v3 + if: github.event_name == 'push' + with: + fetch-depth: 0 + - name: Install npm v8 + run: npm i -g npm@8 + - name: Prettify markdown code + uses: creyD/prettier_action@v4.2 + with: + commit_message: "Auto formatting markdown code" + prettier_options: --prose-wrap always --write **/*.md + github_token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index ddb9905ad..b7e5ae086 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -25,6 +25,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) - Add implementation of Data Streams API ([#257](https://github.com/opensearch-project/opensearch-go/pull/257) - Support for Amazon OpenSearch Serverless ([#216](https://github.com/opensearch-project/opensearch-go/pull/216), [#259](https://github.com/opensearch-project/opensearch-go/pull/259)) - Add Err() function to Response for detailed errors ([#246](https://github.com/opensearch-project/opensearch-go/pull/246)) +- Add markdown linter ([#261](https://github.com/opensearch-project/opensearch-go/pull/261) ### Dependencies