diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 8e80f9c..4a30f8f 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -4,38 +4,44 @@ If a section of the PR template does not apply to this PR, then delete that section. --> -## Motivation +## What type of PR is this? -_(fill-in or delete this section)_ +_(REQUIRED)_ + +- [ ] bug +- [ ] cleanup +- [ ] documentation +- [ ] feature + +## What this PR does / why we need it: + +_(REQUIRED)_ + +## Which issue(s) this PR fixes: + +_(REQUIRED)_ + -## Release Notes +## Special notes for your reviewer: _(fill-in or delete this section)_ - -## Changes - -_(fill-in or delete this section)_ - - ## Testing @@ -46,11 +52,18 @@ _(fill-in or delete this section)_ Describe how you tested this change. --> -## Reviewer Guidelines - -_(fill-in or delete this section)_ +## Release Notes +_(REQUIRED)_ + +```release-note + +``` \ No newline at end of file diff --git a/.github/workflows/cli.yml b/.github/workflows/cli.yml index 89cd822..8bacc6c 100644 --- a/.github/workflows/cli.yml +++ b/.github/workflows/cli.yml @@ -28,6 +28,11 @@ jobs: with: go-version: ${{ matrix.go }} + - name: Use Node.js 12.x + uses: actions/setup-node@v1 + with: + node-version: 12.x + - name: Set GOPATH and PATH run: | echo "::set-env name=GOPATH::$(dirname $GITHUB_WORKSPACE)" @@ -44,7 +49,7 @@ jobs: mkdir -p $GOPATH/bin curl -L -o $GOPATH/bin/gfmrun "https://github.com/urfave/gfmrun/releases/download/v1.2.14/gfmrun-$(go env GOOS)-amd64-v1.2.14" chmod +x $GOPATH/bin/gfmrun - npm install markdown-toc + npm install -g markdown-toc@1.2.0 - name: Run Tests run: | diff --git a/build.go b/build.go index 325552c..5a6415a 100644 --- a/build.go +++ b/build.go @@ -166,7 +166,7 @@ func TocActionFunc(c *cli.Context) error { filename = "README.md" } - err := runCmd("node_modules/.bin/markdown-toc", "-i", filename) + err := runCmd("markdown-toc", "-i", filename) if err != nil { return err }