Skip to content

Commit

Permalink
test forch push
Browse files Browse the repository at this point in the history
Signed-off-by: kerthcet <[email protected]>
  • Loading branch information
kerthcet committed Jun 23, 2024
1 parent e49beb9 commit 3302298
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/kube-actions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,22 @@ on:
issue_comment:
types: [created]
pull_request:
types: [labeled]
push:
branches:
- '**'
types:
- labeled
- synchronize

env:
GH_TOKEN: ${{ secrets.AGENT_TOKEN }}

jobs:
handle-comments:
pr-workflow:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Remove lgtm label on new push
if: github.event_name == 'push'
run: |
PR_NUMBER=$(jq -r '.issue.number' $GITHUB_EVENT_PATH)
Expand Down Expand Up @@ -131,7 +129,10 @@ jobs:
fi
done <<< "$COMMENT_BODY"
# Merge PR if LGTMed and approved and do not hold.
- name: Merge PR if approved and lgtm
env:
GH_TOKEN: ${{ secrets.AGENT_TOKEN }}
run: |
LABELS=$(gh pr view $PR_NUMBER --json labels --jq '.labels[].name')
if [[ "$LABELS" == *"lgtm"* && "$LABELS" == *"approved"* && "$LABELS" != *"do-not-merge/hold"* ]]; then
gh pr merge $PR_NUMBER --merge
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
.DS_Store
/temp/*
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,4 @@
| Name | Stars | Release | Contributors | About |
| ---- | ----- | ------- | ------------ | -------- |
| **[Instructor](https://github.com/jxnl/instructor)** | ![Stars](https://img.shields.io/github/stars/jxnl/instructor.svg) | ![Release](https://img.shields.io/github/release/jxnl/instructor) | ![Contributors](https://img.shields.io/github/contributors/jxnl/instructor) | structured outputs for llms |
| **[Outlines](https://github.com/outlines-dev/outlines)** | ![Stars](https://img.shields.io/github/stars/outlines-dev/outlines.svg) | ![Release](https://img.shields.io/github/release/outlines-dev/outlines) | ![Contributors](https://img.shields.io/github/contributors/outlines-dev/outlines) | Structured Text Generation |
| **[Outlines](https://github.com/outlines-dev/outlines)** | ![Stars](https://img.shields.io/github/stars/outlines-dev/outlines.svg) | ![Release](https://img.shields.io/github/release/outlines-dev/outlines) | ![Contributors](https://img.shields.io/github/contributors/outlines-dev/outlines) | Structured Text Generation |

0 comments on commit 3302298

Please sign in to comment.