feat(langchain): add NEAR AI provider to initChatModel #770
Workflow file for this run
This file contains hidden or 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
| name: "PR Approval Label" | |
| on: | |
| pull_request_review: | |
| types: [submitted] | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| jobs: | |
| add-ready-label: | |
| runs-on: ubuntu-latest | |
| # Only run when an org member approves and PR is not from a fork | |
| # (fork PRs don't have write permissions to add labels) | |
| if: | | |
| github.event.review.state == 'approved' && | |
| github.event.review.author_association == 'MEMBER' && | |
| github.event.pull_request.head.repo.full_name == github.repository | |
| steps: | |
| - name: Add ready label | |
| uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 | |
| with: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| script: | | |
| await github.rest.issues.addLabels({ | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| issue_number: context.payload.pull_request.number, | |
| labels: ['ready'] | |
| }); |