From 1caaf05778e0d114098a8047ac6ba80d72d5c208 Mon Sep 17 00:00:00 2001 From: Govind S Date: Fri, 24 Oct 2025 14:55:45 +0530 Subject: [PATCH 1/4] fix readme and add contrib action --- .github/workflows/contributors.yml | 2 +- README.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/contributors.yml b/.github/workflows/contributors.yml index 0a81a67..db296b5 100644 --- a/.github/workflows/contributors.yml +++ b/.github/workflows/contributors.yml @@ -9,6 +9,6 @@ jobs: name: A job to automate contrib in readme steps: - name: Contribute List - uses: akhilmhdh/contributors-readme-action@v2.0.2 + uses: akhilmhdh/contributors-readme-action@v2.3.11 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/README.md b/README.md index 35c8697..4d510a0 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# PINGMAN [![build](https://github.com/dopecodez/pingman/workflows/build/badge.svg)](https://github.com/dopecodez/pingman/actions) [![Contributions](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat)](https://github.com/dopecodez/pingman/issues) [![npm version](https://badge.fury.io/js/pingman.svg)](https://badge.fury.io/js/pingman) [![Test Coverage](https://api.codeclimate.com/v1/badges/18e10003e2c71f0c100b/test_coverage)](https://codeclimate.com/github/dopecodez/pingman/test_coverage) +# PINGMAN [![build](https://github.com/dopecodez/pingman/workflows/build/badge.svg)](https://github.com/dopecodez/pingman/actions) [![Contributions](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat)](https://github.com/dopecodez/pingman/issues) [![npm version](https://badge.fury.io/js/pingman.svg)](https://badge.fury.io/js/pingman) [![Test Coverage](https://codecov.io/github/dopecodez/pingman/graph/badge.svg?token=KRY7AENTQE)](https://codecov.io/github/dopecodez/pingman) Human-friendly node wrapper for ping utility across platforms. @@ -143,7 +143,7 @@ Before opening a pull request please make sure your changes follow the The project would not be the way it is without these rockstars. - +
From e1319d7bf180ae29e57d647b8ea2654d694cf174 Mon Sep 17 00:00:00 2001 From: Govind S Date: Fri, 24 Oct 2025 14:58:26 +0530 Subject: [PATCH 2/4] give the action write permission --- .github/workflows/contributors.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/contributors.yml b/.github/workflows/contributors.yml index db296b5..dab0fad 100644 --- a/.github/workflows/contributors.yml +++ b/.github/workflows/contributors.yml @@ -6,6 +6,9 @@ on: jobs: contrib-readme-job: runs-on: ubuntu-latest + permissions: + contents: write + pull-requests: write name: A job to automate contrib in readme steps: - name: Contribute List From 802479538b73aab1f3bf28779a1a35629140b5c1 Mon Sep 17 00:00:00 2001 From: Govind S Date: Fri, 24 Oct 2025 17:07:45 +0530 Subject: [PATCH 3/4] add update codeclimate.yml --- .codeclimate.yml | 22 ---------------------- codecov.yml | 25 +++++++++++++++++++++++++ 2 files changed, 25 insertions(+), 22 deletions(-) delete mode 100644 .codeclimate.yml create mode 100644 codecov.yml diff --git a/.codeclimate.yml b/.codeclimate.yml deleted file mode 100644 index 49aeb95..0000000 --- a/.codeclimate.yml +++ /dev/null @@ -1,22 +0,0 @@ -version: "2" -checks: - argument-count: - enabled: false - complex-logic: - enabled: false - file-lines: - enabled: false - method-complexity: - enabled: false - method-count: - enabled: false - method-lines: - enabled: false - nested-control-flow: - enabled: false - return-statements: - enabled: false - similar-code: - enabled: false - identical-code: - enabled: false diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 0000000..4ee1be9 --- /dev/null +++ b/codecov.yml @@ -0,0 +1,25 @@ +codecov: + require_ci_to_pass: yes + +coverage: + precision: 2 + round: down + range: "70...100" + +fixes: + - "dist/src/::src/" # Map dist/src/ to src/ + - "dist/test/::test/" # Map dist/test/ to test/ + - ".js::.ts" # Map .js extensions to .ts extensions + +parsers: + gcov: + branch_detection: + conditional: yes + loop: yes + method: no + macro: no + +comment: + layout: "reach,diff,flags,files,footer" + behavior: default + require_changes: no From 7852691e2838de78e287d861f1b2c4d84dd63b4f Mon Sep 17 00:00:00 2001 From: Govind S Date: Fri, 24 Oct 2025 17:31:04 +0530 Subject: [PATCH 4/4] trying to fix codeconv giving 0% --- codecov.yml | 13 ++----------- tsconfig.json | 1 + 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/codecov.yml b/codecov.yml index 4ee1be9..35d6cca 100644 --- a/codecov.yml +++ b/codecov.yml @@ -7,17 +7,8 @@ coverage: range: "70...100" fixes: - - "dist/src/::src/" # Map dist/src/ to src/ - - "dist/test/::test/" # Map dist/test/ to test/ - - ".js::.ts" # Map .js extensions to .ts extensions - -parsers: - gcov: - branch_detection: - conditional: yes - loop: yes - method: no - macro: no + - "dist/src/::src/" # Map dist/src/ to src/ + - "dist/test/::test/" # Map dist/test/ to test/ comment: layout: "reach,diff,flags,files,footer" diff --git a/tsconfig.json b/tsconfig.json index 3b56959..8fa59ab 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -16,6 +16,7 @@ "resolveJsonModule": true, "esModuleInterop": true, "declaration": true, + "sourceMap": true, "useUnknownInCatchVariables": false }, "include": [