Skip to content

Webhooks: fix updatedConfig, add move action, document job env vars#2320

Merged
mishig25 merged 1 commit intomainfrom
fix/webhooks-docs
Mar 20, 2026
Merged

Webhooks: fix updatedConfig, add move action, document job env vars#2320
mishig25 merged 1 commit intomainfrom
fix/webhooks-docs

Conversation

@mishig25
Copy link
Copy Markdown
Collaborator

@mishig25 mishig25 commented Mar 20, 2026

Summary

  • webhooks.md: Remove xetEnabled from updatedConfig (only private is supported); add note about hidden comment content being undefined
  • webhooks-guide-auto-retrain.md: Add missing "move" webhook event action
  • jobs-webhooks.md: Document all webhook environment variables (WEBHOOK_PAYLOAD, WEBHOOK_REPO_ID, WEBHOOK_REPO_TYPE, WEBHOOK_SECRET)

Test plan

  • Verify webhook payload structure matches current behavior
  • Verify job webhook env vars are set correctly

🤖 Generated with Claude Code


Note

Low Risk
Low risk because changes are documentation-only, clarifying supported fields/actions without altering runtime behavior.

Overview
Clarifies Job-triggered webhook execution by documenting all injected environment variables (WEBHOOK_PAYLOAD, WEBHOOK_REPO_ID, WEBHOOK_REPO_TYPE, WEBHOOK_SECRET).

Aligns webhook payload docs with current behavior by adding the missing move event action in the auto-retrain guide, noting that hidden comments may omit content, and correcting repo.config updatedConfig to state only private is supported (unknown keys yield {}).

Written by Cursor Bugbot for commit 4dd9f4f. This will update automatically on new commits. Configure here.

- webhooks.md: Remove xetEnabled from updatedConfig (only private is supported); add note about hidden comment content being undefined
- webhooks-guide-auto-retrain.md: Add missing "move" webhook event action
- jobs-webhooks.md: Document all webhook environment variables (WEBHOOK_PAYLOAD, WEBHOOK_REPO_ID, WEBHOOK_REPO_TYPE, WEBHOOK_SECRET)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

- `WEBHOOK_PAYLOAD`: the full webhook payload as a JSON string
- `WEBHOOK_REPO_ID`: the repository name (e.g., `user/repo-name`)
- `WEBHOOK_REPO_TYPE`: the repository type (`model`, `dataset`, or `space`)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

skipping for now

@HuggingFaceDocBuilderDev
Copy link
Copy Markdown

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@mishig25 mishig25 merged commit c3fedf7 into main Mar 20, 2026
3 checks passed
@mishig25 mishig25 deleted the fix/webhooks-docs branch March 20, 2026 13:44
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.

4 participants