File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 22
22
REPO : ${{ github.repository }}
23
23
BRANCH_NAME : ${{ github.event.pull_request.head.ref }}
24
24
run : |
25
- CREATE_COMMENT_URL="https://api.github.com/repos/${REPO}/issues/${PR_NUMBER}/comments"
26
-
27
- JIRA_TICKET=$(grep -Eo '^DOC-[0-9]+' <<< "$BRANCH_NAME")
28
- JIRA_LINK="https://redislabs.atlassian.net/browse/${JIRA_TICKET}"
29
- COMMENT="[${JIRA_TICKET}](${JIRA_LINK})"
30
-
31
25
generate_post_data()
32
26
{
33
27
cat <<EOF
37
31
}
38
32
39
33
if [[ "$BRANCH_NAME" == DOC-* ]]; then
34
+ CREATE_COMMENT_URL="https://api.github.com/repos/${REPO}/issues/${PR_NUMBER}/comments"
35
+
36
+ JIRA_TICKET=$(grep -Eo '^DOC-[0-9]+' <<< "$BRANCH_NAME")
37
+ JIRA_LINK="https://redislabs.atlassian.net/browse/${JIRA_TICKET}"
38
+ COMMENT="[${JIRA_TICKET}](${JIRA_LINK})"
39
+
40
40
# Write comment on pull request
41
41
curl -Ls \
42
42
-X POST \
You can’t perform that action at this time.
0 commit comments