Skip to content

Commit

Permalink
enrich kapa report
Browse files Browse the repository at this point in the history
  • Loading branch information
hadar-co committed Jan 30, 2025
1 parent 52ca056 commit 1c34658
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/kapa-weekly-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,31 @@ jobs:
add // 0
' kapa_response.json)
# Slack enterprise count
slack_enterprise_count=$(jq -r '
.time_series |
map(.count_by_integration[]) |
map(select(.description == "Slack enterprise")) |
map(.count) |
add // 0
' kapa_response.json)
# Port app widget count
port_app_count=$(jq -r '
.time_series |
map(.count_by_integration[]) |
map(select(.description == "Port app widget")) |
map(.count) |
add // 0
' kapa_response.json)
# Combine all integrations in the desired order
integration_text="\n\n*Questions by Integration:*"
integration_text+="\n• Docs widget: $docs_ai_count"
integration_text+="\n• Community Slack channel: $community_count"
integration_text+="\n• Internal Slack channel: $internal_slack_count"
integration_text+="\n• Enterprise Slack workspace: $slack_enterprise_count"
integration_text+="\n• Port app widget: $port_app_count"
# Send to Slack using curl
curl -X POST -H 'Content-type: application/json' \
Expand Down

0 comments on commit 1c34658

Please sign in to comment.