Skip to content

An open-source, faster Devin alternative

TypeScript

api-edge: renumber slack_connect_invites migration to 0022

utpal nadiger via Computer89909c2cc38c
diff --cc .github/workflows/deploy-api-edge.yml
index 136ad589,be640a66..c7b0249a
--- a/.github/workflows/deploy-api-edge.yml
+++ b/.github/workflows/deploy-api-edge.yml
@@@ -101,8 -101,10 +101,15 @@@ jobs
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
OC_MANAGED_CRED_HMAC_SECRET: ${{ secrets.OC_MANAGED_CRED_HMAC_SECRET }}
AGENT_RUNTIME_USAGE_HMAC_SECRET: ${{ secrets.AGENT_RUNTIME_USAGE_HMAC_SECRET }}
++<<<<<<< HEAD
+ # Optional: Slack Connect per signup (src/slack_connect.ts) stays dormant without it.
+ SLACK_CONNECT_TOKEN: ${{ secrets.SLACK_CONNECT_TOKEN }}
++=======
+ # Optional (lifecycle email, src/loops.ts): pushed only when set, so
+ # an unset GitHub secret leaves the worker's value alone.
+ LOOPS_API_KEY: ${{ secrets.LOOPS_API_KEY }}
+ LOOPS_EXCLUDE_EMAILS: ${{ secrets.LOOPS_EXCLUDE_EMAILS }}
++>>>>>>> origin/main
run: |
if [ -z "$CLOUDFLARE_API_TOKEN" ]; then
echo "CLOUDFLARE_API_TOKEN GitHub secret is required for Wrangler deploys" >&2
@@@ -114,9 -116,11 +121,17 @@@
jq -n \
--arg managedCredential "$OC_MANAGED_CRED_HMAC_SECRET" \
--arg runtimeUsage "$AGENT_RUNTIME_USAGE_HMAC_SECRET" \
++<<<<<<< HEAD
+ --arg slackConnect "${SLACK_CONNECT_TOKEN:-}" \
+ '{OC_MANAGED_CRED_HMAC_SECRET: $managedCredential, AGENT_RUNTIME_USAGE_HMAC_SECRET: $runtimeUsage}
+ + (if $slackConnect == "" then {} else {SLACK_CONNECT_TOKEN: $slackConnect} end)' \
++=======
+ --arg loopsKey "$LOOPS_API_KEY" \
+ --arg loopsExclude "$LOOPS_EXCLUDE_EMAILS" \
+ '{OC_MANAGED_CRED_HMAC_SECRET: $managedCredential, AGENT_RUNTIME_USAGE_HMAC_SECRET: $runtimeUsage}
+ + (if $loopsKey == "" then {} else {LOOPS_API_KEY: $loopsKey} end)
+ + (if $loopsExclude == "" then {} else {LOOPS_EXCLUDE_EMAILS: $loopsExclude} end)' \
++>>>>>>> origin/main
> "$RUNNER_TEMP/api-edge-secrets.json"
npx wrangler deploy \
-c wrangler.ci.toml \
diff --cc cloudflare-workers/api-edge/migrations/0022_slack_connect_invites.sql
index 2a0266c0,00000000..2a0266c0
mode 100644,000000..100644
--- a/cloudflare-workers/api-edge/migrations/0022_slack_connect_invites.sql
+++ b/cloudflare-workers/api-edge/migrations/0022_slack_connect_invites.sql