Skip to content

feat: add crisis helpline numbers for 10 new countries#26

Open
smriti-nyx wants to merge 2 commits into
Vishisht16:mainfrom
smriti-nyx:feature/expand-crisis-helplines
Open

feat: add crisis helpline numbers for 10 new countries#26
smriti-nyx wants to merge 2 commits into
Vishisht16:mainfrom
smriti-nyx:feature/expand-crisis-helplines

Conversation

@smriti-nyx
Copy link
Copy Markdown

Description

Brief description of what this PR does :
Closes #1

Added crisis helpline numbers for 14 countries in humane_proxy/config.yaml block_message:
USA, UK, Canada, Australia, India, Japan, South Korea, Germany, France, Spain, Italy, Mexico, New Zealand, Brazil.

Formatting matches existing style with flag emojis. No existing entries removed.

Type of Change

  • Bug fix
  • [ x] New feature
  • Breaking change
  • Documentation update

Checklist

  • I have read the CONTRIBUTING guide
  • [ x] My code follows the project's style
  • I have added tests for new or changed behaviour
  • All tests pass (pytest tests/ -v)
  • I have updated documentation if needed
  • [x ] Self-harm / safety-related changes have been reviewed for sensitivity

@smriti-nyx smriti-nyx requested a review from Vishisht16 as a code owner May 20, 2026 07:29
@CLAassistant
Copy link
Copy Markdown

CLAassistant commented May 20, 2026

CLA assistant check
All committers have signed the CLA.

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 20, 2026

Review Change Stack

Warning

Rate limit exceeded

@smriti-nyx has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 51 minutes and 51 seconds before requesting another review.

You’ve run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: c55205d1-0793-4f87-8938-b95989e73805

📥 Commits

Reviewing files that changed from the base of the PR and between 3525848 and f56ec3e.

📒 Files selected for processing (1)
  • humane_proxy/config.yaml
📝 Walkthrough

Walkthrough

Updated safety.categories.self_harm.block_message in humane_proxy/config.yaml from an empty string to a multi-line default response message containing international crisis helpline numbers and a supportive closing statement for users who encounter self-harm safety blocks.

Changes

Self-Harm Crisis Response Configuration

Layer / File(s) Summary
Self-harm block message with crisis helplines
humane_proxy/config.yaml
The safety.categories.self_harm.block_message configuration value is populated with a multi-line template containing crisis hotline contact information for multiple countries/regions and a supportive closing statement, replacing the previously empty string value.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Poem

🐰 A message of care now takes the stage,
With helplines bright on every page,
From hearts around the world we send,
Crisis support—a loving friend,
When darkness calls, we answer clear. 💚

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title refers to adding crisis helpline numbers for countries, which aligns with the main change of updating the block_message configuration with crisis helpline resources.
Description check ✅ Passed The description clearly explains the addition of crisis helpline numbers for 14 countries to the config.yaml file, matching the changeset modifications.
Linked Issues check ✅ Passed The PR adds crisis helpline numbers for 14 countries (exceeding the required 10) to the block_message in config.yaml with flag emoji formatting, preserving existing entries as required by issue #1.
Out of Scope Changes check ✅ Passed All changes in the PR are directly related to expanding crisis helpline numbers in the config.yaml file, which is the stated objective and scope.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@humane_proxy/config.yaml`:
- Around line 202-220: The YAML under the self_harm section has block_message
indented incorrectly causing parse errors; move the block_message key and its
multiline value so that block_message is aligned at the same indentation level
as always_escalate, escalate_threshold, and response_mode within the self_harm
mapping (i.e., unindent the block_message block to match those sibling fields)
so the multiline | block is properly nested under self_harm.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 59ab4162-f3a0-42a6-b9c4-012f71cc10f7

📥 Commits

Reviewing files that changed from the base of the PR and between c2e0825 and 3525848.

📒 Files selected for processing (1)
  • humane_proxy/config.yaml

Comment thread humane_proxy/config.yaml Outdated
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.

[Feature] Expand International Crisis Helpline Numbers in Default Config

2 participants