Skip to content

Instantly share code, notes, and snippets.

View clareliguori's full-sized avatar

Clare Liguori clareliguori

View GitHub Profile
@clareliguori
clareliguori / gh-clear-deploy-notifications
Created March 11, 2026 23:49
Clear notifications like "SoAndSo requested your review to deploy to an environment"
#!/usr/bin/env bash
# Clear GitHub deployment approval notifications (the "requested your review to deploy" spam)
# Requires: gh CLI with notifications scope
#
# Usage:
# gh-clear-deploy-notifications # dry-run, shows what would be cleared
# gh-clear-deploy-notifications --do # actually mark them as done
set -euo pipefail
ARG FUNCTION_RUNTIME
FROM mikesir87/aws-cli as code
ARG FUNCTION_NAME
ARG AWS_DEFAULT_REGION
ARG AWS_ACCESS_KEY_ID
ARG AWS_SECRET_ACCESS_KEY
RUN wget -O function.zip `aws lambda get-function --function-name $FUNCTION_NAME --query 'Code.Location' --output text`

Keybase proof

I hereby claim:

  • I am clareliguori on github.
  • I am clareliguori (https://keybase.io/clareliguori) on keybase.
  • I have a public key ASDu46ISxW5pKLuC-zblWmdLfT9G7bW4CLK5TjuY5mlxbQo

To claim this, I am signing this object: