diff --git a/.github/workflows/notify-triager.yml b/.github/workflows/notify-triager.yml index bcdd6ef3d352..b09b5a7ccb25 100644 --- a/.github/workflows/notify-triager.yml +++ b/.github/workflows/notify-triager.yml @@ -17,7 +17,10 @@ jobs: - name: Get commit message id: commit-message run: | + # 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 @@ -41,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 @@ -68,8 +72,9 @@ 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: | + echo "Hello1" IFS=' ' read -r -a codeTriagers <<< "${{ env.codeTriagers }}" reviewers=$(printf ', "%s"' "${codeTriagers[@]}") reviewers=[${reviewers:2}] @@ -83,8 +88,9 @@ 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: | + echo "Hello" IFS=' ' read -r -a docTriagers <<< "${{ env.docTriagers }}" reviewers=$(printf ', "%s"' "${docTriagers[@]}") reviewers=[${reviewers:2}] @@ -96,3 +102,4 @@ jobs: -d "{ \"reviewers\": $reviewers }" + \ No newline at end of file diff --git a/CODEOWNERS b/CODEOWNERS index ac1c2868806f..fecf77e64a6d 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