From e8c7608ea6b7ca38bd69eddcd6514629e0b2e24c Mon Sep 17 00:00:00 2001 From: Vishal Wagh <169045855+vwagh-dev@users.noreply.github.com> Date: Fri, 24 Jan 2025 12:34:40 +0530 Subject: [PATCH 1/5] ci.yaml --- .github/workflows/ci.yaml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/ci.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..e9e613a --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,34 @@ +name: CI Pipeline + +# Trigger this workflow on pushes to the main branch or pull requests +on: + push: + branches: + - main + pull_request: + branches: + - main + + +jobs: + build-and-test: + runs-on: ubuntu-latest + + steps: + # Check out the repository code + - name: Checkout code + uses: actions/checkout@v3 + + # Set up a specific programming environment (example: Node.js, Java, Python, etc.) + - name: Set up Node.js + uses: actions/setup-node@v3 + with: + node-version: '16' + + # Install dependencies + - name: Install dependencies + run: npm install + + # Run tests + - name: Run tests + run: npm test From c66d4054be3af2548026f4d1623d51a4dfc22159 Mon Sep 17 00:00:00 2001 From: Vishal Wagh <169045855+vwagh-dev@users.noreply.github.com> Date: Fri, 24 Jan 2025 12:38:39 +0530 Subject: [PATCH 2/5] Create package.json --- package.json | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 package.json diff --git a/package.json b/package.json new file mode 100644 index 0000000..a940dea --- /dev/null +++ b/package.json @@ -0,0 +1,7 @@ +{ + "dependencies": { + "diff2html": "^3.4.48", + "diff2html-cli": "^5.2.15", + "mkdirp": "^3.0.1" + } +} From 7795adaa21069ea2e1b3439728a75b520e54f176 Mon Sep 17 00:00:00 2001 From: Vishal Wagh <169045855+vwagh-dev@users.noreply.github.com> Date: Fri, 24 Jan 2025 12:41:53 +0530 Subject: [PATCH 3/5] Update ci.yaml --- .github/workflows/ci.yaml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index e9e613a..0c893f2 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -28,7 +28,3 @@ jobs: # Install dependencies - name: Install dependencies run: npm install - - # Run tests - - name: Run tests - run: npm test From b9dc4ac3e83e53501b29258e572636ef91a7366e Mon Sep 17 00:00:00 2001 From: Vishal Wagh <169045855+vwagh-dev@users.noreply.github.com> Date: Fri, 24 Jan 2025 12:44:11 +0530 Subject: [PATCH 4/5] Update ci.yaml --- .github/workflows/ci.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 0c893f2..a2e7dda 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -8,6 +8,10 @@ on: pull_request: branches: - main + types: + - opened + - edited + - synchronize jobs: @@ -28,3 +32,8 @@ jobs: # Install dependencies - name: Install dependencies run: npm install + + # Update the PR description + - name: Update PR Description + run: | + gh pr edit ${{ github.event.pull_request.number }} --body "### Updated PR Description\n\nThis description was updated using GitHub Actions.\n\n- Item 1\n- Item 2" From 87e5d6a0e7cbfbbdf303703a8ebb1f7d50d6c85c Mon Sep 17 00:00:00 2001 From: Vishal Wagh <169045855+vwagh-dev@users.noreply.github.com> Date: Fri, 24 Jan 2025 14:44:14 +0530 Subject: [PATCH 5/5] Update ci.yaml --- .github/workflows/ci.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index a2e7dda..7f059a7 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -33,6 +33,12 @@ jobs: - name: Install dependencies run: npm install + - name: Authenticate GitHub CLI + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + echo "${{ secrets.GITHUB_TOKEN }}" | gh auth login -- + # Update the PR description - name: Update PR Description run: |