Skip to content

auto-workflow-project04 #5

auto-workflow-project04

auto-workflow-project04 #5

Workflow file for this run

name: Ajouter une nouvelle issue à la backlog
on:
issues:
types:
- opened
jobs:
add_to_backlog:
runs-on: ubuntu-latest
steps:
- name: Ajouter l'issue à la backlog
uses: actions/github-script@v4
with:
script: |
const backlogProjectId = 1;
const issueNumber = context.payload.issue.number;
const octokit = github.getOctokit(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);
octokit.projects.createCard({
column_id: backlogProjectId,
content_id: issueNumber,
content_type: "Issue"
});