kerthcet / github-workflow-as-kube

Following the same workflows as Kubernetes.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

github-workflow-as-kube

Latest Release

Commands

This workflow following Kubernetes habits, offering commands:

Name Add Remove Note
Good First Issue /good-first-issue /remove-good-first-issue
Help /help /remove-help
LGTM /lgtm /lgtm cancel
Approve /approve /approve cancel Only approvers have the privilege
Hold /hold /hold cancel PR will not be merged once hold
Category /kind feature /remove-kind feature Support kinds: feature, cleanup, bug, documentation and so on...
Assignment /assign @somebody /unassign @somebody When @nobody, will assign/unassign to the commenter
Review Request /cc @somebody /uncc @somebody When @nobody, will cc/uncc the commenter
Priority /priority backlog /remove-priority backlog Support priorities: important-critical-urgent, important-soon, important-longterm, backlog, awaiting-more-evidence
Title /retitle title_name No OP
Lifecycle /reopen /close Authors and collaborators on the repository can trigger this command
Milestone /milestone v0.0.1 /milestone clear Create the milestone labels manually in advance
Triage /triage needs-information /triage accepted triage accepted will remove the needs-triage label
WIP /wip /wip cancel

NOTE: PR will be auto-merged once have lgtm and approved labels and no do-not-merge/* labels.

How To Use

To use the workflow, you have to:

  • Provide a OWNERS file, only the approvers have the privilege to tag /approve or /approve cancel
  • Provide a github secret with the name of AGENT_TOKEN, it should have right permissions, like owning the privilege to create labels, which is required below. Most of the time, adding the token owner to the repo's Collaborators and teams with written role can help here.
  • Add the init-workflow to your project under the path of .github/workflows/, then run the workflow manually, which will help you finish the setup, like creating labels.
  • Add the workflow to your project under the path of .github/workflows/.

Then it should work now.

Roadmap

  • Dispatch reviewers
  • Test workflow support
  • PR review by AI agent.
  • PR size detecting support

About

Following the same workflows as Kubernetes.

License:Apache License 2.0