@luciq/react-native 19.4.0-47163-SNAPSHOT → 19.4.0-47504-SNAPSHOT

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@luciq/react-native",
3
3
  "description": "Luciq is the Agentic Observability Platform built for Mobile.",
4
- "version": "19.4.0-47163-SNAPSHOT",
4
+ "version": "19.4.0-47504-SNAPSHOT",
5
5
  "author": "Luciq (https://luciq.ai)",
6
6
  "repository": "github:luciqai/luciq-reactnative-sdk",
7
7
  "homepage": "https://www.luciq.ai/platforms/react-native",
@@ -1,15 +1,24 @@
1
1
  #!/bin/bash
2
2
 
3
+ set -euo pipefail
4
+
3
5
  pr_url="https://api.github.com/repos/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME/pulls?head=$CIRCLE_PROJECT_USERNAME:$CIRCLE_BRANCH&state=open"
4
6
  pr_response=$(curl --location --request GET "$pr_url" --header "Authorization: Bearer $RELEASE_GITHUB_TOKEN")
5
7
 
6
- if [ $(echo "$pr_response" | jq length) -eq 0 ]; then
7
- echo "No PR found to update"
8
- else
9
- pr_comment_url=$(echo "$pr_response" | jq -r ".[]._links.comments.href")
8
+ if ! echo "$pr_response" | jq -e 'type == "array"' >/dev/null; then
9
+ echo "Unexpected GitHub API response (not an array):"
10
+ echo "$pr_response"
11
+ exit 1
12
+ fi
10
13
 
11
- curl --location --request POST "$pr_comment_url" \
12
- --header 'Content-Type: application/json' \
13
- --header "Authorization: Bearer $RELEASE_GITHUB_TOKEN" \
14
- --data-raw "$1"
14
+ if [ "$(echo "$pr_response" | jq length)" -eq 0 ]; then
15
+ echo "No PR found to update"
16
+ exit 0
15
17
  fi
18
+
19
+ pr_comment_url=$(echo "$pr_response" | jq -r ".[]._links.comments.href")
20
+
21
+ curl --location --request POST "$pr_comment_url" \
22
+ --header 'Content-Type: application/json' \
23
+ --header "Authorization: Bearer $RELEASE_GITHUB_TOKEN" \
24
+ --data-raw "$1"