Skip to content

Commit

Permalink
Update is_govuk_team? method
Browse files Browse the repository at this point in the history
In #570, we added the ability to
post alerts to a different Slack channel to the main team.

Changing the hash key in this method was missed.
  • Loading branch information
brucebolt committed Oct 23, 2024
1 parent afe35b3 commit ed2938c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/team_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,6 @@ def govuk_team_repos(team_channel)
end

def is_govuk_team?(team)
@govuk_data.any? { |repo| repo["team"] == "##{team}" }
@govuk_data.any? { |repo| repo["alerts_team"] == "##{team}" }
end
end

0 comments on commit ed2938c

Please sign in to comment.