feat: added relay subsidy balance tracker script and workflow#211
Merged
feat: added relay subsidy balance tracker script and workflow#211
Conversation
4321c89 to
a7fd490
Compare
a7fd490 to
41d62f2
Compare
mcmire
reviewed
Jan 30, 2026
Contributor
mcmire
left a comment
There was a problem hiding this comment.
I had a comment below about the workflow file.
Can you add an entry to CHANGELOG.md as well?
mcmire
previously approved these changes
Jan 30, 2026
Contributor
mcmire
left a comment
There was a problem hiding this comment.
Left a comment but it is non-blocking. LGTM.
mcmire
reviewed
Jan 30, 2026
CHANGELOG.md
Outdated
|
|
||
| ### Added | ||
|
|
||
| - Add workflow **post-relay-subsidy-balance** to post Relay subsidy balance reports to Slack (via `.github/workflows/post-relay-subsidy-balance.yml` and `.github/scripts/post-relay-subsidy-balance.mjs`) |
Contributor
There was a problem hiding this comment.
Ah good memory, I'd forgotten about this.
One more thing, can you add a link to the current PR to this entry? This way we know where it came from.
Suggested change
| - Add workflow **post-relay-subsidy-balance** to post Relay subsidy balance reports to Slack (via `.github/workflows/post-relay-subsidy-balance.yml` and `.github/scripts/post-relay-subsidy-balance.mjs`) | |
| - Add workflow **post-relay-subsidy-balance** to post Relay subsidy balance reports to Slack (via `.github/workflows/post-relay-subsidy-balance.yml` and `.github/scripts/post-relay-subsidy-balance.mjs`) ([#211](https://github.com/MetaMask/github-tools/pull/211)) |
Contributor
Author
There was a problem hiding this comment.
That's hilarious. I had the same thought and added it locally but never saved my file 😂.
One moment!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds a workflow to fetch the Relay subsidy balance and posts it to Slack. This is used by the mUSD/Earn team
Note
Low Risk
Low risk: adds a new scheduled GitHub Actions workflow and a standalone Node script; main impact is external calls to Relay/Slack and potential alert noise if misconfigured.
Overview
Adds a new scheduled/dispatchable workflow,
post-relay-subsidy-balance, that generates a Slack Incoming Webhook payload and posts Relay subsidy balance updates to Slack every 12 hours.Introduces
.github/scripts/post-relay-subsidy-balance.mjsto fetch balances from Relay, sumamountUsd, apply configurable alert thresholds/timeouts via env vars, and emit a Block Kit message that flags low balances and mentions the top-up team.Updates
CHANGELOG.mdto record the new workflow.Written by Cursor Bugbot for commit a720ed2. This will update automatically on new commits. Configure here.