simplify requirements.txt #35751
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: Comment-to-Checklist | |
on: | |
issue_comment: | |
types: [created] | |
jobs: | |
pr_commented: | |
name: PR comment | |
if: ${{ github.event.issue.pull_request && startsWith(github.event.comment.body, 'add_reformatting_checklist_') }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
path: ivy | |
persist-credentials: false | |
- name: Get Category Substring | |
uses: bhowell2/[email protected] | |
id: category | |
with: | |
value: ${{ github.event.comment.body }} | |
index_of_str: "add_reformatting_checklist_" | |
- name: Render template | |
id: template | |
uses: chuhlomin/[email protected] | |
with: | |
template: ivy/automation_tools/checklists/reformat_checklist.md | |
vars: | | |
category_name: ${{ steps.category.outputs.substring }} | |
- name: Update Comment | |
uses: peter-evans/[email protected] | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
issue-number: ${{ github.event.issue.number }} | |
comment-id: ${{ github.event.comment.id }} | |
body: ${{ steps.template.outputs.result }} | |
edit-mode: replace | |
frontend_pr_commented: | |
name: Frontend PR comment | |
if: ${{ github.event.issue.pull_request && github.event.comment.body == 'add_frontend_checklist' }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
path: ivy | |
persist-credentials: false | |
- name: Update Comment | |
uses: peter-evans/create-or-update-comment@v3 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
issue-number: ${{ github.event.issue.number }} | |
comment-id: ${{ github.event.comment.id }} | |
body-path: ivy/automation_tools/checklists/frontend_checklist.md | |
edit-mode: replace |