Skip to content

[Release] Move social drafts to minor-release and archive release notes to bucket#4173

Merged
Wauplin merged 3 commits intomainfrom
release-social-posts-on-minor-release
Apr 30, 2026
Merged

[Release] Move social drafts to minor-release and archive release notes to bucket#4173
Wauplin merged 3 commits intomainfrom
release-social-posts-on-minor-release

Conversation

@Wauplin
Copy link
Copy Markdown
Contributor

@Wauplin Wauplin commented Apr 30, 2026

Summary

  • Social media posts now generated on minor-release instead of minor-prerelease, giving time to manually review/edit the GitHub release notes between the RC and the final release.
  • Release notes are archived to the HF bucket at hf://buckets/huggingface/releases/huggingface_hub/<version>/release_notes.txt alongside the social posts.

🤖 Generated with Claude Code


Note

Medium Risk
Changes the release workflow gating and artifact publishing paths; misconfiguration could cause missing social drafts or bucket uploads during a production release.

Overview
Moves the social-posts job to run on minor-release (instead of prerelease) so social drafts are generated from the final, manually edited GitHub release notes.

Updates release-note fetching to prefer the exact final tag (post-promotion) with a minor-version fallback, and changes bucket publishing to sync a single staged directory containing both social drafts and an archived release_notes.txt under hf://.../huggingface_hub/${VERSION}/ (with Slack linking to the new base bucket path).

Reviewed by Cursor Bugbot for commit b0f9ea3. Bugbot is set up for automated code reviews on this repo. Configure here.

Comment thread .github/workflows/release.yml Outdated
@bot-ci-comment
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.

@Wauplin Wauplin changed the title [Release] Move social/slack drafts to minor-release, archive to bucket [Release] Move social drafts to minor-release and archive release notes to bucket Apr 30, 2026
Copy link
Copy Markdown
Contributor Author

@Wauplin Wauplin left a comment

Choose a reason for hiding this comment

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

✔️

@Wauplin Wauplin marked this pull request as ready for review April 30, 2026 12:28
@Wauplin Wauplin requested a review from hanouticelina April 30, 2026 12:28
@Wauplin Wauplin merged commit 08c6405 into main Apr 30, 2026
21 checks passed
@Wauplin Wauplin deleted the release-social-posts-on-minor-release branch April 30, 2026 12:30
@Wauplin
Copy link
Copy Markdown
Contributor Author

Wauplin commented Apr 30, 2026

(merging because I believe this is the type of low-quality PR to review - worth case it breaks on next release and we fix it)

Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit b0f9ea3. Configure here.

VERSION="${{ needs.prepare.outputs.version }}"
BASE_VERSION=$(echo "$VERSION" | sed -E 's/\.rc.*//')
BUCKET_URL="https://huggingface.co/buckets/huggingface/releases/tree/huggingface_hub/${BASE_VERSION}/socials"
BUCKET_URL="https://huggingface.co/buckets/huggingface/releases/tree/huggingface_hub/${BASE_VERSION}"
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Bucket path uses VERSION but Slack URL uses BASE_VERSION

Low Severity

The "Upload to bucket" step syncs to a path using ${VERSION} directly (line 734), but the "Notify Slack" step constructs BUCKET_URL using ${BASE_VERSION} (derived via sed -E 's/\.rc.*//'). These two variables refer to different derivations of the same value. For minor-release they happen to be equal since the prepare step already strips the RC suffix, but using different variable names for the same path is misleading and fragile if the job condition ever changes.

Additional Locations (1)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit b0f9ea3. Configure here.

@huggingface-hub-bot
Copy link
Copy Markdown
Contributor

This PR has been shipped as part of the v1.14.0 release.

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.

1 participant