Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

jpmcb/prow-github-actions

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Prow Github Actions ⛵️

This project is inspired by Prow and brings its chat-ops functionality and project management to a simple, Github actions workflow.

Prow is a Kubernetes based CI/CD system ... and provides GitHub automation in the form of policy enforcement, chat-ops via /foo style commands, and automatic PR merging.

Quickstart

Check out the "EXAMPLE" issues and pull requests (open and closed) in this repo to see how this works!


Run specified actions or jobs for issue and PR comments through a workflow.yaml file:

name: Prow github actions
on:
 issue_comment:
 types: [created]
jobs:
 execute:
 runs-on: ubuntu-latest
 steps:
 - uses: jpmcb/prow-github-actions@v2
 with:
 prow-commands: /assign /unassign /approve /retitle /area /kind /priority /remove /lgtm /close /reopen /lock /milestone /hold /cc /uncc
 github-token: '${{ secrets.GITHUB_TOKEN }}'

You can automatically merge PRs based on a cron schedule if it contains the lgtm label:

name: Merge on lgtm label
on:
 schedule:
 - cron: '0 * * * *'
jobs:
 execute:
 runs-on: ubuntu-latest
 steps:
 - uses: jpmcb/prow-github-actions@v2
 with:
 jobs: lgtm
 github-token: '${{ secrets.GITHUB_TOKEN }}'
 # this is optional and defaults to 'merge'
 merge-method: squash

Prow Github actions also supports removing the lgtm label when a PR is updated

name: Run Jobs on PR
on: pull_request
jobs:
 execute:
 runs-on: ubuntu-latest
 steps:
 - uses: jpmcb/prow-github-actions@v2
 with:
 jobs: lgtm
 github-token: '${{ secrets.GITHUB_TOKEN }}'

Documentation


open water breeze
the ocean seas are endless
forward to the prow

About

Slash commands, jobs, and chat-ops for Github actions inspired by Kubernetes Prow ⚓️

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

Contributors 6

AltStyle によって変換されたページ (->オリジナル) /