From 308f76697723e93ff36fa34e1340379fa3574774 Mon Sep 17 00:00:00 2001 From: kolchfa-aws <105444904+kolchfa-aws@users.noreply.github.com> Date: Wed, 4 Jun 2025 14:40:27 -0400 Subject: [PATCH 1/6] Update check-for-issue.yml --- .github/workflows/check-for-issue.yml | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/.github/workflows/check-for-issue.yml b/.github/workflows/check-for-issue.yml index 3ddec8cbf1..c63c8001aa 100644 --- a/.github/workflows/check-for-issue.yml +++ b/.github/workflows/check-for-issue.yml @@ -27,22 +27,14 @@ jobs: echo "is_new_blog=false" >> $GITHUB_OUTPUT fi - - name: Get PR body - if: steps.check-new-blog.outputs.is_new_blog == 'true' - id: pr-body - run: | - body="${{ github.event.pull_request.body }}" - echo "body=${body}" >> $GITHUB_OUTPUT - - name: Check for linked issues if: steps.check-new-blog.outputs.is_new_blog == 'true' id: check-issues run: | - body="${{ github.event.pull_request.body }}" - if echo "$body" | grep -iE "(closes|fixes|resolves|references|ref|close|fix|resolve) #[0-9]+"; then - echo "has_issue=true" >> $GITHUB_OUTPUT + if grep -iE "(closes|fixes|resolves|references|ref|close|fix|resolve) #[0-9]+" <<< "${{ github.event.pull_request.body }}"; then + echo "has_issue=true" >> $GITHUB_OUTPUT else - echo "has_issue=false" >> $GITHUB_OUTPUT + echo "has_issue=false" >> $GITHUB_OUTPUT fi - name: Comment if no linked issue @@ -59,4 +51,4 @@ jobs: - 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. \ No newline at end of file + 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. From bae25f6c00f3e70d6b5d5bfdfc2b3105f2b6af2b Mon Sep 17 00:00:00 2001 From: kolchfa-aws <105444904+kolchfa-aws@users.noreply.github.com> Date: Wed, 4 Jun 2025 14:46:59 -0400 Subject: [PATCH 2/6] Update check-for-issue.yml --- .github/workflows/check-for-issue.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/check-for-issue.yml b/.github/workflows/check-for-issue.yml index c63c8001aa..f0c85e0ba2 100644 --- a/.github/workflows/check-for-issue.yml +++ b/.github/workflows/check-for-issue.yml @@ -1,4 +1,4 @@ -name: Check for issue for blogs +name: Check for blog issue on: pull_request: @@ -31,7 +31,8 @@ jobs: if: steps.check-new-blog.outputs.is_new_blog == 'true' id: check-issues run: | - if grep -iE "(closes|fixes|resolves|references|ref|close|fix|resolve) #[0-9]+" <<< "${{ github.event.pull_request.body }}"; then + echo '${{ github.event.pull_request.body }}' | grep -iE "(closes|fixes|resolves|references|ref|close|fix|resolve) #[0-9]+" > /dev/null + if [ $? -eq 0 ]; then echo "has_issue=true" >> $GITHUB_OUTPUT else echo "has_issue=false" >> $GITHUB_OUTPUT From 3d25036502edbc7f61d3006c41505c7ccb1b038a Mon Sep 17 00:00:00 2001 From: kolchfa-aws <105444904+kolchfa-aws@users.noreply.github.com> Date: Wed, 4 Jun 2025 14:53:12 -0400 Subject: [PATCH 3/6] Update check-for-issue.yml --- .github/workflows/check-for-issue.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/check-for-issue.yml b/.github/workflows/check-for-issue.yml index f0c85e0ba2..5bff2d6cdd 100644 --- a/.github/workflows/check-for-issue.yml +++ b/.github/workflows/check-for-issue.yml @@ -31,12 +31,13 @@ jobs: if: steps.check-new-blog.outputs.is_new_blog == 'true' id: check-issues run: | - echo '${{ github.event.pull_request.body }}' | grep -iE "(closes|fixes|resolves|references|ref|close|fix|resolve) #[0-9]+" > /dev/null - if [ $? -eq 0 ]; then - echo "has_issue=true" >> $GITHUB_OUTPUT + 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 + 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' From 9e883d7f92d50780ee7656470600aef089dced1e Mon Sep 17 00:00:00 2001 From: kolchfa-aws <105444904+kolchfa-aws@users.noreply.github.com> Date: Wed, 4 Jun 2025 15:25:14 -0400 Subject: [PATCH 4/6] Update check-for-issue.yml --- .github/workflows/check-for-issue.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/check-for-issue.yml b/.github/workflows/check-for-issue.yml index 5bff2d6cdd..4bb511006b 100644 --- a/.github/workflows/check-for-issue.yml +++ b/.github/workflows/check-for-issue.yml @@ -27,6 +27,15 @@ jobs: echo "is_new_blog=false" >> $GITHUB_OUTPUT fi + - name: Add blog process comment + if: steps.check-new-blog.outputs.is_new_blog == 'true' + uses: peter-evans/create-or-update-comment@v3 + with: + token: ${{ secrets.GITHUB_TOKEN }} + issue-number: ${{ github.event.pull_request.number }} + body: | + The blog process is Submit a PR -> (Optional) Peer review -> Doc review -> Editorial review -> Marketing review -> Published. + - name: Check for linked issues if: steps.check-new-blog.outputs.is_new_blog == 'true' id: check-issues From c35cf12811be2126254e2ea783561681d38ab71f Mon Sep 17 00:00:00 2001 From: kolchfa-aws <105444904+kolchfa-aws@users.noreply.github.com> Date: Wed, 4 Jun 2025 15:33:24 -0400 Subject: [PATCH 5/6] Update check-for-issue.yml --- .github/workflows/check-for-issue.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/check-for-issue.yml b/.github/workflows/check-for-issue.yml index 4bb511006b..2a983dde0f 100644 --- a/.github/workflows/check-for-issue.yml +++ b/.github/workflows/check-for-issue.yml @@ -34,6 +34,8 @@ jobs: token: ${{ secrets.GITHUB_TOKEN }} issue-number: ${{ github.event.pull_request.number }} body: | + Thank you for submitting a blog! + The blog process is Submit a PR -> (Optional) Peer review -> Doc review -> Editorial review -> Marketing review -> Published. - name: Check for linked issues From 9e7fb07785517ea37d6dc8536ea79b2db0b7bfdf Mon Sep 17 00:00:00 2001 From: kolchfa-aws <105444904+kolchfa-aws@users.noreply.github.com> Date: Wed, 4 Jun 2025 15:33:46 -0400 Subject: [PATCH 6/6] Create final_test.md --- _posts/final_test.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 _posts/final_test.md diff --git a/_posts/final_test.md b/_posts/final_test.md new file mode 100644 index 0000000000..267f192810 --- /dev/null +++ b/_posts/final_test.md @@ -0,0 +1 @@ +# Final test