Skip to content

Adopt shared mapper test data from engine-test-data #17

Adopt shared mapper test data from engine-test-data

Adopt shared mapper test data from engine-test-data #17

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);