This command triggers a github action through a workflow_trigger.
- Type
/fusebot edit github-dispatch
. - Click the edit link.
- Copy and paste the command.js file content into the command.js file in the web editor.
- Add
"octokit": "1.0.5"
into package.json as a dependency. - In the Configuration section of the editor, set the PAT={github-personal-access-token} property. You can obtain your GitHub personal access token from github_pat_tutorial.
- Save.
- Call
/fusebot github-dispatch
from Slack/Discord. - Modify and tinker!
The Github personal access token for this function requires the permission of repo:*
and action:write
to function.