[Idea]: Design Patterns in Testing #139
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
name: Add Task List to Issues | |
permissions: | |
issues: write | |
on: | |
# workflow_dispatch | |
issues: | |
types: | |
- opened | |
- labeled | |
concurrency: | |
group: ${{ github.event.issue.number }} | |
cancel-in-progress: true | |
jobs: | |
add-task-list: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Add Task List to Issues | |
uses: actions/github-script@v6 | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
script: | | |
const script = require('./scripts/add-task.js') | |
await script({github, context}) | |