Instantiation mode "partial"
to "callable"
. Return the _target_
component as-is when in _mode_="callable"
and no kwargs are specified
#16238
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
# triggering the workflows by commenting `/black` and `/integration-test` | |
name: chatops | |
# currently dispatches /black command to project-monai/monai-code-formatter | |
on: | |
issue_comment: | |
types: [created, edited] | |
jobs: | |
dispatch_command: | |
runs-on: ubuntu-latest | |
steps: | |
- name: dispatch | |
uses: peter-evans/[email protected] | |
with: | |
token: ${{ secrets.PR_MAINTAIN }} | |
reaction-token: ${{ secrets.GITHUB_TOKEN }} | |
reactions: false | |
config: > | |
[ | |
{ | |
"command": "black", | |
"permission": "none", | |
"issue_type": "pull-request", | |
"allow_edits": true, | |
"repository": "project-monai/monai-code-formatter" | |
}, | |
{ | |
"command": "integration-test", | |
"permission": "none", | |
"issue_type": "pull-request", | |
"allow_edits": true | |
} | |
] |