Skip to content

Commit

Permalink
Add Prow like actions for BYOH (#247)
Browse files Browse the repository at this point in the history
* Add Prow like actions for BYOH

* use latest version for prow github actions

* sort actions

* remove config area
  • Loading branch information
shamsher31 authored Nov 18, 2021
1 parent 97eb96d commit 75d9db1
Show file tree
Hide file tree
Showing 4 changed files with 89 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/labeler.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
area/docs:
- "docs/**/*"
- "**/*.md"

area/installer:
- "agent-installer/**/*"

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

area/test-release:
- "hack/**/*"
- "test/**/*"
- "go.mod"
- "Makefile"

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

kind:
- "bug"
- "feature"
- "cleanup"
- "docs"
- "test-release"
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"
on:
pull_request:
branches: [ main ]
schedule:
- cron: "0 * * * *"

jobs:
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: '/approve
/area
/assign
/cc
/close
/hold
/kind
/lgtm
/lock
/milestone
/priority
/remove
/reopen
/retitle
/unassign
/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

0 comments on commit 75d9db1

Please sign in to comment.