Skip to content

Fix backfillReportingChannel to actually resolve channel by name - #12

Draft
augmentcode[bot] wants to merge 1 commit into
mainfrom
fix/backfill-reporting-channel-lookup
Draft

Fix backfillReportingChannel to actually resolve channel by name#12
augmentcode[bot] wants to merge 1 commit into
mainfrom
fix/backfill-reporting-channel-lookup

Conversation

@augmentcode

@augmentcode augmentcode Bot commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

resolveSlackChannelId was reduced to a pass-through in #11, so backfillReportingChannel.ts could never populate Event.slackReportingChannelId for an event that didn't already have one, and its --channel= flag was silently ignored.

  • resolveSlackChannelId now looks up the channel by name via findSlackChannelByName when no configured ID is passed in, returning its id.
  • backfillReportingChannel.ts passes channelName through, and passes null instead of the existing value when --force is set so a stale configured ID can be re-resolved and overwritten.

resolveSlackChannelId previously just echoed back whatever
configuredChannelId was passed in, so the script could never populate
Event.slackReportingChannelId for events that didn't already have one,
and the --channel flag was silently ignored.

- resolveSlackChannelId now looks up the channel by name via
  findSlackChannelByName when no configured ID is present, and returns
  its id.
- backfillReportingChannel.ts passes channelName through, and passes
  null instead of the existing value when --force is set so lookups
  can overwrite a stale configured ID.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants