mirror of
https://github.com/Ryujinx/Ryujinx-Mako.git
synced 2025-08-17 01:51:07 +00:00
Add exec-ryujinx-tasks to subcommands list
This commit is contained in:
parent
86f5fc3e0f
commit
96f87d0f89
30
README.md
30
README.md
|
@ -26,7 +26,7 @@ Add the following step to your workflow:
|
||||||
## Available commands
|
## Available commands
|
||||||
|
|
||||||
```
|
```
|
||||||
usage: ryujinx_mako [-h] {setup-git,update-reviewers} ...
|
usage: ryujinx_mako [-h] {setup-git,update-reviewers,exec-ryujinx-tasks} ...
|
||||||
|
|
||||||
A python module to aid Ryujinx with project management and moderation
|
A python module to aid Ryujinx with project management and moderation
|
||||||
|
|
||||||
|
@ -34,9 +34,10 @@ options:
|
||||||
-h, --help show this help message and exit
|
-h, --help show this help message and exit
|
||||||
|
|
||||||
subcommands:
|
subcommands:
|
||||||
{setup-git,update-reviewers}
|
{setup-git,update-reviewers,exec-ryujinx-tasks}
|
||||||
setup-git Configure git identity for Ryujinx-Mako
|
setup-git Configure git identity for Ryujinx-Mako
|
||||||
update-reviewers Update reviewers for the specified PR
|
update-reviewers Update reviewers for the specified PR
|
||||||
|
exec-ryujinx-tasks Execute all Ryujinx tasks for a specific event
|
||||||
```
|
```
|
||||||
|
|
||||||
### setup-git
|
### setup-git
|
||||||
|
@ -66,3 +67,28 @@ positional arguments:
|
||||||
options:
|
options:
|
||||||
-h, --help show this help message and exit
|
-h, --help show this help message and exit
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### exec-ryujinx-tasks
|
||||||
|
|
||||||
|
```
|
||||||
|
usage: ryujinx_mako exec-ryujinx-tasks [-h] --event-name EVENT_NAME
|
||||||
|
--event-path EVENT_PATH [-w WORKSPACE]
|
||||||
|
repo_path run_id
|
||||||
|
|
||||||
|
Execute all Ryujinx tasks for a specific event
|
||||||
|
|
||||||
|
positional arguments:
|
||||||
|
repo_path full name of the GitHub repository (format:
|
||||||
|
OWNER/REPO)
|
||||||
|
run_id The unique identifier of the workflow run
|
||||||
|
|
||||||
|
options:
|
||||||
|
-h, --help show this help message and exit
|
||||||
|
--event-name EVENT_NAME
|
||||||
|
the name of the event that triggered the workflow run
|
||||||
|
--event-path EVENT_PATH
|
||||||
|
the path to the file on the runner that contains the
|
||||||
|
full event webhook payload
|
||||||
|
-w WORKSPACE, --workspace WORKSPACE
|
||||||
|
the working directory on the runner
|
||||||
|
```
|
||||||
|
|
|
@ -1,12 +1,14 @@
|
||||||
from typing import Type
|
from typing import Type
|
||||||
|
|
||||||
from ryujinx_mako.commands._subcommand import Subcommand
|
from ryujinx_mako.commands._subcommand import Subcommand
|
||||||
|
from ryujinx_mako.commands.exec_ryujinx_tasks import ExecRyujinxTasks
|
||||||
from ryujinx_mako.commands.setup_git import SetupGit
|
from ryujinx_mako.commands.setup_git import SetupGit
|
||||||
from ryujinx_mako.commands.update_reviewers import UpdateReviewers
|
from ryujinx_mako.commands.update_reviewers import UpdateReviewers
|
||||||
|
|
||||||
SUBCOMMANDS: list[Type[Subcommand]] = [
|
SUBCOMMANDS: list[Type[Subcommand]] = [
|
||||||
SetupGit,
|
SetupGit,
|
||||||
UpdateReviewers,
|
UpdateReviewers,
|
||||||
|
ExecRyujinxTasks,
|
||||||
]
|
]
|
||||||
|
|
||||||
__all__ = SUBCOMMANDS
|
__all__ = SUBCOMMANDS
|
||||||
|
|
Loading…
Reference in a new issue