GithubHelp home page GithubHelp logo

tam360 / kubebuilder-release-tools Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kubernetes-sigs/kubebuilder-release-tools

0.0 0.0 0.0 88 KB

Release tooling for KubeBuilder projects.

License: Apache License 2.0

Go 99.73% Dockerfile 0.27%

kubebuilder-release-tools's Introduction

Kubebuilder Release Tools

Release tooling for KubeBuilder projects.

Release Notes Generation

The notes module contains a framework for generating release notes from git history using emoji, and the "root" of the module is a program that makes use of this:

# generate a final release
$ go run sigs.k8s.io/kubebuilder-release-tools/notes

  generate a beta release
$ go run sigs.k8s.io/kubebuilder-release-tools/notes -r beta

PR Verification GitHub Action

This repository acts as a GitHub action for verifying PR titles match the release notes generation requirements, as well as some basic descriptiveness checks. You can use it in your repository by adding a workflow (e.g. .github/workflows/verifier.yml) as such:

name: PR Verifier

on:
  # NB: using `pull_request_target` runs this in the context of
  # the base repository, so it has permission to upload to the checks API.
  # This means changes won't kick in to this file until merged onto the
  # main branch.
  pull_request_target:
    types: [opened, edited, reopened, synchronize]

jobs:
  verify:
    runs-on: ubuntu-latest
    name: verify PR contents
    steps:
    - name: Verifier action
      id: verifier
      uses: kubernetes-sigs/[email protected]
      with:
        github_token: ${{ secrets.GITHUB_TOKEN }}

The code that actually runs lives in verify, while /verify/pkg/action contains a framework for running PR description checks from GitHub actions & uploading the result via the GitHub checks API.

This repo itself uses a "live" version of the action that always rebuilds from the local code (master branch), which lives in .github/actions/verifier.

Updating the action

If you release updates to the action, make sure to tag a new release, which triggers a build & tag of the docker container referenced by this action (using Google Cloud Build, pushed as gcr.io/kubebuilder/pr-verifier). and then update the corresponding major version tag (either vX or v0.Y) by running:

# where vX is the major version, vX.Y.Z is the release you just tagged,
# and upstream is the remote for this repo itself, NOT your fork.
$ git pull --tags upstream
$ git tag -f vX vX.Y.Z
$ git push upstream refs/tags/vX

KubeBuilder Project Versioning

VERSIONING.md contains the general guidelines for versioning, releasing, etc for the KubeBuilder projects.

The TL;DR on PR titles is that you must have a prefix on your PR title specifying the kind of change:

  • Breaking change: ⚠️ (:warning:)
  • Non-breaking feature: ✨ (:sparkles:)
  • Patch fix: 🐛 (:bug:)
  • Docs: 📖 (:book:)
  • Release: 🚀 (:rocket:)
  • Infra/Tests/Other: 🌱 (:seedling:)

See the document for more details.

Community, discussion, contribution, and support

Learn how to engage with the Kubernetes community on the community page.

You can reach the maintainers of this project at:

Code of conduct

Participation in the Kubernetes community is governed by the Kubernetes Code of Conduct.

kubebuilder-release-tools's People

Contributors

k8s-ci-robot avatar adirio avatar directxman12 avatar tam360 avatar mjlshen avatar nikhita avatar ncdc avatar camilamacedo86 avatar erikgb avatar sbueringer avatar vincepri avatar killianmuldoon avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.