Skip to content

Add workflow to auto-assign technical-blog-reviewers#514

Open
madolson wants to merge 8 commits intovalkey-io:mainfrom
madolson:assign-blog-reviewers
Open

Add workflow to auto-assign technical-blog-reviewers#514
madolson wants to merge 8 commits intovalkey-io:mainfrom
madolson:assign-blog-reviewers

Conversation

@madolson
Copy link
Copy Markdown
Member

@madolson madolson commented Apr 24, 2026

Description

Adds a GitHub Actions workflow that automatically requests review from @valkey-io/technical-blog-reviewers when a PR adds a new blog post with blog_type of "Technical Deep Dive" or "Announcements".

This also updates code owners a bit. Removes some files that don't need Madelyn/Kyle's review while keeping kyle assigned to templates. All content get's content creators added (we can change the name, but that was the historical group that does blogs/events)

How it works:

  1. Triggers on pull_request_target (opened/synchronize) when files under content/blog/** change
  2. Uses the GitHub API to detect newly added .md files (ignores modifications to existing posts)
  3. Fetches each new file's content and parses the TOML front matter for blog_type
  4. Requests review from technical-blog-reviewers only if a matching type is found

Design decisions:

  • Uses pull_request_target so it works for PRs from forks (most external contributors)
  • Reads file content via the GitHub API only — no checkout of PR code (safe for pull_request_target)
  • Regex-based front matter parsing — the blog_type format is consistent across all 44 existing blog posts
  • Gracefully handles missing blog_type and API errors

Check List

  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the BSD-3-Clause License.

Signed-off-by: Madelyn Olson <madelyneolson@gmail.com>
@madolson madolson requested a review from stockholmux as a code owner April 24, 2026 18:15
Signed-off-by: Madelyn Olson <madelyneolson@gmail.com>
Signed-off-by: Madelyn Olson <madelyneolson@gmail.com>
Signed-off-by: Madelyn Olson <madelyneolson@gmail.com>
Signed-off-by: Madelyn Olson <madelyneolson@gmail.com>
@madolson madolson force-pushed the assign-blog-reviewers branch 2 times, most recently from 99422c8 to bdf7258 Compare April 24, 2026 18:31
Signed-off-by: Madelyn Olson <madelyneolson@gmail.com>
@madolson madolson force-pushed the assign-blog-reviewers branch from bdf7258 to 6cd0868 Compare April 24, 2026 18:32
Signed-off-by: Madelyn Olson <madelyneolson@gmail.com>
Signed-off-by: Madelyn Olson <madelyneolson@gmail.com>
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