forked from kserve/kserve
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add prow-github-action Signed-off-by: Sivanantham Chinnaiyan <[email protected]> * debug Signed-off-by: Sivanantham Chinnaiyan <[email protected]> --------- Signed-off-by: Sivanantham Chinnaiyan <[email protected]>
- Loading branch information
1 parent
74591b4
commit bba0308
Showing
4 changed files
with
100 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Labels for labeling issues and pull requests using GitHub prow action. | ||
kind: | ||
- 'bug' | ||
- 'discussion' | ||
- 'feature' | ||
- 'process' | ||
- 'question' | ||
|
||
area: | ||
- 'api' | ||
- 'azure' | ||
- 'docs' | ||
- 'example' | ||
- 'gcp' | ||
- 'inference' | ||
- 'infrastructure-feature' | ||
- 'logging' | ||
- 'operator' | ||
- 'performance' | ||
- 'testing' | ||
- 'project-health' | ||
- 'servingruntime' | ||
- 'inferencegraph' | ||
- 'storage' | ||
- 'inferenceservice' | ||
- 'control-plane' | ||
|
||
priority: | ||
- 'p0' | ||
- 'p1' | ||
- 'p2' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Run specified actions or jobs for issue and PR comments | ||
|
||
name: "Prow github actions" | ||
on: | ||
issue_comment: | ||
types: [created] | ||
|
||
jobs: | ||
prow-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 }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# This Github workflow will check every hour for PRs with the lgtm label and will attempt to automatically merge them. | ||
# If the hold label is present, it will block automatic merging. | ||
|
||
name: "Prow merge on lgtm label" | ||
on: | ||
# schedule: | ||
# - cron: "0 * * * *" # every hour | ||
pull_request_target: | ||
types: | ||
- labeled | ||
|
||
jobs: | ||
print-event: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- run: echo "${{ toJson(github.event) }}" | ||
auto-merge: | ||
runs-on: ubuntu-latest | ||
if: contains(github.event.label.name, 'lgtm') | ||
steps: | ||
- uses: jpmcb/[email protected] | ||
with: | ||
jobs: 'lgtm' | ||
github-token: "${{ secrets.GITHUB_TOKEN }}" | ||
merge-method: 'squash' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# This workflow will remove the lgtm label from a PR that gets updated. | ||
# This prevents any un-reviewed code from being automatically merged by the lgtm-merger mechanism. | ||
|
||
name: "Prow remove lgtm label" | ||
on: pull_request | ||
|
||
jobs: | ||
remove-lgtm: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: jpmcb/[email protected] | ||
with: | ||
jobs: 'lgtm' | ||
github-token: "${{ secrets.GITHUB_TOKEN }}" |