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

Add Prow like actions for BYOH #247

Merged
merged 4 commits into from
Nov 18, 2021
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .github/labeler.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
area/docs:
- "docs/**/*"
- "**/*.md"

area/config:
- "config/*"
- "config/**/*"
shamsher31 marked this conversation as resolved.
Show resolved Hide resolved

area/installer:
- "poc-installer/**/*"
shamsher31 marked this conversation as resolved.
Show resolved Hide resolved

area/apis:
- "apis/*"
- "apis/**/*"

area/test-release:
- "hack/**/*"
- "test/**/*"
- "go.mod"
- "Makefile"
shamsher31 marked this conversation as resolved.
Show resolved Hide resolved

area:
- "apis"
- "docs"
- "test-release"
- "installer"
- "config"

kind:
- "bug"
- "feature"
- "enhancement"
- "docs"
- "test-release"
- "feedback"
- "config"
shamsher31 marked this conversation as resolved.
Show resolved Hide resolved
16 changes: 16 additions & 0 deletions .github/workflows/lgtm.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: "Merge on lgtm label"
shamsher31 marked this conversation as resolved.
Show resolved Hide resolved
on:
pull_request:
branches: [ main ]
schedule:
- cron: "0 * * * *"

jobs:
dharmjit marked this conversation as resolved.
Show resolved Hide resolved
execute:
runs-on: ubuntu-latest
steps:
- uses: jpmcb/[email protected]
with:
jobs: 'lgtm'
github-token: "${{ secrets.GITHUB_TOKEN }}"
merge-method: 'squash'
28 changes: 28 additions & 0 deletions .github/workflows/prow-github-actions.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: "Prow github actions"
on:
issue_comment:
types: [created]

jobs:
execute:
runs-on: ubuntu-latest
steps:
- uses: jpmcb/[email protected]
with:
prow-commands: '/assign
/unassign
shamsher31 marked this conversation as resolved.
Show resolved Hide resolved
/approve
/retitle
/area
/kind
/priority
/remove
/lgtm
/close
/reopen
/lock
/milestone
/hold
/cc
/uncc'
github-token: "${{ secrets.GITHUB_TOKEN }}"
16 changes: 16 additions & 0 deletions .github/workflows/pull-request-labeler.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Automatically label new pull requests based on the paths of files being changed
name: Pull Request Labeler

on:
pull_request_target:
types: [opened, reopened, synchronize, ready_for_review]

jobs:
triage:
runs-on: ubuntu-latest
steps:
- name: Label pull requests based on the file paths
uses: actions/labeler@v3
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
configuration-path: .github/labeler.yaml