From 2b113972b2952e18b01fa43708f983a334f03684 Mon Sep 17 00:00:00 2001 From: SATYAsasini Date: Mon, 17 Mar 2025 11:16:09 +0530 Subject: [PATCH 01/18] test --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 4390cda393..698e25c84d 100644 --- a/README.md +++ b/README.md @@ -180,7 +180,7 @@ Get updates on Devtron's development and chat with project maintainers, contribu - Articles, Howtos, Tutorials - [Devtron Blogs](https://devtron.ai/blog/) - Devtron is trusted by communities all across the globe. The list of organizations using Devtron can be found [here](./USERS.md). -### Join us at Discord channel +### Join us at Discord Channel

Date: Mon, 17 Mar 2025 11:28:50 +0530 Subject: [PATCH 02/18] add centralise workflow --- .github/workflows/pr-issue-validator.yaml | 270 +--------------------- 1 file changed, 7 insertions(+), 263 deletions(-) diff --git a/.github/workflows/pr-issue-validator.yaml b/.github/workflows/pr-issue-validator.yaml index 24836de7f4..ec2f7d9329 100644 --- a/.github/workflows/pr-issue-validator.yaml +++ b/.github/workflows/pr-issue-validator.yaml @@ -11,7 +11,8 @@ on: - 'main' - 'release-**' - 'develop' - - 'hotfix-v0**' + - 'hotfix-**' + - 'fix/pr-validator' # paths-ignore: # - 'docs/**' # - '.github/' @@ -21,265 +22,8 @@ on: # - 'sample-docker-templates/' jobs: - validate-PR-issue: - runs-on: ubuntu-latest - permissions: - issues: write - contents: read - pull-requests: write - repository-projects: read - steps: - - name: Checkout repository - uses: actions/checkout@v2 - with: - ref: ${{ github.event.pull_request.head.sha }} - fetch-depth: 0 - - - name: Validate Issue Reference - env: - GH_TOKEN: ${{ github.token }} - PR_BODY: ${{ github.event.pull_request.body }} - PRNUM: ${{ github.event.pull_request.number }} - TITLE: ${{ github.event.pull_request.title }} - run: | - - echo "base or target repo : ${{ github.event.pull_request.base.repo.full_name }}" - echo "head or source repo : ${{ github.event.pull_request.head.repo.full_name }}" - - if [[ ${{ github.event.pull_request.head.repo.full_name }} == ${{ github.event.pull_request.base.repo.full_name }} ]]; then - export forked=false - else - export forked=true - fi - - set -x - # Skip validation for documentation or chore PRs - if [[ "$TITLE" =~ ^(doc:|docs:|chore:|misc:|Release:|release:|Sync:|sync:) ]]; then - echo "Skipping validation for docs/chore PR." - echo "PR NUMBER-: $PRNUM " - gh pr edit $PRNUM --remove-label "PR:Issue-verification-failed" - gh pr edit $PRNUM --add-label "PR:Ready-to-Review" - exit 0 - fi - - # Define all issue matching patterns - patterns=( - "((Fixes|Resolves) #[0-9]+)" - "((Fixes|Resolves) https://github.com/devtron-labs/devtron/issues/[0-9]+)" - "((Fixes|Resolves) devtron-labs/devtron#[0-9]+)" - "(Fixes|Resolves):?\\s+\\[#([0-9]+)\\]" - "((Fixes|Resolves):? #devtron-labs/devops-sprint/issues/[0-9]+)" - "((Fixes|Resolves):? #devtron-labs/sprint-tasks/issues/[0-9]+)" - "((Fixes|Resolves) https://github.com/devtron-labs/devops-sprint/issues/[0-9]+)" - "((Fixes|Resolves) https://github.com/devtron-labs/sprint-tasks/issues/[0-9]+)" - "((Fixes|Resolves):? #devtron-labs/sprint-tasks#[0-9]+)" - ) - - # Extract issue number and repo from PR body - extract_issue_number() { - local pattern="$1" # Get the pattern as the first argument to the function - - # Check if PR_BODY matches the provided pattern using Bash's =~ regex operator - if [[ "$PR_BODY" =~ $pattern ]]; then - echo "matched for this pattern $pattern" - - issue_num=$(echo "$PR_BODY" | grep -oE "$pattern" | grep -oE "[0-9]+") - - # Extract the repository name (e.g., devtron-labs/devtron) from PR_BODY using grep - repo=$(echo "$PR_BODY" | grep -oE "devtron-labs/[a-zA-Z0-9_-]+") - echo "Extracted issue number: $issue_num from repo: $repo" - - return 0 # Return success - else - echo "No match for the pattern $pattern" - fi - return 1 # Return failure if no match - } - - issue_num="" - repo="devtron-labs/devtron" # Default repo - for pattern in "${patterns[@]}"; do - echo "Now checking for $pattern" - extract_issue_number "$pattern" && break - done - - if [[ -z "$issue_num" ]]; then - echo "No valid issue number found." - gh pr edit $PRNUM --add-label "PR:Issue-verification-failed" - gh pr edit $PRNUM --remove-label "PR:Ready-to-Review" - exit 1 - fi - - # Form the issue API URL dynamically - issue_api_url="https://api.github.com/repos/$repo/issues/$issue_num" - echo "API URL: $issue_api_url" - - if [[ $repo == "devtron-labs/devtron" || $repo == "devtron-labs/devtron-services" || $repo == "devtron-labs/dashboard" ]]; then - echo "No extra arguments needed: public repository detected." - response_code=$(curl -s -o /dev/null -w "%{http_code}" \ - "$issue_api_url") - - else - echo "Adding extra arguments for authentication: private repository detected." - response_code=$(curl -s -o /dev/null -w "%{http_code}" \ - --header "authorization: Bearer ${{ secrets.GH_PR_VALIDATOR_TOKEN }}" \ - "$issue_api_url") - fi - - echo "Response Code: $response_code" - if [[ "$response_code" -eq 200 ]]; then - echo "Issue #$issue_num is valid and exists in $repo." - - # Fetch the current state of the issue (open/closed) from the private repository. - if [[ $repo == "devtron-labs/devtron" || $repo == "devtron-labs/devtron-services" || $repo == "devtron-labs/dashboard" ]]; then - echo "No extra arguments needed: public repository detected." - issue_status=$(curl -s \ - "$issue_api_url"| jq '.state'|tr -d \") - else - echo "Adding extra arguments for authentication: private repository detected." - issue_status=$(curl -s \ - --header "authorization: Bearer ${{ secrets.GH_PR_VALIDATOR_TOKEN }}" \ - "$issue_api_url"| jq '.state'|tr -d \") - fi - echo "Issue Number : $issue_num Status: $issue_status" - # Check if the issue is still open. - # if [[ "$issue_status" == open ]]; then - # echo "Issue #$issue_num is opened." - if [[ $forked == true ]]; then - echo "PR:Ready-to-Review, exiting gracefully" - exit 0 - fi - # Remove the 'Issue-verification-failed' label (if present) and add 'Ready-to-Review'. - gh pr edit $PRNUM --remove-label "PR:Issue-verification-failed" - gh pr edit $PRNUM --add-label "PR:Ready-to-Review" - echo "PR:Ready-to-Review, exiting gracefully" - exit 0 - # else - # echo "Issue #$issue_num is closed. Please link an open issue to proceed." - # if [[ $forked == true ]]; then - # echo "PR:Ready-to-Review, exiting gracefully" - # exit 0 - # fi - # Add a comment to the PR indicating the issue is not linked correctly. - # gh pr comment $PRNUM --body "PR is linked to a closed issue. Please link an open issue to proceed." - - # Add the 'Issue-verification-failed' label and remove 'Ready-to-Review'. - # gh pr edit $PRNUM --add-label "PR:Issue-verification-failed" - # gh pr edit $PRNUM --remove-label "PR:Ready-to-Review" - # exit 1 - #fi - else - echo "Issue not found. Invalid URL or issue number." - # Add a comment to the PR indicating the issue is not linked correctly. - gh pr comment $PRNUM --body "PR is not linked to a valid issue. Please update the issue link." - - # Apply 'Issue-verification-failed' label and remove 'Ready-to-Review' label. - gh pr edit $PRNUM --add-label "PR:Issue-verification-failed" - gh pr edit $PRNUM --remove-label "PR:Ready-to-Review" - exit 1 - fi - - name: Check SQL file format and duplicates - shell: bash - env: - pr_no: ${{ github.event.pull_request.number }} - GH_TOKEN: ${{ github.token }} - run: | - # Fetch the latest changes from the main branch - git fetch origin main - - # Get the list of changed files - git diff origin/main...HEAD --name-only > diff - - # Specify the directory containing migration files - MIGRATION_DIR="scripts/sql" - ls - pwd - - # Print changed files - echo "Changed files:" - cat diff - - changed_files="" - while IFS= read -r file; do - if [[ $file == $MIGRATION_DIR/* && $file == *.up.sql ]]; then - changed_files+="$file\n" - fi - done < diff - - # Print the filtered .up.sql files - echo "Filtered .up.sql files:" - echo -e "$changed_files" - - # Check if there are any .up.sql migration files in the changed files list - if [ -z "$changed_files" ]; then - echo "No .up.sql migration files found in the changes." - else - # Extract unique migration numbers from the directory (considering only .up.sql files) - existing_migrations=$(ls $MIGRATION_DIR | grep -E "\.up\.sql$" | grep -oE "[0-9]{3}[0-9]{3}[0-9]{2}" | sort | uniq) - - # Exclude migration numbers from changed files in existing_migrations - while read -r file; do - migration_number=$(basename "$file" | grep -oE "[0-9]{3}[0-9]{3}[0-9]{2}") - existing_migrations=$(echo "$existing_migrations" | grep -v "$migration_number") - done <<< "$changed_files" - - # Validate each changed .up.sql migration file - is_valid=true - processed_migrations=() - while read -r file; do - # Extract migration number from the filename - migration_number=$(basename "$file" | grep -oE "[0-9]{3}[0-9]{3}[0-9]{2}") - - # Check if the filename has the full XXXPPPNN format - if [[ ! $(basename "$file") =~ ^[0-9]{3}[0-9]{3}[0-9]{2}_ ]]; then - echo "Error: Migration file $file does not have the complete XXXPPPNN format." - is_valid=false - continue - fi - - if [ -z "$migration_number" ]; then - echo "Warning: Could not extract migration number from $file." - continue - fi - - # Check if this migration number has already been processed - if [[ " ${processed_migrations[@]} " =~ " $migration_number " ]]; then - continue - fi - processed_migrations+=("$migration_number") - - # Check if the migration number is unique - if echo "$existing_migrations" | grep -q "$migration_number"; then - echo "Error: Migration number $migration_number already exists." - is_valid=false - fi - - # Check if the migration number is greater than previous ones - last_migration=$(echo "$existing_migrations" | tail -n 1) - if [ "$migration_number" -le "$last_migration" ]; then - echo "Error: Migration number $migration_number is not greater than the latest ($last_migration)." - is_valid=false - fi - - # Check for sequential hotfix requirement (if NN > 01, check for NN-1) - hotfix_number=$(echo "$migration_number" | grep -oE "[0-9]{2}$") - if [ "$hotfix_number" -gt "01" ]; then - previous_hotfix=$(printf "%02d" $((10#$hotfix_number - 1))) - expected_previous_number="${migration_number:0:6}$previous_hotfix" - if ! echo "$existing_migrations" | grep -q "$expected_previous_number"; then - echo "Error: Previous hotfix migration $expected_previous_number not found for $migration_number." - is_valid=false - fi - fi - - done <<< "$changed_files" - - if [ "$is_valid" = false ]; then - echo "Validation failed. Please fix the errors before merging." - gh pr comment $pr_no --body "The Migration files providede inside of the PR does not pass the criteria!!" - exit 1 - fi - - echo "All .up.sql migration file validations passed." - gh pr comment $pr_no --body "The migration files have successfully passed the criteria!!" - fi + pr-validation: + uses: devtron-labs/utilities/.github/workflows/pr-validator.yaml@feat/central-pr-validator + secrets: inherit + with: + validate_sql: true # Enable/disable SQL validation \ No newline at end of file From 31efc177323e9d1e60157022c9dcbcaf47bb755d Mon Sep 17 00:00:00 2001 From: SATYAsasini Date: Tue, 18 Mar 2025 15:46:14 +0530 Subject: [PATCH 03/18] fix: permisssion --- .github/workflows/pr-issue-validator.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pr-issue-validator.yaml b/.github/workflows/pr-issue-validator.yaml index ec2f7d9329..60ecaff490 100644 --- a/.github/workflows/pr-issue-validator.yaml +++ b/.github/workflows/pr-issue-validator.yaml @@ -26,4 +26,7 @@ jobs: uses: devtron-labs/utilities/.github/workflows/pr-validator.yaml@feat/central-pr-validator secrets: inherit with: - validate_sql: true # Enable/disable SQL validation \ No newline at end of file + validate_sql: true # Enable/disable SQL validation + permissions: + issues: write # Ensure you have the right permissions for labels and PR management + pull-requests: write \ No newline at end of file From 48672db5df6bdd1fc1ed35303dc8308e63bc79dd Mon Sep 17 00:00:00 2001 From: SATYAsasini Date: Tue, 18 Mar 2025 16:11:21 +0530 Subject: [PATCH 04/18] chore: changes in flow --- .github/workflows/pr-issue-validator.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr-issue-validator.yaml b/.github/workflows/pr-issue-validator.yaml index 60ecaff490..fac5ff871f 100644 --- a/.github/workflows/pr-issue-validator.yaml +++ b/.github/workflows/pr-issue-validator.yaml @@ -1,7 +1,7 @@ name: Validate Pull Request on: - pull_request: + pull_request_target: types: - opened - synchronize From bef78074fa80175d180491c0bc953e3ad1f35e8e Mon Sep 17 00:00:00 2001 From: SATYAsasini Date: Tue, 18 Mar 2025 16:24:19 +0530 Subject: [PATCH 05/18] chore: changes in trigger --- .github/workflows/pr-issue-validator.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr-issue-validator.yaml b/.github/workflows/pr-issue-validator.yaml index fac5ff871f..60ecaff490 100644 --- a/.github/workflows/pr-issue-validator.yaml +++ b/.github/workflows/pr-issue-validator.yaml @@ -1,7 +1,7 @@ name: Validate Pull Request on: - pull_request_target: + pull_request: types: - opened - synchronize From ce9fa6ede6b06ee58b02e529f5caeae567365b76 Mon Sep 17 00:00:00 2001 From: SATYAsasini Date: Tue, 18 Mar 2025 16:44:36 +0530 Subject: [PATCH 06/18] chore: trigger event changes --- .github/workflows/pr-issue-validator.yaml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/pr-issue-validator.yaml b/.github/workflows/pr-issue-validator.yaml index 60ecaff490..fae9fc0187 100644 --- a/.github/workflows/pr-issue-validator.yaml +++ b/.github/workflows/pr-issue-validator.yaml @@ -2,11 +2,8 @@ name: Validate Pull Request on: pull_request: - types: - - opened - - synchronize - - edited - - reopened + pull_request_target: + types: [opened, synchronize, edited, reopened] branches: - 'main' - 'release-**' From 036d45f6dd29194cc5408900037f73b580168ae2 Mon Sep 17 00:00:00 2001 From: SATYAsasini Date: Tue, 18 Mar 2025 17:30:58 +0530 Subject: [PATCH 07/18] misc: chore --- .github/workflows/pr-issue-validator.yaml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pr-issue-validator.yaml b/.github/workflows/pr-issue-validator.yaml index fae9fc0187..2f97744155 100644 --- a/.github/workflows/pr-issue-validator.yaml +++ b/.github/workflows/pr-issue-validator.yaml @@ -1,9 +1,8 @@ name: Validate Pull Request on: - pull_request: - pull_request_target: - types: [opened, synchronize, edited, reopened] + pull_request_target: + types: [opened, synchronize, edited, reopened] branches: - 'main' - 'release-**' From f6f2a994a0ba8742f16453b11a038ee899a73299 Mon Sep 17 00:00:00 2001 From: SATYAsasini Date: Tue, 18 Mar 2025 17:32:45 +0530 Subject: [PATCH 08/18] misc: chore --- .github/workflows/pr-issue-validator.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr-issue-validator.yaml b/.github/workflows/pr-issue-validator.yaml index 2f97744155..82b425cb8a 100644 --- a/.github/workflows/pr-issue-validator.yaml +++ b/.github/workflows/pr-issue-validator.yaml @@ -25,4 +25,4 @@ jobs: validate_sql: true # Enable/disable SQL validation permissions: issues: write # Ensure you have the right permissions for labels and PR management - pull-requests: write \ No newline at end of file + pull-requests: write # This ensures you can modify pull request labels From 55af3d392ec208256989f4301ffa6bc377483379 Mon Sep 17 00:00:00 2001 From: SATYAsasini Date: Tue, 18 Mar 2025 17:33:43 +0530 Subject: [PATCH 09/18] misc: chore --- .github/workflows/pr-issue-validator.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr-issue-validator.yaml b/.github/workflows/pr-issue-validator.yaml index 82b425cb8a..baf8e21872 100644 --- a/.github/workflows/pr-issue-validator.yaml +++ b/.github/workflows/pr-issue-validator.yaml @@ -2,7 +2,7 @@ name: Validate Pull Request on: pull_request_target: - types: [opened, synchronize, edited, reopened] + types: [opened, synchronize, edited] branches: - 'main' - 'release-**' From 7f26a5bd005fdb1fc474c5f0b32707fd9e976d10 Mon Sep 17 00:00:00 2001 From: SATYAsasini Date: Tue, 18 Mar 2025 17:35:42 +0530 Subject: [PATCH 10/18] misc: chore --- .github/workflows/pr-issue-validator.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr-issue-validator.yaml b/.github/workflows/pr-issue-validator.yaml index baf8e21872..6ea66b6ec2 100644 --- a/.github/workflows/pr-issue-validator.yaml +++ b/.github/workflows/pr-issue-validator.yaml @@ -1,7 +1,7 @@ name: Validate Pull Request on: - pull_request_target: + pull_request: types: [opened, synchronize, edited] branches: - 'main' From 714666067a246c0a7bcfcad6683fdddf2c5c0d44 Mon Sep 17 00:00:00 2001 From: SATYAsasini Date: Tue, 18 Mar 2025 17:41:40 +0530 Subject: [PATCH 11/18] misc: chore --- .github/workflows/pr-issue-validator.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr-issue-validator.yaml b/.github/workflows/pr-issue-validator.yaml index 6ea66b6ec2..baf8e21872 100644 --- a/.github/workflows/pr-issue-validator.yaml +++ b/.github/workflows/pr-issue-validator.yaml @@ -1,7 +1,7 @@ name: Validate Pull Request on: - pull_request: + pull_request_target: types: [opened, synchronize, edited] branches: - 'main' From 4b805a0808b771c2ff085e09422b83e9c283b44c Mon Sep 17 00:00:00 2001 From: SATYAsasini Date: Tue, 18 Mar 2025 17:53:33 +0530 Subject: [PATCH 12/18] misc: chore --- .github/workflows/pr-issue-validator.yaml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/pr-issue-validator.yaml b/.github/workflows/pr-issue-validator.yaml index baf8e21872..4cf2b4bfa6 100644 --- a/.github/workflows/pr-issue-validator.yaml +++ b/.github/workflows/pr-issue-validator.yaml @@ -16,13 +16,9 @@ on: # - 'charts/' # - 'manifests/' # - 'sample-docker-templates/' - jobs: pr-validation: uses: devtron-labs/utilities/.github/workflows/pr-validator.yaml@feat/central-pr-validator secrets: inherit with: validate_sql: true # Enable/disable SQL validation - permissions: - issues: write # Ensure you have the right permissions for labels and PR management - pull-requests: write # This ensures you can modify pull request labels From 74b071af96ada1845bf75f9f07032321dcb2a767 Mon Sep 17 00:00:00 2001 From: SATYAsasini Date: Tue, 18 Mar 2025 18:09:36 +0530 Subject: [PATCH 13/18] test --- .github/workflows/pr-issue-validator.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr-issue-validator.yaml b/.github/workflows/pr-issue-validator.yaml index 4cf2b4bfa6..2d31a17dae 100644 --- a/.github/workflows/pr-issue-validator.yaml +++ b/.github/workflows/pr-issue-validator.yaml @@ -21,4 +21,4 @@ jobs: uses: devtron-labs/utilities/.github/workflows/pr-validator.yaml@feat/central-pr-validator secrets: inherit with: - validate_sql: true # Enable/disable SQL validation + validate_sql: true # Enable/disable SQL validationsq From 36c6572e2085afe7d13584ccec2749b7197d37da Mon Sep 17 00:00:00 2001 From: SATYAsasini Date: Tue, 18 Mar 2025 18:11:22 +0530 Subject: [PATCH 14/18] test --- .github/workflows/pr-issue-validator.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pr-issue-validator.yaml b/.github/workflows/pr-issue-validator.yaml index 2d31a17dae..857736693e 100644 --- a/.github/workflows/pr-issue-validator.yaml +++ b/.github/workflows/pr-issue-validator.yaml @@ -2,7 +2,10 @@ name: Validate Pull Request on: pull_request_target: - types: [opened, synchronize, edited] + types: + - opened + - synchronize + - edited branches: - 'main' - 'release-**' From f4368b32367310dcc35e950d4404f4614970946b Mon Sep 17 00:00:00 2001 From: SATYAsasini Date: Tue, 18 Mar 2025 18:12:13 +0530 Subject: [PATCH 15/18] test --- .github/workflows/pr-issue-validator.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr-issue-validator.yaml b/.github/workflows/pr-issue-validator.yaml index 857736693e..d40b53978c 100644 --- a/.github/workflows/pr-issue-validator.yaml +++ b/.github/workflows/pr-issue-validator.yaml @@ -1,7 +1,7 @@ name: Validate Pull Request on: - pull_request_target: + pull_request: types: - opened - synchronize From 8926dea4771b3686cd81037542796af89381d1ea Mon Sep 17 00:00:00 2001 From: SATYAsasini Date: Tue, 18 Mar 2025 18:14:09 +0530 Subject: [PATCH 16/18] test --- .github/workflows/pr-issue-validator.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr-issue-validator.yaml b/.github/workflows/pr-issue-validator.yaml index d40b53978c..857736693e 100644 --- a/.github/workflows/pr-issue-validator.yaml +++ b/.github/workflows/pr-issue-validator.yaml @@ -1,7 +1,7 @@ name: Validate Pull Request on: - pull_request: + pull_request_target: types: - opened - synchronize From 80445a2fa390703b56733854d19ddd7f687276ae Mon Sep 17 00:00:00 2001 From: SATYAsasini Date: Tue, 18 Mar 2025 18:20:45 +0530 Subject: [PATCH 17/18] chore: misc --- .github/workflows/pr-issue-test.yaml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/pr-issue-test.yaml diff --git a/.github/workflows/pr-issue-test.yaml b/.github/workflows/pr-issue-test.yaml new file mode 100644 index 0000000000..f5388980d8 --- /dev/null +++ b/.github/workflows/pr-issue-test.yaml @@ -0,0 +1,24 @@ +name: Validate Pull Request-TEST(pull_request_target) + +on: + pull_request_target: + types: + - opened + - synchronize + - edited + # branches: + # - 'main' + # - 'release-**' + # - 'develop' + # - 'hotfix-**' + # - 'fix/pr-validator' +jobs: + pr-validation: + runs-on: ubuntu-latest + steps: + - name: test + run: echo "workflow triggered" + # uses: devtron-labs/utilities/.github/workflows/pr-validator.yaml@feat/central-pr-validator + # secrets: inherit + # with: + # validate_sql: true \ No newline at end of file From 98e37ea53d0abddfa2105ed9acdd72b97acc13db Mon Sep 17 00:00:00 2001 From: SATYAsasini Date: Tue, 18 Mar 2025 18:44:38 +0530 Subject: [PATCH 18/18] chore: test --- .github/workflows/pr-issue-validator.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr-issue-validator.yaml b/.github/workflows/pr-issue-validator.yaml index 857736693e..d40b53978c 100644 --- a/.github/workflows/pr-issue-validator.yaml +++ b/.github/workflows/pr-issue-validator.yaml @@ -1,7 +1,7 @@ name: Validate Pull Request on: - pull_request_target: + pull_request: types: - opened - synchronize