Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update branch based context to production for Netlify #49153

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

rytswd
Copy link
Member

@rytswd rytswd commented Dec 18, 2024

Description

This removes the branch based context of "context.main" which would be triggered and override any other contexts even during the PR cycle. The assumption here is that "production" context is marked appropriately on Netlify admin UI, and once it's in place, this should have the same effect to ensure we do not publish any draft or future date posts.

Other

I'm not fully familiar with Netlify, and this is an attempt to solve the draft blog posts to be reviewed in the future (this was originally highlighted in #48962 and tested with #48998). While I believe we need Netlify build to handle PRs better, this would need to be checked carefully as it could impact the website as a whole.

This removes the branch based context of "context.main" which would be triggered
and override any other contexts even during the PR cycle. The assumption here is
that "production" context is marked appropriately on Netlify admin UI, and once
it's in place, this should have the same effect to ensure we do not publish any
draft or future date posts.
@k8s-ci-robot
Copy link
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 katcosgrove for approval. For more information see the Kubernetes Code Review Process.

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

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/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Dec 18, 2024
Copy link

netlify bot commented Dec 18, 2024

Pull request preview available for checking

Built without sensitive environment variables

Name Link
🔨 Latest commit e566e6c
🔍 Latest deploy log https://app.netlify.com/sites/kubernetes-io-main-staging/deploys/6762ffb6334dd60008829896
😎 Deploy Preview https://deploy-preview-49153--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 site configuration.

Copy link
Contributor

@sftim sftim left a comment

Choose a reason for hiding this comment

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

Seems reasonable

We should test this once the change merges

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Dec 22, 2024
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: 5ecf6c4706af9cf3e52784f59902742539e188dc

@rytswd
Copy link
Member Author

rytswd commented Dec 22, 2024

@sftim I'd be happy to test from my end as well! It would probably involve having a few draft (dummy) blogs, PRs, test merge to main branch, and potentially checking the Netilfy status. I'm not sure how much I can cover with my entitlements, but should be able to support a few cases.

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. lgtm "Looks good to me", indicates that a PR is ready to be merged. sig/docs Categorizes an issue or PR as relevant to SIG Docs. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants