From d7fb0619a3de3e6615f3c7a9eb338891edb1b7f1 Mon Sep 17 00:00:00 2001 From: Anurag Dalke Date: Thu, 9 Apr 2026 16:40:49 +0530 Subject: [PATCH 1/6] Add auto-merge workflow for specific pull requests --- .github/workflows/auto_merged_pr.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/auto_merged_pr.yml diff --git a/.github/workflows/auto_merged_pr.yml b/.github/workflows/auto_merged_pr.yml new file mode 100644 index 0000000..9bde77a --- /dev/null +++ b/.github/workflows/auto_merged_pr.yml @@ -0,0 +1,27 @@ +name: Auto_PR_Mered +on: + pull_request: + +permissions: + contents: write + +jobs: + auto-merge-eclipse: + runs-on: ubuntu-latest + if: > + github.event.pull_request.user.login == 'cx-bot-ghinternal' && + contains(github.event.pull_request.title, 'Eclipse Plugin Release') + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Enable auto-merge for eligible PRs + env: + PR_URL: ${{ github.event.pull_request.html_url }} + GITHUB_TOKEN: ${{ secrets.ECLIPSE_SITE_TOKEN }} + run: gh pr merge --auto --squash "$PR_URL" + + - name: Auto approve PRs + uses: hmarr/auto-approve-action@f0939ea97e9205ef24d872e76833fa908a770363 + with: + github-token: ${{ secrets.ECLIPSE_SITE_TOKEN }} From f3bb9f00d5e1089977600c12ed54291e8249e1e9 Mon Sep 17 00:00:00 2001 From: Aniket Shinde Date: Thu, 9 Apr 2026 18:31:38 +0530 Subject: [PATCH 2/6] Update auto_merged_pr.yml --- .github/workflows/auto_merged_pr.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/auto_merged_pr.yml b/.github/workflows/auto_merged_pr.yml index 9bde77a..0b9a922 100644 --- a/.github/workflows/auto_merged_pr.yml +++ b/.github/workflows/auto_merged_pr.yml @@ -1,7 +1,6 @@ name: Auto_PR_Mered on: pull_request: - permissions: contents: write From e180f2a7cd5b454eb14bcd56faa92691842fa36a Mon Sep 17 00:00:00 2001 From: Anurag Dalke Date: Fri, 10 Apr 2026 16:43:37 +0530 Subject: [PATCH 3/6] Create README.md --- README.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..792d600 --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +# From 250f3d99ce3e53439045c7678fa5e8e651792f3d Mon Sep 17 00:00:00 2001 From: Anurag Dalke Date: Fri, 10 Apr 2026 16:48:19 +0530 Subject: [PATCH 4/6] Add Jira ID validation workflow for PRs and branches --- .github/workflows/jira-id-validation.yaml | 35 +++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/jira-id-validation.yaml diff --git a/.github/workflows/jira-id-validation.yaml b/.github/workflows/jira-id-validation.yaml new file mode 100644 index 0000000..3498a90 --- /dev/null +++ b/.github/workflows/jira-id-validation.yaml @@ -0,0 +1,35 @@ +name: Jira ID Validation in GH PRs or Branch Names + +on: + pull_request: + types: [opened, reopened, synchronize, edited] + branches: [main, master] + +concurrency: + group: jira-validation-${{ github.event.pull_request.number }} + cancel-in-progress: true + +jobs: + validate-jira-id: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + repository: CheckmarxDev/Repository-Rules + token: ${{ secrets.GH_TOKEN }} + ref: AST-137615 # branch to test + + - name: Install Dependencies + run: pip install requests + + - name: Validate Jira ID + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_REPOSITORY: ${{ github.repository }} + PR_NUMBER: ${{ github.event.pull_request.number }} + BRANCH_NAME: ${{ github.head_ref }} + JIRA_USER: ${{ secrets.JIRA_EMAIL }} + JIRA_API_TOKEN: ${{ secrets.JIRA_CX_TOKEN }} + BACKDOOR_KEYWORD: ${{ secrets.BACKDOOR_KEYWORD }} + run: python scripts/jira_id_validation.py From 3372e8a3d6430e551f4ce7ed2a95a11c5c20e74e Mon Sep 17 00:00:00 2001 From: Aniket Shinde Date: Fri, 10 Apr 2026 16:54:26 +0530 Subject: [PATCH 5/6] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 792d600..6e9bbe3 100644 --- a/README.md +++ b/README.md @@ -1 +1,2 @@ # +# From 8e7e14fd161c8fddbbeabfdeca7fa60f704dd199 Mon Sep 17 00:00:00 2001 From: Aniket Shinde Date: Fri, 10 Apr 2026 17:44:28 +0530 Subject: [PATCH 6/6] trigger wf --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 6e9bbe3..407eb4e 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,3 @@ # # +#