Skip to content
Merged
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
4b4e616
feat: force Jira linking to Github changes
pdodgen-revparts Dec 18, 2025
e1c9e20
fix: check to verify against Jira
pdodgen-revparts Dec 18, 2025
987f607
fix: not checking PR description as that doesn't get linked back to Jira
pdodgen-revparts Dec 18, 2025
73a7b25
fix: updating for PR description, ticket case insensitivity, and inva…
pdodgen-revparts Dec 18, 2025
30a7532
fix: fetching only status
pdodgen-revparts Dec 19, 2025
c2fad66
fix: simpler handling of cURL response
pdodgen-revparts Dec 19, 2025
4400164
chore: better naming for secrets
pdodgen-revparts Dec 19, 2025
2eea562
chore: better naming of secrets
pdodgen-revparts Dec 19, 2025
53362e9
chore: update secret usage
pdodgen-revparts Dec 19, 2025
2273a90
fix: improve jira api interaction to avoid exit code 43
pdodgen-revparts Dec 19, 2025
8ad5775
Merge remote-tracking branch 'origin/main' into force-jira-linking
pdodgen-revparts Dec 22, 2025
a5735f3
chore: fixing naming of secrets in error message
pdodgen-revparts Dec 22, 2025
b1d49db
chore: adding some error checking to curl command
pdodgen-revparts Dec 23, 2025
52b4697
chore: testing
pdodgen-revparts Dec 23, 2025
34bb069
chore: adding debugging to cUrl command
pdodgen-revparts Dec 23, 2025
acadbbb
chore: debugging cUrl
pdodgen-revparts Dec 23, 2025
73efa24
fix: checking against jira works
pdodgen-revparts Dec 23, 2025
d2def9a
Merge remote-tracking branch 'origin/main' into force-jira-linking
pdodgen-revparts Dec 23, 2025
5293eed
chore: cleanup
pdodgen-revparts Dec 23, 2025
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
15 changes: 13 additions & 2 deletions .github/workflows/jira-ticket-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -285,18 +285,29 @@ jobs:
# Create base64 encoded credentials
AUTH_STRING=$(echo -n "${JIRA_EMAIL}:${JIRA_TOKEN}" | base64)

# Validate variables before making the request
if [ -z "$TICKET" ]; then
echo "❌ TICKET variable is empty"
exit 1
fi


echo "🔍 Verifying ticket $TICKET exists in Jira..."

# Construct URL and validate it
API_URL="https://${JIRA_INSTANCE}/rest/api/3/issue/${TICKET}"

# Make API request to check if ticket exists
# Force HTTP/1.1 to avoid HTTP/2 issues that can cause "Failed sending HTTP request"
BODY=$(curl -s \
--http1.1 \
-X GET \
-H "Authorization: Basic ${AUTH_STRING}" \
-H "Accept: application/json" \
--max-time 30 \
"https://${JIRA_INSTANCE}/rest/api/3/issue/${TICKET}" 2>&1)
"${API_URL}" 2>&1)

# Check if curl failed (non-zero exit code means curl error, not HTTP error)
CURL_EXIT=$?
if [ $CURL_EXIT -ne 0 ]; then
echo "❌ Failed to connect to Jira API (curl exit code: $CURL_EXIT)"
echo "⚠️ Response: $BODY"
Expand Down