Skip to content
Open
Show file tree
Hide file tree
Changes from all 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
56 changes: 56 additions & 0 deletions .github/workflows/check-for-issue.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Check for blog issue

on:
pull_request:
types: [opened]
paths:
- '_posts/**'

permissions:
pull-requests: write

jobs:
check-linked-issues:
runs-on: ubuntu-latest

steps:
- name: Check if PR adds new blog
id: check-new-blog
run: |
files_added=$(curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
"https://api.github.com/repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/files" \
| jq -r '.[] | select(.status == "added" and (.filename | startswith("_posts/"))) | .filename')

if [ ! -z "$files_added" ]; then
echo "is_new_blog=true" >> $GITHUB_OUTPUT
else
echo "is_new_blog=false" >> $GITHUB_OUTPUT
fi

- name: Check for linked issues
if: steps.check-new-blog.outputs.is_new_blog == 'true'
id: check-issues
run: |
echo "${{ github.event.pull_request.body }}" > pr_body.txt
if grep -iE "(closes|fixes|resolves|references|ref|close|fix|resolve) #[0-9]+" pr_body.txt > /dev/null; then
echo "has_issue=true" >> $GITHUB_OUTPUT
else
echo "has_issue=false" >> $GITHUB_OUTPUT
fi
rm pr_body.txt

- name: Comment if no linked issue
if: steps.check-new-blog.outputs.is_new_blog == 'true' && steps.check-issues.outputs.has_issue == 'false'
uses: peter-evans/create-or-update-comment@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.pull_request.number }}
body: |
Hi @${{ github.event.pull_request.user.login }},

Looks like you're adding a new blog post and you don't have an issue mentioned. Please link this PR to an open issue using one of these keywords in the PR description:
- Closes #issue-number
- Fixes #issue-number
- Resolves #issue-number

If there isn't an issue yet, please [create one](https://github.com/opensearch-project/project-website/issues/new?template=blog_post.yml) and then link it to this PR.
2 changes: 2 additions & 0 deletions _posts/2025-05-05-plan-execute-agent.md
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,8 @@ One such example would be using the [WebSearchTool](https://docs.opensearch.org/

Additionally, this agent functions as an MCP client, enabling it to connect to MCP servers. This capability allows the agent to dynamically retrieve tools and configurations and participate in more complex workflows.



To learn how too connect your agent to an MCP server, see [Connecting to an external MCP server](https://docs.opensearch.org/docs/latest/ml-commons-plugin/agents-tools/mcp/mcp-connector/).

### Recommendations and troubleshooting
Expand Down