Skip to content

Add workflow and script to track draft blog posts#56107

Open
KashishV999 wants to merge 2 commits into
kubernetes:mainfrom
KashishV999:blog-wiki-clean
Open

Add workflow and script to track draft blog posts#56107
KashishV999 wants to merge 2 commits into
kubernetes:mainfrom
KashishV999:blog-wiki-clean

Conversation

@KashishV999

@KashishV999 KashishV999 commented Jun 14, 2026

Copy link
Copy Markdown
Contributor

Problem

When a blog post PR is merged into main, a follow-up PR is still needed to set draft: false to publish it. There is no tracking for which posts are merged but still unpublished.

Solution

Adds a daily workflow that scans main for draft: true blog posts and updates the Wiki page . Maintainers can check the Draft-Blog-Tracker wiki page to see which posts still are unpublished .

Changes

  • .github/workflows/update-draft-wiki.yml : runs daily and on manual trigger
  • scripts/find-draft-blogs.sh — checks front matter and updates the wiki

@k8s-ci-robot

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign salaxander for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added sig/docs Categorizes an issue or PR as relevant to SIG Docs. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Jun 14, 2026
@netlify

netlify Bot commented Jun 14, 2026

Copy link
Copy Markdown

Pull request preview available for checking

Built without sensitive environment variables

Name Link
🔨 Latest commit ae11098
🔍 Latest deploy log https://app.netlify.com/projects/kubernetes-io-main-staging/deploys/6a2e4de479cb0c000878dd94
😎 Deploy Preview https://deploy-preview-56107--kubernetes-io-main-staging.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@lmktfy lmktfy left a comment

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.

@KashishV999 - thank you for the time you put into this.

Let's discuss what we'd need to do, as a SIG, before we could switch to using this tool.

I'm afraid there are barriers. Some we can remove; others need to remain and be considered.

I actually suggest we start by making a script that people run manually and that outputs locally. Even that would be an improvement, and it's a good first step towards full automation.

EOF

cd "$WIKI_DIR"
git config user.email "draft-blog-bot@users.noreply.github.com"

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.

🤔 Is this a real identity? Who controls it.


cd "$WIKI_DIR"
git config user.email "draft-blog-bot@users.noreply.github.com"
git config user.name "github-actions[bot]"

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.

This name could actually be misleading. Let's reword it.

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.

  • I'm wary to use GitHub Actions for this.
  • AIUI, we don't trust Actions' security much. A pin to a full ref should be used
    (v4 is potentially under control of a malicious party or an organisation with poor security; if we did use Actions, we need multiple levels of defence against that).

- name: Run draft blog scanner
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REPO: ${{ github.repository }}

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.

I don't think this is right. You have the wrong name here for the Wiki repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. sig/docs Categorizes an issue or PR as relevant to SIG Docs. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants