From fb0ef0e9280d22613b0cba58e19f35315b3d25af Mon Sep 17 00:00:00 2001 From: ragarwal7 Date: Wed, 16 Aug 2023 18:30:18 +0530 Subject: [PATCH 1/7] git actions --- .DS_Store | Bin 0 -> 6148 bytes .github/.DS_Store | Bin 0 -> 6148 bytes .github/CODEOWNERS | 14 ++---- .github/SECURITY.md | 12 +++++ .github/badges/branches.json | 1 + .github/badges/branches.svg | 1 + .github/badges/jacoco.json | 1 + .github/badges/jacoco.svg | 1 + .github/labeler.yml | 11 +++++ .github/workflows/maven-build.yml | 64 ++++++++++++++++++++++++++ .github/workflows/pr-labeler.yml | 24 ++++++++++ .github/workflows/publish-central.yml | 40 ++++++++++++++++ .github/workflows/release-build.yml | 19 ++++++++ .github/workflows/stale-pr-issues.yml | 29 ++++++++++++ 14 files changed, 207 insertions(+), 10 deletions(-) create mode 100644 .DS_Store create mode 100644 .github/.DS_Store create mode 100644 .github/SECURITY.md create mode 100644 .github/badges/branches.json create mode 100644 .github/badges/branches.svg create mode 100644 .github/badges/jacoco.json create mode 100644 .github/badges/jacoco.svg create mode 100644 .github/labeler.yml create mode 100644 .github/workflows/maven-build.yml create mode 100644 .github/workflows/pr-labeler.yml create mode 100644 .github/workflows/publish-central.yml create mode 100644 .github/workflows/release-build.yml create mode 100644 .github/workflows/stale-pr-issues.yml diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..ca9902493654ad5a81d91ef62e0f9407dcf3b030 GIT binary patch literal 6148 zcmeHK%}T>S5T3QwrWBzE1-&hJt=ifuh?h|73mDOZN=;~KgE3p$)E-J9cYPsW#OHBl zcLP>)@FZeqVE3DypWVy{*&hH9?P;$8Pz3-78=)X2N64J(TC>4~LeDXTDFnf6G76%c ziTbMFn+%uD=aI%)gkTN+&{ z6$P2@2iIYL)~#-xt2pt)xIfkjVXu!NcQ;|&Q?s_3#=VKo^^C(QJLPV5cRt^5w3^2? z*=#Lpa(;SLugO;PWU(ka+k1y+m)*zcDON9rOM$d&*|eC!D=J^gdiKU~q~Za3vaBqc zkr`kHm;q*Br5LcsfKyqis<~KZfEoA+1GGO#Y=o}G)S%uvu%qiU`HO@ksMA}5P+D{? zrUuc2B1|fxNfq{qAxt{jrHykfrUp$q2)#1SV^_`|FG8=5cB#WbxCXgr2AF|m1`1|a zrSty+f0^7z{&EVBm;q+spD`ec9k0{IqU_oFtvotwCAJ4_BovpDf`a)GskL+lt d@k`P%&b62tq*=(W(-HY1pb6oQ8TbVTJ^&LoOi2I$ literal 0 HcmV?d00001 diff --git a/.github/.DS_Store b/.github/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..645cb64df123fd58b3c2d3f2d87634ceafe89b6f GIT binary patch literal 6148 zcmeHK%Sr=55Ukc95idDtp3KA!iT6p#X^t$=?Y8r`ugoD$>H z!68}z;)3BY&ZCzgHV+WH!YPpvnkAK(RI3)llFoRmysmIcOgb!X<~enC+QwRQG5ueFVSPxqWpx*O*~ o;SlAR80DA?FUQxBlzGkP-0upf#Go@CbfSI+To;)X_-_Ti0OxQV!Tbranches95.4% \ No newline at end of file diff --git a/.github/badges/jacoco.json b/.github/badges/jacoco.json new file mode 100644 index 0000000..396c159 --- /dev/null +++ b/.github/badges/jacoco.json @@ -0,0 +1 @@ +{"color": "#97ca00", "label": "coverage", "message": "99.2%", "schemaVersion": 1} \ No newline at end of file diff --git a/.github/badges/jacoco.svg b/.github/badges/jacoco.svg new file mode 100644 index 0000000..a1f1afb --- /dev/null +++ b/.github/badges/jacoco.svg @@ -0,0 +1 @@ +coverage99.2% \ No newline at end of file diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 0000000..3435ce7 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,11 @@ +Documentation: +- any: ['**/*.txt', '**/*.md, docs/**'] + +Actions: +- '.github/workflows/*' + +Tests: +- all: ['src/test/**', '**/*.java'] + +Code: +- all: ['src/main/**', '**/*.java'] diff --git a/.github/workflows/maven-build.yml b/.github/workflows/maven-build.yml new file mode 100644 index 0000000..c109f34 --- /dev/null +++ b/.github/workflows/maven-build.yml @@ -0,0 +1,64 @@ +# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven + +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. + +name: Java CI with Maven + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Set up JDK 11 for x64 + uses: actions/setup-java@v3 + with: + java-version: '11' + distribution: 'adopt' + architecture: x64 + cache: maven + - name: Build with Maven + run: mvn -B package --file pom.xml + + # Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive + - name: Update dependency graph + uses: advanced-security/maven-dependency-submission-action@571e99aab1055c2e71a1e2309b9691de18d6b7d6 + + - name: Generate JaCoCo Badge + id: jacoco + uses: cicirello/jacoco-badge-generator@v2 + with: + generate-coverage-badge: true + generate-coverage-endpoint: true + generate-branches-endpoint: true + generate-branches-badge: true + + - name: Log coverage percentage + run: | + echo "coverage = ${{ steps.jacoco.outputs.coverage }}" + echo "branch coverage = ${{ steps.jacoco.outputs.branches }}" + + - name: Commit the badge (if it changed) + run: | + if [[ `git status --porcelain` ]]; then + git config --global user.name 'Nishant Sehgal' + git config --global user.email 'Nishant-Sehgal@users.noreply.github.com' + git add -A + git commit -m "Autogenerated JaCoCo coverage badge" + git push + fi + + - name: Upload JaCoCo coverage report + uses: actions/upload-artifact@v2 + with: + name: jacoco-report + path: target/site/jacoco/ diff --git a/.github/workflows/pr-labeler.yml b/.github/workflows/pr-labeler.yml new file mode 100644 index 0000000..8617ef8 --- /dev/null +++ b/.github/workflows/pr-labeler.yml @@ -0,0 +1,24 @@ +# This workflow will triage pull requests and apply a label based on the +# paths that are modified in the pull request. +# +# To use this workflow, you will need to set up a .github/labeler.yml +# file with configuration. For more information, see: +# https://github.com/actions/labeler + +name: Labeler +on: [pull_request] + +jobs: + label: + + runs-on: ubuntu-latest + permissions: + contents: read + pull-requests: write + + steps: + - uses: actions/labeler@v4 + with: + repo-token: "${{ secrets.RWPulse_ACCESS_TOKEN }}" + sync-labels: true + dot: true diff --git a/.github/workflows/publish-central.yml b/.github/workflows/publish-central.yml new file mode 100644 index 0000000..54828f1 --- /dev/null +++ b/.github/workflows/publish-central.yml @@ -0,0 +1,40 @@ +name: Publish package to the Maven Central Repository + +on: + release: + types: [ published ] + +jobs: + release: + name: Release on Sonatype OSS + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Set up JDK 11 + uses: actions/setup-java@v2 + with: + java-version: 11 + distribution: 'adopt' + + - name: Build with Maven + run: mvn -B package --file pom.xml + + - name: Set up Apache Maven Central + uses: actions/setup-java@v2 + with: # running setup-java again overwrites the settings.xml + java-version: 11 + distribution: 'adopt' + server-id: ossrh + server-username: OSSRH_USERNAME + server-password: OSSRH_PASSWORD + gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} + gpg-passphrase: MAVEN_GPG_PASSPHRASE + + - name: Publish to Apache Maven Central + run: mvn -Prelease deploy + env: + OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }} + OSSRH_PASSWORD: ${{ secrets.OSSRH_TOKEN }} + MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }} diff --git a/.github/workflows/release-build.yml b/.github/workflows/release-build.yml new file mode 100644 index 0000000..d0ce185 --- /dev/null +++ b/.github/workflows/release-build.yml @@ -0,0 +1,19 @@ +# If the PR has the label release:major, release:minor, or release:patch, this will override bump_version_scheme. +# https://github.com/marketplace/actions/release-tag-new-action +on: + push: + branches: + - master + +jobs: + release-on-push: + runs-on: ubuntu-latest + env: + GITHUB_TOKEN: ${{ secrets.RWPulse_ACCESS_TOKEN }} + steps: + - id: release + name: Release Tag + uses: rymndhng/release-on-push-action@master + with: + bump_version_scheme: minor + tag_prefix: v diff --git a/.github/workflows/stale-pr-issues.yml b/.github/workflows/stale-pr-issues.yml new file mode 100644 index 0000000..322caa5 --- /dev/null +++ b/.github/workflows/stale-pr-issues.yml @@ -0,0 +1,29 @@ +# This workflow warns and then closes issues and PRs that have had no activity for a specified amount of time. +# +# You can adjust the behavior by modifying this file. +# For more information, see: +# https://github.com/actions/stale +name: Mark stale issues and pull requests + +on: + schedule: + - cron: '0 10 * * *' + +jobs: + stale: + + runs-on: ubuntu-latest + permissions: + issues: write + pull-requests: write + + steps: + - uses: actions/stale@v5 + with: + repo-token: ${{ secrets.CHAIN_ACCESS_TOKEN }} + stale-issue-message: 'Stale issue message' + stale-pr-message: 'Stale pull request message' + stale-issue-label: 'no-issue-activity' + stale-pr-label: 'no-pr-activity' + days-before-issue-stale: 180 + days-before-pr-stale: 10 From 391db3e8a141950a64330f489e1e10b35e2d5ad4 Mon Sep 17 00:00:00 2001 From: ragarwal7 Date: Wed, 16 Aug 2023 18:39:56 +0530 Subject: [PATCH 2/7] token --- .github/workflows/maven-build.yml | 4 ++-- .github/workflows/pr-labeler.yml | 2 +- .github/workflows/release-build.yml | 2 +- .github/workflows/stale-pr-issues.yml | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/maven-build.yml b/.github/workflows/maven-build.yml index c109f34..166b228 100644 --- a/.github/workflows/maven-build.yml +++ b/.github/workflows/maven-build.yml @@ -50,8 +50,8 @@ jobs: - name: Commit the badge (if it changed) run: | if [[ `git status --porcelain` ]]; then - git config --global user.name 'Nishant Sehgal' - git config --global user.email 'Nishant-Sehgal@users.noreply.github.com' + git config --global user.name 'Raghav Agarwal' + git config --global user.email 'raghav-agarwal@users.noreply.github.com' git add -A git commit -m "Autogenerated JaCoCo coverage badge" git push diff --git a/.github/workflows/pr-labeler.yml b/.github/workflows/pr-labeler.yml index 8617ef8..fca5005 100644 --- a/.github/workflows/pr-labeler.yml +++ b/.github/workflows/pr-labeler.yml @@ -19,6 +19,6 @@ jobs: steps: - uses: actions/labeler@v4 with: - repo-token: "${{ secrets.RWPulse_ACCESS_TOKEN }}" + repo-token: "${{ secrets.RWPULSE_ACCESS_TOKEN }}" sync-labels: true dot: true diff --git a/.github/workflows/release-build.yml b/.github/workflows/release-build.yml index d0ce185..45396b7 100644 --- a/.github/workflows/release-build.yml +++ b/.github/workflows/release-build.yml @@ -9,7 +9,7 @@ jobs: release-on-push: runs-on: ubuntu-latest env: - GITHUB_TOKEN: ${{ secrets.RWPulse_ACCESS_TOKEN }} + GITHUB_TOKEN: ${{ secrets.RWPULSE_ACCESS_TOKEN }} steps: - id: release name: Release Tag diff --git a/.github/workflows/stale-pr-issues.yml b/.github/workflows/stale-pr-issues.yml index 322caa5..9ca006c 100644 --- a/.github/workflows/stale-pr-issues.yml +++ b/.github/workflows/stale-pr-issues.yml @@ -20,7 +20,7 @@ jobs: steps: - uses: actions/stale@v5 with: - repo-token: ${{ secrets.CHAIN_ACCESS_TOKEN }} + repo-token: ${{ secrets.RWPULSE_ACCESS_TOKEN }} stale-issue-message: 'Stale issue message' stale-pr-message: 'Stale pull request message' stale-issue-label: 'no-issue-activity' From fcc332c2816e495faccef2facdd75756967848ed Mon Sep 17 00:00:00 2001 From: raghav-agarwal Date: Wed, 16 Aug 2023 18:41:31 +0530 Subject: [PATCH 3/7] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8f1ddf5..714e967 100644 --- a/README.md +++ b/README.md @@ -75,4 +75,4 @@ protected ClientHttpResponse executeRequest(final Map body) ## Local Development -[Local Development](./LOCAL_DEVELOPMENT.md) +[Local Development](./GETTING_STARTED.md) From e513355dd2d09617a45dc2cd11d439ef05e22bf0 Mon Sep 17 00:00:00 2001 From: raghav-agarwal Date: Wed, 16 Aug 2023 18:42:02 +0530 Subject: [PATCH 4/7] Update README.md --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 714e967..2a1bc99 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,8 @@ +[![Build Status](https://github.com/intuit/chain-z/actions/workflows/maven-build.yml/badge.svg)](https://github.com/intuit/chain-z/actions/workflows/maven-build.yml) +[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.intuit.async/chain-z/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.intuit.async/chain-z) +![coverage](.github/badges/jacoco.svg) +![branches coverage](.github/badges/branches.svg) + # RWebPulse RWebPulse is a ready to consume JAR library to easily integrate your springboot project with the latest reactive web-client offered by the spring. It is a one stop solution with config based initialisations, exception and retry handling. From e379d889d16e304d691c759f2538f36f38842207 Mon Sep 17 00:00:00 2001 From: raghav-agarwal Date: Wed, 16 Aug 2023 18:45:35 +0530 Subject: [PATCH 5/7] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 2a1bc99..250c6da 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,7 @@ ![coverage](.github/badges/jacoco.svg) ![branches coverage](.github/badges/branches.svg) + # RWebPulse RWebPulse is a ready to consume JAR library to easily integrate your springboot project with the latest reactive web-client offered by the spring. It is a one stop solution with config based initialisations, exception and retry handling. From 8029bade6470a29dc8f5a80d5f55dab0c2d8de33 Mon Sep 17 00:00:00 2001 From: raghav-agarwal Date: Wed, 16 Aug 2023 18:51:49 +0530 Subject: [PATCH 6/7] Update maven-build.yml --- .github/workflows/maven-build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/maven-build.yml b/.github/workflows/maven-build.yml index 166b228..87171c9 100644 --- a/.github/workflows/maven-build.yml +++ b/.github/workflows/maven-build.yml @@ -51,7 +51,7 @@ jobs: run: | if [[ `git status --porcelain` ]]; then git config --global user.name 'Raghav Agarwal' - git config --global user.email 'raghav-agarwal@users.noreply.github.com' + git config --global user.email 'bly.raghav@gmail.com' git add -A git commit -m "Autogenerated JaCoCo coverage badge" git push From 31e2d743a6ce2968e584ece84d822fdef1ae3ff8 Mon Sep 17 00:00:00 2001 From: ragarwal7 Date: Wed, 16 Aug 2023 19:05:39 +0530 Subject: [PATCH 7/7] removing DS store --- .DS_Store | Bin 6148 -> 0 bytes .github/.DS_Store | Bin 6148 -> 0 bytes 2 files changed, 0 insertions(+), 0 deletions(-) delete mode 100644 .DS_Store delete mode 100644 .github/.DS_Store diff --git a/.DS_Store b/.DS_Store deleted file mode 100644 index ca9902493654ad5a81d91ef62e0f9407dcf3b030..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6148 zcmeHK%}T>S5T3QwrWBzE1-&hJt=ifuh?h|73mDOZN=;~KgE3p$)E-J9cYPsW#OHBl zcLP>)@FZeqVE3DypWVy{*&hH9?P;$8Pz3-78=)X2N64J(TC>4~LeDXTDFnf6G76%c ziTbMFn+%uD=aI%)gkTN+&{ z6$P2@2iIYL)~#-xt2pt)xIfkjVXu!NcQ;|&Q?s_3#=VKo^^C(QJLPV5cRt^5w3^2? z*=#Lpa(;SLugO;PWU(ka+k1y+m)*zcDON9rOM$d&*|eC!D=J^gdiKU~q~Za3vaBqc zkr`kHm;q*Br5LcsfKyqis<~KZfEoA+1GGO#Y=o}G)S%uvu%qiU`HO@ksMA}5P+D{? zrUuc2B1|fxNfq{qAxt{jrHykfrUp$q2)#1SV^_`|FG8=5cB#WbxCXgr2AF|m1`1|a zrSty+f0^7z{&EVBm;q+spD`ec9k0{IqU_oFtvotwCAJ4_BovpDf`a)GskL+lt d@k`P%&b62tq*=(W(-HY1pb6oQ8TbVTJ^&LoOi2I$ diff --git a/.github/.DS_Store b/.github/.DS_Store deleted file mode 100644 index 645cb64df123fd58b3c2d3f2d87634ceafe89b6f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6148 zcmeHK%Sr=55Ukc95idDtp3KA!iT6p#X^t$=?Y8r`ugoD$>H z!68}z;)3BY&ZCzgHV+WH!YPpvnkAK(RI3)llFoRmysmIcOgb!X<~enC+QwRQG5ueFVSPxqWpx*O*~ o;SlAR80DA?FUQxBlzGkP-0upf#Go@CbfSI+To;)X_-_Ti0OxQV!T