diff --git a/.github/workflows/kube-actions.yaml b/.github/workflows/kube-actions.yaml index 74ec82d..075a5c8 100644 --- a/.github/workflows/kube-actions.yaml +++ b/.github/workflows/kube-actions.yaml @@ -4,16 +4,15 @@ 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: @@ -21,7 +20,6 @@ jobs: 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) @@ -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 diff --git a/.gitignore b/.gitignore index ed4a5c2..4d732de 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ +.DS_Store /temp/* \ No newline at end of file diff --git a/README.md b/README.md index d5a1471..e99c9e4 100644 --- a/README.md +++ b/README.md @@ -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 | \ No newline at end of file +| **[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 |