Skip to content

Instantly share code, notes, and snippets.

@tiagobnobrega
Created February 11, 2026 14:25
Show Gist options
  • Select an option

  • Save tiagobnobrega/1cc8a75fbb3abc53e96ecd33bb6621f7 to your computer and use it in GitHub Desktop.

Select an option

Save tiagobnobrega/1cc8a75fbb3abc53e96ecd33bb6621f7 to your computer and use it in GitHub Desktop.
PR Slack Message
cat <<EOF
Updated PRs Check:
$(gh search prs --created ">$(date -v-30d +"%F")" --draft=false --state "open" --sort "updated" --repo paramount-streaming/ctv-lite-monorepo --json number,title,url,state,author,createdAt --limit 30 | jq -r '
map(select(.author.type != "Bot"))
| .[0:18]
| map({days: (((now | floor) - (.createdAt | fromdate)) / 86400 | floor), title: (.title | gsub("\""; "\\\"")), state, url, author: .author.login, number})
| to_entries
| map(
"\(.key + 1 | tostring | ("0" * (2 - (tostring | length)) + tostring)) - \(.value.title | if length > 72 then .[0:69] + "..." else . + ("_" * (72 - length)) end) (\(.value.number)) - \(.value.url) [\(.value.days) days old]"
)
| join("\n")
')
Please react to this message with the number of the PRs you reviewed (:one: :two: :three: .... :10: :11: :12: :13: :14: :15: :16_circle: :may_17: :underage:)
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment