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 commit message #39

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
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
2 changes: 0 additions & 2 deletions .circleci/test-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ executors:
jobs:
test:
executor: << parameters.executor >>
environment:
JIRA_DEBUG_TEST_COMMIT: "HEAD"
parameters:
executor:
type: executor
Expand Down
9 changes: 4 additions & 5 deletions src/scripts/notify.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ remove_duplicates() {
declare -A seen
# Declare UNIQUE_KEYS as a global variable
UNIQUE_KEYS=()

for value in "$@"; do
# Splitting value into array by space, considering space-separated keys in a single string
for single_value in $value; do
Expand Down Expand Up @@ -121,7 +121,7 @@ getIssueKeys() {
JIRA_ISSUE_KEYS=$(printf '%s\n' "${KEY_ARRAY[@]}" | jq -R . | jq -s .)
echo "Issue keys found:"
echo "$JIRA_ISSUE_KEYS" | jq -r '.[]'

# Export JIRA_ISSUE_KEYS for use in other scripts or sessions
export JIRA_ISSUE_KEYS
}
Expand Down Expand Up @@ -238,9 +238,8 @@ JIRA_VAL_JIRA_WEBHOOK_URL="${JIRA_VAL_JIRA_WEBHOOK_URL}?verbosity=${JIRA_LOG_LEV
# JIRA_VAL_PIPELINE_NUMBER - pipeline number
TIME_EPOCH=$(date +%s)
TIME_STAMP=$(date -u +"%Y-%m-%dT%H:%M:%S.000Z")
# JIRA_DEBUG_TEST_COMMIT is only used in testing
COMMIT_MESSAGE=$(git show -s --format='%s' "${JIRA_DEBUG_TEST_COMMIT:-$CIRCLE_SHA1}")
COMMIT_BODY=$(git show -s --format='%b' "${JIRA_DEBUG_TEST_COMMIT:-$CIRCLE_SHA1}")
COMMIT_MESSAGE=$(git show -s --format='%s' "${CIRCLE_SHA1}^..${CIRCLE_SHA1}")
COMMIT_BODY=$(git show -s --format='%b' "${CIRCLE_SHA1}^..${CIRCLE_SHA1}")
JIRA_BUILD_STATUS=$(cat /tmp/circleci_jira_status)
PROJECT_VCS=""
PROJECT_SLUG=""
Expand Down