Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: updated docTriagers and triager workflow #2806

Merged
merged 6 commits into from
Mar 31, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .github/workflows/notify-triager.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,23 @@ jobs:
- name: Checkout Repository
uses: actions/[email protected]

- 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
anshgoyalevil marked this conversation as resolved.
Show resolved Hide resolved

- 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 "skip" >> $GITHUB_OUTPUT
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How would this condition enforce the remaining steps to be skipped?

else
echo "Last commit message does not contain Merge branch"
echo "proceed" >> $GITHUB_OUTPUT
fi
anshgoyalevil marked this conversation as resolved.
Show resolved Hide resolved

- 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
Expand Down
2 changes: 1 addition & 1 deletion CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ pages/blog/*.md @thulieblack @alequetzalli
pages/community/*.md @thulieblack @alequetzalli

README.md @alequetzalli @derberg @akshatnema @magicmatatjahu @mayaleeeee @asyncapi-bot-eve
#docTriagers: TRohit20 octonawish-akcodes BhaswatiRoy VaishnaviNandakumar Arya-Gupta J0SAL
#docTriagers: TRohit20 octonawish-akcodes BhaswatiRoy VaishnaviNandakumar J0SAL
#codeTriagers: sambhavgupta0705
Loading