From e5492990a0578a4eed584be721b54ef06058afc0 Mon Sep 17 00:00:00 2001 From: gcharang <21151592+gcharang@users.noreply.github.com> Date: Sat, 9 Sep 2023 19:45:39 +0530 Subject: [PATCH] update PR action --- .github/workflows/get_data_lint_files.yml | 3 ++- utils/js/h1_presence_checker.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/get_data_lint_files.yml b/.github/workflows/get_data_lint_files.yml index e7ed6d80..3faeb119 100644 --- a/.github/workflows/get_data_lint_files.yml +++ b/.github/workflows/get_data_lint_files.yml @@ -4,6 +4,7 @@ on: push: branches: ["dev"] pull_request: + types: [opened, synchronize, reopened] jobs: pre_job: @@ -61,7 +62,7 @@ jobs: run: node utils/js/h1_presence_checker.js - name: Create Pull Request - uses: peter-evans/create-pull-request@v4 + uses: peter-evans/create-pull-request@v5 with: token: ${{ secrets.GITHUB_TOKEN }} commit-message: "[Bot] File and author data updated, validated and updated internal links, formatted md content, checked presence of file and dirs based on sidebar, checked presence of h1 in every file, update atomicdex methods table" diff --git a/utils/js/h1_presence_checker.js b/utils/js/h1_presence_checker.js index ff358846..0842c39c 100644 --- a/utils/js/h1_presence_checker.js +++ b/utils/js/h1_presence_checker.js @@ -8,7 +8,7 @@ import path from 'path' try { await walkDir("./src/pages", async (filePath) => { const markdown = await fs.readFile(filePath, 'utf-8'); - console.log(filePath) + //console.log(filePath) const file = await remark() .use(() => (tree) => { let documentContainsTitleHeading = false;