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

test forch push #34

Merged
merged 1 commit into from
Jun 23, 2024
Merged
Show file tree
Hide file tree
Changes from all 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
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 |
Loading