Skip to content

Commit

Permalink
Update todo.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Fr-Dae authored Sep 5, 2023
1 parent 692cb6f commit 6356d44
Showing 1 changed file with 11 additions and 25 deletions.
36 changes: 11 additions & 25 deletions .github/workflows/todo.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,11 @@
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@v6
with:
script: |
const backlogProjectId = 1;
const issueNumber = context.payload.issue.number;
const octokit = github.getOctokit('{{TEST}}');
octokit.projects.createCard({
column_id: backlogProjectId,
content_id: issueNumber,
content_type: "Issue"
});
- name: Add To GitHub projects
uses: actions/[email protected]
with:
# URL of the project to add issues to
project-url: https://github.com/orgs/UnionRolistes/projects/1
# A GitHub personal access token with write access to the project
github-token: ${{ secrets.TEST}}
# A comma-separated list of labels to use as a filter for issue to be added
labeled: # optional
# The behavior of the labels filter, AND to match all labels, OR to match any label, NOT to exclude any listed label (default is OR)
label-operator: # optional

0 comments on commit 6356d44

Please sign in to comment.