Skip to content

Commit 71cb64a

Browse files
authored
Update check-for-issue.yml
1 parent c35cf12 commit 71cb64a

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

.github/workflows/check-for-issue.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
files_added=$(curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
2121
"https://api.github.com/repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/files" \
2222
| jq -r '.[] | select(.status == "added" and (.filename | startswith("_posts/"))) | .filename')
23-
23+
2424
if [ ! -z "$files_added" ]; then
2525
echo "is_new_blog=true" >> $GITHUB_OUTPUT
2626
else
@@ -34,9 +34,9 @@ jobs:
3434
token: ${{ secrets.GITHUB_TOKEN }}
3535
issue-number: ${{ github.event.pull_request.number }}
3636
body: |
37-
Thank you for submitting a blog!
38-
39-
The blog process is Submit a PR -> (Optional) Peer review -> Doc review -> Editorial review -> Marketing review -> Published.
37+
Thank you for submitting a blog post!
38+
39+
The blog post review process is: Submit a PR -> (Optional) Peer review -> Doc review -> Editorial review -> Marketing review -> Published.
4040
4141
- name: Check for linked issues
4242
if: steps.check-new-blog.outputs.is_new_blog == 'true'
@@ -58,10 +58,13 @@ jobs:
5858
issue-number: ${{ github.event.pull_request.number }}
5959
body: |
6060
Hi @${{ github.event.pull_request.user.login }},
61-
62-
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:
61+
62+
It looks like you're adding a new blog post but don't have an issue mentioned. Please link this PR to an open issue using one of these keywords in the PR description:
6363
- Closes #issue-number
6464
- Fixes #issue-number
6565
- Resolves #issue-number
66-
66+
67+
If an issue hasn't been created yet, please [create one](https://github.com/opensearch-project/project-website/issues/new?template=blog_post.yml) and then link it to this PR.
68+
69+
6770
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.

0 commit comments

Comments
 (0)