-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #59 from UnionRolistes/Update-todo.yml---marketpla…
…ce-1 Update todo.yml
- Loading branch information
Showing
1 changed file
with
11 additions
and
25 deletions.
There are no files selected for viewing
This file contains 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
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 |