enable_local_evaluation=True falls back to API calls in v3.10.1, causing massive request volume increase
#10
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: Add New Issue to Engineering Project | |
| on: | |
| issues: | |
| types: [opened] | |
| jobs: | |
| add_issue_to_project: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Add issue to project | |
| uses: actions/github-script@v7 | |
| with: | |
| github-token: ${{ secrets.GH_TOKEN_ADD_TO_ENG_PROJECT }} | |
| script: | | |
| const issueId = context.payload.issue.node_id; | |
| const mutation = ` | |
| mutation { | |
| addProjectV2ItemById(input: { | |
| projectId: "${{ vars.ENGINEERING_PROJECT_ID }}", | |
| contentId: "${issueId}" | |
| }) { | |
| item { | |
| id | |
| } | |
| } | |
| } | |
| `; | |
| await github.graphql(mutation); |