Skip to content

Commit

Permalink
Merge pull request #59 from UnionRolistes/Update-todo.yml---marketpla…
Browse files Browse the repository at this point in the history
…ce-1

Update todo.yml
  • Loading branch information
Fr-Dae authored Sep 5, 2023
2 parents 692cb6f + 6356d44 commit 2b3b289
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/add-to-project@v0.5.0
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 2b3b289

Please sign in to comment.