Skip to content

Commit

Permalink
Add prow style command support
Browse files Browse the repository at this point in the history
  • Loading branch information
pliurh committed Dec 30, 2020
1 parent 83912e8 commit ac2d0b5
Show file tree
Hide file tree
Showing 5 changed files with 84 additions and 6 deletions.
22 changes: 16 additions & 6 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
name: Go

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
on: [push, pull_request]

jobs:

build:
name: Build
name: build
runs-on: ubuntu-latest
steps:

Expand All @@ -27,8 +23,22 @@ jobs:
- name: Build
run: make all

test:
name: test
runs-on: ubuntu-latest
steps:

- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ^1.15

- name: Check out code into the Go module directory
uses: actions/checkout@v2

- name: test pkg
run: make test-pkg

- name: test controllers on opensfhit
run: CLUSTER_TYPE=openshift make test-controllers

17 changes: 17 additions & 0 deletions .github/workflows/lgtm-merger.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: "Merge on lgtm label"
on:
schedule:
- cron: "*/20 * * * *"

jobs:
execute:
runs-on: ubuntu-latest
needs:
- build
- test
steps:
- uses: jpmcb/[email protected]
with:
jobs: 'lgtm'
github-token: "${{ secrets.GITHUB_TOKEN }}"
merge-method: 'squash'
11 changes: 11 additions & 0 deletions .github/workflows/pr-labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: "Pull Request Labeler"
on:
- pull_request_target

jobs:
triage:
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@main
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
12 changes: 12 additions & 0 deletions .github/workflows/pr-update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: "Run Jobs on PR"
on: pull_request

jobs:
execute:
name: "remove the lgtm label"
runs-on: ubuntu-latest
steps:
- uses: jpmcb/[email protected]
with:
jobs: 'lgtm'
github-token: "${{ secrets.GITHUB_TOKEN }}"
28 changes: 28 additions & 0 deletions .github/workflows/prow.yml
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
/approve
/retitle
/area
/kind
/priority
/remove
/lgtm
/close
/reopen
/lock
/milestone
/hold
/cc
/uncc'
github-token: "${{ secrets.GITHUB_TOKEN }}"

0 comments on commit ac2d0b5

Please sign in to comment.