From 9758be5c718b9ddc596b57c47f831237469289e9 Mon Sep 17 00:00:00 2001 From: Sambhav Gupta Date: Sun, 17 Nov 2024 11:35:31 +0530 Subject: [PATCH 1/8] initial commit --- .github/workflows/notify-triager.yml | 65 +++++++++++++++------------- 1 file changed, 36 insertions(+), 29 deletions(-) diff --git a/.github/workflows/notify-triager.yml b/.github/workflows/notify-triager.yml index bcdd6ef3d35..49b65fdc95b 100644 --- a/.github/workflows/notify-triager.yml +++ b/.github/workflows/notify-triager.yml @@ -48,51 +48,58 @@ jobs: files: | !**.md - - name: Extract Doc Triage Maintainers id: doc-triager run: | - docTriagers=$(grep '^#' CODEOWNERS | tail -n 2 | head -n 1) - echo "docTriagers: $docTriagers" - prefix="#docTriagers: " - docTriagers=${docTriagers#$prefix} + docTriagers=$(grep '^#docTriagers' CODEOWNERS | sed 's/#docTriagers: //') + if [ -z "$docTriagers" ]; then + echo "No doc triagers found" + fi echo "docTriagers=$docTriagers" >> $GITHUB_ENV - name: Extract Code Triage Maintainers id: code-triager run: | - codeTriagers=$(grep '^#' CODEOWNERS | tail -n 1) - echo "codeTriagers: $codeTriagers" - prefix="#codeTriagers: " - codeTriagers=${codeTriagers#$prefix} + codeTriagers=$(grep '^#codeTriagers' CODEOWNERS | sed 's/#codeTriagers: //') + if [ -z "$codeTriagers" ]; then + echo "No code triagers found" + fi echo "codeTriagers=$codeTriagers" >> $GITHUB_ENV - name: Add Reviewers for code files if: steps.check-merge-branch.outputs.isMergeCommit == 'false' && steps.non-md-pr-changes.outputs.any_changed == 'true' run: | IFS=' ' read -r -a codeTriagers <<< "${{ env.codeTriagers }}" - reviewers=$(printf ', "%s"' "${codeTriagers[@]}") - reviewers=[${reviewers:2}] - curl \ - -X POST \ - -H "Authorization: token ${{ secrets.GH_TOKEN }}" \ - -H "Accept: application/vnd.github.v3+json" \ - https://api.github.com/repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/requested_reviewers \ - -d "{ - \"reviewers\": $reviewers - }" + if [ ${#codeTriagers[@]} -gt 0 ]; then + reviewers=$(printf ', "%s"' "${codeTriagers[@]}") + reviewers="[${reviewers:2}]" + curl \ + -X POST \ + -H "Authorization: token ${{ secrets.GH_TOKEN }}" \ + -H "Accept: application/vnd.github.v3+json" \ + https://api.github.com/repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/requested_reviewers \ + -d "{ + \"reviewers\": $reviewers + }" + else + echo "No code triagers found, skipping review assignment" + fi - name: Add Reviewers for doc files if: steps.check-merge-branch.outputs.isMergeCommit == 'false' && steps.md-pr-changes.outputs.any_changed == 'true' run: | IFS=' ' read -r -a docTriagers <<< "${{ env.docTriagers }}" - reviewers=$(printf ', "%s"' "${docTriagers[@]}") - reviewers=[${reviewers:2}] - curl \ - -X POST \ - -H "Authorization: token ${{ secrets.GH_TOKEN }}" \ - -H "Accept: application/vnd.github.v3+json" \ - https://api.github.com/repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/requested_reviewers \ - -d "{ - \"reviewers\": $reviewers - }" + if [ ${#docTriagers[@]} -gt 0 ]; then + reviewers=$(printf ', "%s"' "${docTriagers[@]}") + reviewers="[${reviewers:2}]" + curl \ + -X POST \ + -H "Authorization: token ${{ secrets.GH_TOKEN }}" \ + -H "Accept: application/vnd.github.v3+json" \ + https://api.github.com/repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/requested_reviewers \ + -d "{ + \"reviewers\": $reviewers + }" + else + echo "No doc triagers found, skipping review assignment" + fi \ No newline at end of file From cb72017203fecc9e540d4f3c625934e1735883c9 Mon Sep 17 00:00:00 2001 From: Sambhav Gupta Date: Fri, 6 Dec 2024 13:14:02 +0530 Subject: [PATCH 2/8] revert --- .github/workflows/notify-triager.yml | 66 +++++++++++++--------------- 1 file changed, 30 insertions(+), 36 deletions(-) diff --git a/.github/workflows/notify-triager.yml b/.github/workflows/notify-triager.yml index 49b65fdc95b..440cc9a0d07 100644 --- a/.github/workflows/notify-triager.yml +++ b/.github/workflows/notify-triager.yml @@ -48,58 +48,52 @@ jobs: files: | !**.md + - name: Extract Doc Triage Maintainers id: doc-triager run: | - docTriagers=$(grep '^#docTriagers' CODEOWNERS | sed 's/#docTriagers: //') - if [ -z "$docTriagers" ]; then - echo "No doc triagers found" - fi + docTriagers=$(grep '^#' CODEOWNERS | tail -n 2 | head -n 1) + echo "docTriagers: $docTriagers" + prefix="#docTriagers: " + docTriagers=${docTriagers#$prefix} echo "docTriagers=$docTriagers" >> $GITHUB_ENV - name: Extract Code Triage Maintainers id: code-triager run: | - codeTriagers=$(grep '^#codeTriagers' CODEOWNERS | sed 's/#codeTriagers: //') - if [ -z "$codeTriagers" ]; then - echo "No code triagers found" - fi + codeTriagers=$(grep '^#' CODEOWNERS | tail -n 1) + echo "codeTriagers: $codeTriagers" + prefix="#codeTriagers: " + codeTriagers=${codeTriagers#$prefix} echo "codeTriagers=$codeTriagers" >> $GITHUB_ENV - name: Add Reviewers for code files if: steps.check-merge-branch.outputs.isMergeCommit == 'false' && steps.non-md-pr-changes.outputs.any_changed == 'true' run: | IFS=' ' read -r -a codeTriagers <<< "${{ env.codeTriagers }}" - if [ ${#codeTriagers[@]} -gt 0 ]; then - reviewers=$(printf ', "%s"' "${codeTriagers[@]}") - reviewers="[${reviewers:2}]" - curl \ - -X POST \ - -H "Authorization: token ${{ secrets.GH_TOKEN }}" \ - -H "Accept: application/vnd.github.v3+json" \ - https://api.github.com/repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/requested_reviewers \ - -d "{ - \"reviewers\": $reviewers - }" - else - echo "No code triagers found, skipping review assignment" - fi + reviewers=$(printf ', "%s"' "${codeTriagers[@]}") + reviewers=[${reviewers:2}] + curl \ + -X POST \ + -H "Authorization: token ${{ secrets.GH_TOKEN }}" \ + -H "Accept: application/vnd.github.v3+json" \ + https://api.github.com/repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/requested_reviewers \ + -d "{ + \"reviewers\": $reviewers + }" - name: Add Reviewers for doc files if: steps.check-merge-branch.outputs.isMergeCommit == 'false' && steps.md-pr-changes.outputs.any_changed == 'true' run: | IFS=' ' read -r -a docTriagers <<< "${{ env.docTriagers }}" - if [ ${#docTriagers[@]} -gt 0 ]; then - reviewers=$(printf ', "%s"' "${docTriagers[@]}") - reviewers="[${reviewers:2}]" - curl \ - -X POST \ - -H "Authorization: token ${{ secrets.GH_TOKEN }}" \ - -H "Accept: application/vnd.github.v3+json" \ - https://api.github.com/repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/requested_reviewers \ - -d "{ - \"reviewers\": $reviewers - }" - else - echo "No doc triagers found, skipping review assignment" - fi \ No newline at end of file + reviewers=$(printf ', "%s"' "${docTriagers[@]}") + reviewers=[${reviewers:2}] + curl \ + -X POST \ + -H "Authorization: token ${{ secrets.GH_TOKEN }}" \ + -H "Accept: application/vnd.github.v3+json" \ + https://api.github.com/repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/requested_reviewers \ + -d "{ + \"reviewers\": $reviewers + }" + \ No newline at end of file From 62234097596c2a09689c6c4b2d2f9a44868c43c4 Mon Sep 17 00:00:00 2001 From: Sambhav Gupta Date: Fri, 6 Dec 2024 17:23:59 +0530 Subject: [PATCH 3/8] fix --- .github/workflows/notify-triager.yml | 59 ++++++++++------------------ 1 file changed, 20 insertions(+), 39 deletions(-) diff --git a/.github/workflows/notify-triager.yml b/.github/workflows/notify-triager.yml index 440cc9a0d07..705a0a96eca 100644 --- a/.github/workflows/notify-triager.yml +++ b/.github/workflows/notify-triager.yml @@ -9,7 +9,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout Repository - uses: actions/checkout@v4.1.1 + uses: actions/checkout@v4 with: repository: ${{ github.event.pull_request.head.repo.full_name }} ref: ${{ github.event.pull_request.head.sha }} @@ -17,23 +17,18 @@ jobs: - name: Get commit message id: commit-message run: | - commit_message=$(git log --format=%B -n 1 ${{ github.event.pull_request.head.sha }}) - echo "commit_message=$commit_message" >> $GITHUB_OUTPUT + commit_message=$(git log --format=%B -n 1 "${{ github.event.pull_request.head.sha }}") + echo "commit_message=${commit_message}" >> $GITHUB_ENV - name: Check if last commit is a merge commit id: check-merge-branch run: | - if [[ "${{ steps.commit-message.outputs.commit_message }}" == *"Merge branch"* ]]; then - echo "Last commit is a merge commit" - echo "isMergeCommit=true" >> $GITHUB_OUTPUT + if [[ "${{ env.commit_message }}" == *"Merge branch"* ]]; then + echo "isMergeCommit=true" >> $GITHUB_ENV else - echo "Last commit message does not contain Merge branch" - echo "isMergeCommit=false" >> $GITHUB_OUTPUT + echo "isMergeCommit=false" >> $GITHUB_ENV fi - - name: Checkout asyncapi/website Repository - uses: actions/checkout@v4.1.1 - - name: Check PR Changes for .md files id: md-pr-changes uses: tj-actions/changed-files@aa08304bd477b800d468db44fe10f6c61f7f7b11 # version 42.1.0 https://github.com/tj-actions/changed-files/releases/tag/v42.1.0 @@ -48,52 +43,38 @@ jobs: files: | !**.md - - name: Extract Doc Triage Maintainers id: doc-triager run: | - docTriagers=$(grep '^#' CODEOWNERS | tail -n 2 | head -n 1) - echo "docTriagers: $docTriagers" - prefix="#docTriagers: " - docTriagers=${docTriagers#$prefix} + docTriagers=$(awk '/^#docTriagers: / {print substr($0, index($0,$2))}' CODEOWNERS) echo "docTriagers=$docTriagers" >> $GITHUB_ENV - name: Extract Code Triage Maintainers id: code-triager run: | - codeTriagers=$(grep '^#' CODEOWNERS | tail -n 1) - echo "codeTriagers: $codeTriagers" - prefix="#codeTriagers: " - codeTriagers=${codeTriagers#$prefix} + codeTriagers=$(awk '/^#codeTriagers: / {print substr($0, index($0,$2))}' CODEOWNERS) echo "codeTriagers=$codeTriagers" >> $GITHUB_ENV - name: Add Reviewers for code files - if: steps.check-merge-branch.outputs.isMergeCommit == 'false' && steps.non-md-pr-changes.outputs.any_changed == 'true' + if: env.isMergeCommit == 'false' && steps.non-md-pr-changes.outputs.any_changed == 'true' run: | IFS=' ' read -r -a codeTriagers <<< "${{ env.codeTriagers }}" reviewers=$(printf ', "%s"' "${codeTriagers[@]}") reviewers=[${reviewers:2}] - curl \ - -X POST \ - -H "Authorization: token ${{ secrets.GH_TOKEN }}" \ - -H "Accept: application/vnd.github.v3+json" \ - https://api.github.com/repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/requested_reviewers \ - -d "{ - \"reviewers\": $reviewers - }" + curl -X POST \ + -H "Authorization: token ${{ secrets.GH_TOKEN }}" \ + -H "Accept: application/vnd.github.v3+json" \ + https://api.github.com/repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/requested_reviewers \ + -d "{\"reviewers\": $reviewers}" - name: Add Reviewers for doc files - if: steps.check-merge-branch.outputs.isMergeCommit == 'false' && steps.md-pr-changes.outputs.any_changed == 'true' + if: env.isMergeCommit == 'false' && steps.md-pr-changes.outputs.any_changed == 'true' run: | IFS=' ' read -r -a docTriagers <<< "${{ env.docTriagers }}" reviewers=$(printf ', "%s"' "${docTriagers[@]}") reviewers=[${reviewers:2}] - curl \ - -X POST \ - -H "Authorization: token ${{ secrets.GH_TOKEN }}" \ - -H "Accept: application/vnd.github.v3+json" \ - https://api.github.com/repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/requested_reviewers \ - -d "{ - \"reviewers\": $reviewers - }" - \ No newline at end of file + curl -X POST \ + -H "Authorization: token ${{ secrets.GH_TOKEN }}" \ + -H "Accept: application/vnd.github.v3+json" \ + https://api.github.com/repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/requested_reviewers \ + -d "{\"reviewers\": $reviewers}" From b0bbf6c4ce38cb7d4295f133ae41f6596038b8f7 Mon Sep 17 00:00:00 2001 From: Sambhav Gupta Date: Mon, 9 Dec 2024 13:55:22 +0530 Subject: [PATCH 4/8] fixed the spacing --- .github/workflows/notify-triager.yml | 62 +++++++++++++++++++--------- 1 file changed, 42 insertions(+), 20 deletions(-) diff --git a/.github/workflows/notify-triager.yml b/.github/workflows/notify-triager.yml index 705a0a96eca..84ff44ed92d 100644 --- a/.github/workflows/notify-triager.yml +++ b/.github/workflows/notify-triager.yml @@ -9,7 +9,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout Repository - uses: actions/checkout@v4 + uses: actions/checkout@v4.1.1 with: repository: ${{ github.event.pull_request.head.repo.full_name }} ref: ${{ github.event.pull_request.head.sha }} @@ -17,18 +17,26 @@ jobs: - name: Get commit message id: commit-message run: | - commit_message=$(git log --format=%B -n 1 "${{ github.event.pull_request.head.sha }}") - echo "commit_message=${commit_message}" >> $GITHUB_ENV + # Extract the commit message + commit_message=$(git log --format=%B -n 1 ${{ github.event.pull_request.head.sha }}) + commit_message=$(echo "$commit_message" | tr '\n' ' ') + commit_message=$(echo "$commit_message" | sed 's/[<>|]//g' | sed 's/[][]//g' | sed 's/(//g' | sed 's/)//g' | xargs) + echo "commit_message=$commit_message" >> $GITHUB_OUTPUT - name: Check if last commit is a merge commit id: check-merge-branch run: | - if [[ "${{ env.commit_message }}" == *"Merge branch"* ]]; then - echo "isMergeCommit=true" >> $GITHUB_ENV + if [[ "${{ steps.commit-message.outputs.commit_message }}" == *"Merge branch"* ]]; then + echo "Last commit is a merge commit" + echo "isMergeCommit=true" >> $GITHUB_OUTPUT else - echo "isMergeCommit=false" >> $GITHUB_ENV + echo "Last commit message does not contain Merge branch" + echo "isMergeCommit=false" >> $GITHUB_OUTPUT fi + - name: Checkout asyncapi/website Repository + uses: actions/checkout@v4.1.1 + - name: Check PR Changes for .md files id: md-pr-changes uses: tj-actions/changed-files@aa08304bd477b800d468db44fe10f6c61f7f7b11 # version 42.1.0 https://github.com/tj-actions/changed-files/releases/tag/v42.1.0 @@ -43,38 +51,52 @@ jobs: files: | !**.md + - name: Extract Doc Triage Maintainers id: doc-triager run: | - docTriagers=$(awk '/^#docTriagers: / {print substr($0, index($0,$2))}' CODEOWNERS) + docTriagers=$(grep '^#' CODEOWNERS | tail -n 2 | head -n 1) + echo "docTriagers: $docTriagers" + prefix="#docTriagers: " + docTriagers=${docTriagers#$prefix} echo "docTriagers=$docTriagers" >> $GITHUB_ENV - name: Extract Code Triage Maintainers id: code-triager run: | - codeTriagers=$(awk '/^#codeTriagers: / {print substr($0, index($0,$2))}' CODEOWNERS) + codeTriagers=$(grep '^#' CODEOWNERS | tail -n 1) + echo "codeTriagers: $codeTriagers" + prefix="#codeTriagers: " + codeTriagers=${codeTriagers#$prefix} echo "codeTriagers=$codeTriagers" >> $GITHUB_ENV - name: Add Reviewers for code files - if: env.isMergeCommit == 'false' && steps.non-md-pr-changes.outputs.any_changed == 'true' + if: steps.check-merge-branch.outputs.isMergeCommit == 'false' && steps.non-md-pr-changes.outputs.any_changed == 'true' run: | IFS=' ' read -r -a codeTriagers <<< "${{ env.codeTriagers }}" reviewers=$(printf ', "%s"' "${codeTriagers[@]}") reviewers=[${reviewers:2}] - curl -X POST \ - -H "Authorization: token ${{ secrets.GH_TOKEN }}" \ - -H "Accept: application/vnd.github.v3+json" \ - https://api.github.com/repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/requested_reviewers \ - -d "{\"reviewers\": $reviewers}" + curl \ + -X POST \ + -H "Authorization: token ${{ secrets.GH_TOKEN }}" \ + -H "Accept: application/vnd.github.v3+json" \ + https://api.github.com/repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/requested_reviewers \ + -d "{ + \"reviewers\": $reviewers + }" - name: Add Reviewers for doc files - if: env.isMergeCommit == 'false' && steps.md-pr-changes.outputs.any_changed == 'true' + if: steps.check-merge-branch.outputs.isMergeCommit == 'false' && steps.md-pr-changes.outputs.any_changed == 'true' run: | IFS=' ' read -r -a docTriagers <<< "${{ env.docTriagers }}" reviewers=$(printf ', "%s"' "${docTriagers[@]}") reviewers=[${reviewers:2}] - curl -X POST \ - -H "Authorization: token ${{ secrets.GH_TOKEN }}" \ - -H "Accept: application/vnd.github.v3+json" \ - https://api.github.com/repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/requested_reviewers \ - -d "{\"reviewers\": $reviewers}" + curl \ + -X POST \ + -H "Authorization: token ${{ secrets.GH_TOKEN }}" \ + -H "Accept: application/vnd.github.v3+json" \ + https://api.github.com/repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/requested_reviewers \ + -d "{ + \"reviewers\": $reviewers + }" + \ No newline at end of file From 097ad181fe2ef0cd5b835c0e9b25f7b4aa49f559 Mon Sep 17 00:00:00 2001 From: Sambhav Gupta Date: Mon, 9 Dec 2024 16:55:01 +0530 Subject: [PATCH 5/8] testing --- .github/workflows/notify-triager.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/notify-triager.yml b/.github/workflows/notify-triager.yml index 84ff44ed92d..ced0e73af25 100644 --- a/.github/workflows/notify-triager.yml +++ b/.github/workflows/notify-triager.yml @@ -71,7 +71,7 @@ jobs: echo "codeTriagers=$codeTriagers" >> $GITHUB_ENV - name: Add Reviewers for code files - if: steps.check-merge-branch.outputs.isMergeCommit == 'false' && steps.non-md-pr-changes.outputs.any_changed == 'true' + if: steps.non-md-pr-changes.outputs.any_changed == 'true' run: | IFS=' ' read -r -a codeTriagers <<< "${{ env.codeTriagers }}" reviewers=$(printf ', "%s"' "${codeTriagers[@]}") @@ -86,7 +86,7 @@ jobs: }" - name: Add Reviewers for doc files - if: steps.check-merge-branch.outputs.isMergeCommit == 'false' && steps.md-pr-changes.outputs.any_changed == 'true' + if: steps.md-pr-changes.outputs.any_changed == 'true' run: | IFS=' ' read -r -a docTriagers <<< "${{ env.docTriagers }}" reviewers=$(printf ', "%s"' "${docTriagers[@]}") From 541568c45237f1198a733ca44a1be041320633bc Mon Sep 17 00:00:00 2001 From: Sambhav Gupta Date: Mon, 9 Dec 2024 17:01:00 +0530 Subject: [PATCH 6/8] change of codeowners --- CODEOWNERS | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/CODEOWNERS b/CODEOWNERS index ac1c2868806..fecf77e64a6 100644 --- a/CODEOWNERS +++ b/CODEOWNERS @@ -4,15 +4,15 @@ # The last matching pattern has the most precedence. # For more details, read the following article on GitHub: https://help.github.com/articles/about-codeowners/. -# The default owners are automatically added as reviewers when you open a pull request unless different owners are specified in the file. -* @derberg @akshatnema @magicmatatjahu @anshgoyalevil @mayaleeeee @asyncapi-bot-eve +# # The default owners are automatically added as reviewers when you open a pull request unless different owners are specified in the file. +# * @derberg @akshatnema @magicmatatjahu @anshgoyalevil @mayaleeeee @asyncapi-bot-eve -# All .md files -*.md @quetzalliwrites @asyncapi-bot-eve +# # All .md files +# *.md @quetzalliwrites @asyncapi-bot-eve -markdown/blog/*.md @thulieblack @quetzalliwrites -markdown/community/*.md @thulieblack @quetzalliwrites +# markdown/blog/*.md @thulieblack @quetzalliwrites +# markdown/community/*.md @thulieblack @quetzalliwrites -README.md @quetzalliwrites @derberg @akshatnema @magicmatatjahu @mayaleeeee @asyncapi-bot-eve -#docTriagers: TRohit20 BhaswatiRoy VaishnaviNandakumar J0SAL -#codeTriagers: sambhavgupta0705 devilkiller-ag +# README.md @quetzalliwrites @derberg @akshatnema @magicmatatjahu @mayaleeeee @asyncapi-bot-eve +#docTriagers: palakgupta2712 +#codeTriagers: sambhavgupta0705 From 55a0c575ae1b45f8977ac75303d75832edc44d93 Mon Sep 17 00:00:00 2001 From: Sambhav Gupta Date: Mon, 9 Dec 2024 17:10:30 +0530 Subject: [PATCH 7/8] test --- .github/workflows/notify-triager.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/notify-triager.yml b/.github/workflows/notify-triager.yml index ced0e73af25..6851d31e0cb 100644 --- a/.github/workflows/notify-triager.yml +++ b/.github/workflows/notify-triager.yml @@ -44,6 +44,7 @@ jobs: files: | **.md + - name: Check PR Changes for non-.md files id: non-md-pr-changes uses: tj-actions/changed-files@aa08304bd477b800d468db44fe10f6c61f7f7b11 # version 42.1.0 https://github.com/tj-actions/changed-files/releases/tag/v42.1.0 @@ -88,6 +89,7 @@ jobs: - name: Add Reviewers for doc files if: steps.md-pr-changes.outputs.any_changed == 'true' run: | + echo "Hello" IFS=' ' read -r -a docTriagers <<< "${{ env.docTriagers }}" reviewers=$(printf ', "%s"' "${docTriagers[@]}") reviewers=[${reviewers:2}] From 5268cfb9b8c3929e1a3f2fb9eb7ff8717fa885f6 Mon Sep 17 00:00:00 2001 From: Sambhav Gupta Date: Mon, 9 Dec 2024 17:15:22 +0530 Subject: [PATCH 8/8] test --- .github/workflows/notify-triager.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/notify-triager.yml b/.github/workflows/notify-triager.yml index 6851d31e0cb..b09b5a7ccb2 100644 --- a/.github/workflows/notify-triager.yml +++ b/.github/workflows/notify-triager.yml @@ -74,6 +74,7 @@ jobs: - name: Add Reviewers for code files if: steps.non-md-pr-changes.outputs.any_changed == 'true' run: | + echo "Hello1" IFS=' ' read -r -a codeTriagers <<< "${{ env.codeTriagers }}" reviewers=$(printf ', "%s"' "${codeTriagers[@]}") reviewers=[${reviewers:2}]