@rnsk/toolkits 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core/index.d.ts +1 -0
- package/dist/core/index.js +1 -0
- package/dist/core/scope.d.ts +4 -0
- package/dist/core/scope.js +12 -0
- package/dist/index.d.ts +5 -1
- package/dist/index.js +15 -2
- package/dist/runtime/meta-tools.js +2 -0
- package/dist/toolkits/github/icon.d.ts +5 -0
- package/dist/toolkits/github/icon.js +15 -0
- package/dist/toolkits/github/manifest.d.ts +3 -0
- package/dist/toolkits/github/manifest.js +36 -0
- package/dist/toolkits/github/tools/Actions/delete-artifact.d.ts +13 -0
- package/dist/toolkits/github/tools/Actions/delete-artifact.js +31 -0
- package/dist/toolkits/github/tools/Actions/get-artifact.d.ts +31 -0
- package/dist/toolkits/github/tools/Actions/get-artifact.js +39 -0
- package/dist/toolkits/github/tools/Actions/get-workflow-job.d.ts +36 -0
- package/dist/toolkits/github/tools/Actions/get-workflow-job.js +48 -0
- package/dist/toolkits/github/tools/Actions/list-artifacts.d.ts +23 -0
- package/dist/toolkits/github/tools/Actions/list-artifacts.js +43 -0
- package/dist/toolkits/github/tools/Actions/list-workflow-jobs.d.ts +27 -0
- package/dist/toolkits/github/tools/Actions/list-workflow-jobs.js +49 -0
- package/dist/toolkits/github/tools/Actions/list-workflow-run-artifacts.d.ts +24 -0
- package/dist/toolkits/github/tools/Actions/list-workflow-run-artifacts.js +45 -0
- package/dist/toolkits/github/tools/Activity/list-notifications.d.ts +24 -0
- package/dist/toolkits/github/tools/Activity/list-notifications.js +45 -0
- package/dist/toolkits/github/tools/Activity/list-public-events.d.ts +18 -0
- package/dist/toolkits/github/tools/Activity/list-public-events.js +37 -0
- package/dist/toolkits/github/tools/Activity/list-repo-events.d.ts +19 -0
- package/dist/toolkits/github/tools/Activity/list-repo-events.js +40 -0
- package/dist/toolkits/github/tools/Activity/list-user-events.d.ts +17 -0
- package/dist/toolkits/github/tools/Activity/list-user-events.js +37 -0
- package/dist/toolkits/github/tools/Activity/mark-notifications-read.d.ts +11 -0
- package/dist/toolkits/github/tools/Activity/mark-notifications-read.js +27 -0
- package/dist/toolkits/github/tools/Apps/get-authenticated-app.d.ts +24 -0
- package/dist/toolkits/github/tools/Apps/get-authenticated-app.js +36 -0
- package/dist/toolkits/github/tools/Apps/get-installation.d.ts +76 -0
- package/dist/toolkits/github/tools/Apps/get-installation.js +36 -0
- package/dist/toolkits/github/tools/Apps/list-installations.d.ts +19 -0
- package/dist/toolkits/github/tools/Apps/list-installations.js +38 -0
- package/dist/toolkits/github/tools/Checks/create-check-run.d.ts +24 -0
- package/dist/toolkits/github/tools/Checks/create-check-run.js +43 -0
- package/dist/toolkits/github/tools/Checks/create-check-suite.d.ts +21 -0
- package/dist/toolkits/github/tools/Checks/create-check-suite.js +37 -0
- package/dist/toolkits/github/tools/Checks/get-check-run.d.ts +25 -0
- package/dist/toolkits/github/tools/Checks/get-check-run.js +39 -0
- package/dist/toolkits/github/tools/Checks/get-check-suite.d.ts +25 -0
- package/dist/toolkits/github/tools/Checks/get-check-suite.js +39 -0
- package/dist/toolkits/github/tools/Checks/list-check-runs.d.ts +27 -0
- package/dist/toolkits/github/tools/Checks/list-check-runs.js +50 -0
- package/dist/toolkits/github/tools/Checks/update-check-run.d.ts +23 -0
- package/dist/toolkits/github/tools/Checks/update-check-run.js +41 -0
- package/dist/toolkits/github/tools/CodeScanning/get-alert.d.ts +25 -0
- package/dist/toolkits/github/tools/CodeScanning/get-alert.js +41 -0
- package/dist/toolkits/github/tools/CodeScanning/list-alerts.d.ts +23 -0
- package/dist/toolkits/github/tools/CodeScanning/list-alerts.js +50 -0
- package/dist/toolkits/github/tools/CodeScanning/update-alert.d.ts +19 -0
- package/dist/toolkits/github/tools/CodeScanning/update-alert.js +39 -0
- package/dist/toolkits/github/tools/Collaborators/add-collaborator.d.ts +14 -0
- package/dist/toolkits/github/tools/Collaborators/add-collaborator.js +33 -0
- package/dist/toolkits/github/tools/Collaborators/check-collaborator.d.ts +13 -0
- package/dist/toolkits/github/tools/Collaborators/check-collaborator.js +34 -0
- package/dist/toolkits/github/tools/Collaborators/list-collaborators.d.ts +25 -0
- package/dist/toolkits/github/tools/Collaborators/list-collaborators.js +41 -0
- package/dist/toolkits/github/tools/Collaborators/remove-collaborator.d.ts +13 -0
- package/dist/toolkits/github/tools/Collaborators/remove-collaborator.js +31 -0
- package/dist/toolkits/github/tools/Commits/compare-commits.d.ts +30 -0
- package/dist/toolkits/github/tools/Commits/compare-commits.js +37 -0
- package/dist/toolkits/github/tools/Commits/get-commit.d.ts +46 -0
- package/dist/toolkits/github/tools/Commits/get-commit.js +35 -0
- package/dist/toolkits/github/tools/Commits/list-branches-for-head-commit.d.ts +20 -0
- package/dist/toolkits/github/tools/Commits/list-branches-for-head-commit.js +31 -0
- package/dist/toolkits/github/tools/Commits/list-commits.d.ts +21 -0
- package/dist/toolkits/github/tools/Commits/list-commits.js +43 -0
- package/dist/toolkits/github/tools/Commits/list-pull-requests-associated-with-commit.d.ts +81 -0
- package/dist/toolkits/github/tools/Commits/list-pull-requests-associated-with-commit.js +35 -0
- package/dist/toolkits/github/tools/Dependabot/get-alert.d.ts +53 -0
- package/dist/toolkits/github/tools/Dependabot/get-alert.js +37 -0
- package/dist/toolkits/github/tools/Dependabot/list-alerts.d.ts +23 -0
- package/dist/toolkits/github/tools/Dependabot/list-alerts.js +46 -0
- package/dist/toolkits/github/tools/Dependabot/update-alert.d.ts +19 -0
- package/dist/toolkits/github/tools/Dependabot/update-alert.js +39 -0
- package/dist/toolkits/github/tools/DeployKeys/create-deploy-key.d.ts +23 -0
- package/dist/toolkits/github/tools/DeployKeys/create-deploy-key.js +43 -0
- package/dist/toolkits/github/tools/DeployKeys/delete-deploy-key.d.ts +13 -0
- package/dist/toolkits/github/tools/DeployKeys/delete-deploy-key.js +31 -0
- package/dist/toolkits/github/tools/DeployKeys/get-deploy-key.d.ts +21 -0
- package/dist/toolkits/github/tools/DeployKeys/get-deploy-key.js +39 -0
- package/dist/toolkits/github/tools/DeployKeys/list-deploy-keys.d.ts +21 -0
- package/dist/toolkits/github/tools/DeployKeys/list-deploy-keys.js +44 -0
- package/dist/toolkits/github/tools/Deployments/create-deployment.d.ts +33 -0
- package/dist/toolkits/github/tools/Deployments/create-deployment.js +51 -0
- package/dist/toolkits/github/tools/Deployments/delete-deployment.d.ts +13 -0
- package/dist/toolkits/github/tools/Deployments/delete-deployment.js +31 -0
- package/dist/toolkits/github/tools/Deployments/get-deployment.d.ts +27 -0
- package/dist/toolkits/github/tools/Deployments/get-deployment.js +42 -0
- package/dist/toolkits/github/tools/Deployments/list-deployments.d.ts +27 -0
- package/dist/toolkits/github/tools/Deployments/list-deployments.js +52 -0
- package/dist/toolkits/github/tools/Environments/create-or-update-environment.d.ts +32 -0
- package/dist/toolkits/github/tools/Environments/create-or-update-environment.js +50 -0
- package/dist/toolkits/github/tools/Environments/delete-environment.d.ts +13 -0
- package/dist/toolkits/github/tools/Environments/delete-environment.js +31 -0
- package/dist/toolkits/github/tools/Environments/get-environment.d.ts +48 -0
- package/dist/toolkits/github/tools/Environments/get-environment.js +42 -0
- package/dist/toolkits/github/tools/Environments/list-environments.d.ts +23 -0
- package/dist/toolkits/github/tools/Environments/list-environments.js +45 -0
- package/dist/toolkits/github/tools/Files/create-or-update-file.d.ts +21 -0
- package/dist/toolkits/github/tools/Files/create-or-update-file.js +44 -0
- package/dist/toolkits/github/tools/Files/delete-file.d.ts +18 -0
- package/dist/toolkits/github/tools/Files/delete-file.js +40 -0
- package/dist/toolkits/github/tools/Files/get-file-content.d.ts +32 -0
- package/dist/toolkits/github/tools/Files/get-file-content.js +51 -0
- package/dist/toolkits/github/tools/Gists/create-gist.d.ts +19 -0
- package/dist/toolkits/github/tools/Gists/create-gist.js +37 -0
- package/dist/toolkits/github/tools/Gists/get-gist.d.ts +23 -0
- package/dist/toolkits/github/tools/Gists/get-gist.js +43 -0
- package/dist/toolkits/github/tools/Gists/list-gists.d.ts +19 -0
- package/dist/toolkits/github/tools/Gists/list-gists.js +38 -0
- package/dist/toolkits/github/tools/Git/create-blob.d.ts +16 -0
- package/dist/toolkits/github/tools/Git/create-blob.js +38 -0
- package/dist/toolkits/github/tools/Git/create-git-commit.d.ts +47 -0
- package/dist/toolkits/github/tools/Git/create-git-commit.js +51 -0
- package/dist/toolkits/github/tools/Git/create-ref.d.ts +24 -0
- package/dist/toolkits/github/tools/Git/create-ref.js +40 -0
- package/dist/toolkits/github/tools/Git/create-tree.d.ts +31 -0
- package/dist/toolkits/github/tools/Git/create-tree.js +52 -0
- package/dist/toolkits/github/tools/Git/delete-ref.d.ts +13 -0
- package/dist/toolkits/github/tools/Git/delete-ref.js +31 -0
- package/dist/toolkits/github/tools/Git/get-blob.d.ts +21 -0
- package/dist/toolkits/github/tools/Git/get-blob.js +39 -0
- package/dist/toolkits/github/tools/Git/get-git-commit.d.ts +40 -0
- package/dist/toolkits/github/tools/Git/get-git-commit.js +41 -0
- package/dist/toolkits/github/tools/Git/get-ref.d.ts +18 -0
- package/dist/toolkits/github/tools/Git/get-ref.js +42 -0
- package/dist/toolkits/github/tools/Git/get-tree.d.ts +27 -0
- package/dist/toolkits/github/tools/Git/get-tree.js +47 -0
- package/dist/toolkits/github/tools/Git/update-ref.d.ts +25 -0
- package/dist/toolkits/github/tools/Git/update-ref.js +42 -0
- package/dist/toolkits/github/tools/Issues/add-issue-assignees.d.ts +14 -0
- package/dist/toolkits/github/tools/Issues/add-issue-assignees.js +35 -0
- package/dist/toolkits/github/tools/Issues/add-issue-comment.d.ts +20 -0
- package/dist/toolkits/github/tools/Issues/add-issue-comment.js +38 -0
- package/dist/toolkits/github/tools/Issues/add-issue-labels.d.ts +14 -0
- package/dist/toolkits/github/tools/Issues/add-issue-labels.js +35 -0
- package/dist/toolkits/github/tools/Issues/create-issue.d.ts +22 -0
- package/dist/toolkits/github/tools/Issues/create-issue.js +34 -0
- package/dist/toolkits/github/tools/Issues/get-issue.d.ts +29 -0
- package/dist/toolkits/github/tools/Issues/get-issue.js +36 -0
- package/dist/toolkits/github/tools/Issues/list-authenticated-user-issues.d.ts +21 -0
- package/dist/toolkits/github/tools/Issues/list-authenticated-user-issues.js +34 -0
- package/dist/toolkits/github/tools/Issues/list-issue-comments.d.ts +19 -0
- package/dist/toolkits/github/tools/Issues/list-issue-comments.js +40 -0
- package/dist/toolkits/github/tools/Issues/list-org-issues.d.ts +22 -0
- package/dist/toolkits/github/tools/Issues/list-org-issues.js +38 -0
- package/dist/toolkits/github/tools/Issues/list-repo-issues.d.ts +28 -0
- package/dist/toolkits/github/tools/Issues/list-repo-issues.js +42 -0
- package/dist/toolkits/github/tools/Issues/list-user-account-issues.d.ts +21 -0
- package/dist/toolkits/github/tools/Issues/list-user-account-issues.js +36 -0
- package/dist/toolkits/github/tools/Issues/lock-issue.d.ts +15 -0
- package/dist/toolkits/github/tools/Issues/lock-issue.js +44 -0
- package/dist/toolkits/github/tools/Issues/remove-issue-label.d.ts +14 -0
- package/dist/toolkits/github/tools/Issues/remove-issue-label.js +33 -0
- package/dist/toolkits/github/tools/Issues/unlock-issue.d.ts +13 -0
- package/dist/toolkits/github/tools/Issues/unlock-issue.js +31 -0
- package/dist/toolkits/github/tools/Issues/update-issue.d.ts +22 -0
- package/dist/toolkits/github/tools/Issues/update-issue.js +42 -0
- package/dist/toolkits/github/tools/Licenses/get-license.d.ts +33 -0
- package/dist/toolkits/github/tools/Licenses/get-license.js +42 -0
- package/dist/toolkits/github/tools/Licenses/get-repo-license.d.ts +47 -0
- package/dist/toolkits/github/tools/Licenses/get-repo-license.js +45 -0
- package/dist/toolkits/github/tools/Licenses/list-licenses.d.ts +12 -0
- package/dist/toolkits/github/tools/Licenses/list-licenses.js +32 -0
- package/dist/toolkits/github/tools/Markdown/render-markdown.d.ts +13 -0
- package/dist/toolkits/github/tools/Markdown/render-markdown.js +31 -0
- package/dist/toolkits/github/tools/Organizations/get-org-membership.d.ts +58 -0
- package/dist/toolkits/github/tools/Organizations/get-org-membership.js +38 -0
- package/dist/toolkits/github/tools/Organizations/get-organization.d.ts +65 -0
- package/dist/toolkits/github/tools/Organizations/get-organization.js +58 -0
- package/dist/toolkits/github/tools/Organizations/list-org-members.d.ts +18 -0
- package/dist/toolkits/github/tools/Organizations/list-org-members.js +44 -0
- package/dist/toolkits/github/tools/Organizations/list-org-repositories.d.ts +50 -0
- package/dist/toolkits/github/tools/Organizations/list-org-repositories.js +69 -0
- package/dist/toolkits/github/tools/Organizations/list-organizations.d.ts +13 -0
- package/dist/toolkits/github/tools/Organizations/list-organizations.js +36 -0
- package/dist/toolkits/github/tools/Organizations/list-user-organizations.d.ts +20 -0
- package/dist/toolkits/github/tools/Organizations/list-user-organizations.js +43 -0
- package/dist/toolkits/github/tools/Organizations/update-organization.d.ts +33 -0
- package/dist/toolkits/github/tools/Organizations/update-organization.js +50 -0
- package/dist/toolkits/github/tools/PRs/check-pull-request-merged.d.ts +13 -0
- package/dist/toolkits/github/tools/PRs/check-pull-request-merged.js +34 -0
- package/dist/toolkits/github/tools/PRs/create-pull-request-review.d.ts +19 -0
- package/dist/toolkits/github/tools/PRs/create-pull-request-review.js +39 -0
- package/dist/toolkits/github/tools/PRs/create-pull-request.d.ts +23 -0
- package/dist/toolkits/github/tools/PRs/create-pull-request.js +44 -0
- package/dist/toolkits/github/tools/PRs/get-pull-request.d.ts +41 -0
- package/dist/toolkits/github/tools/PRs/get-pull-request.js +47 -0
- package/dist/toolkits/github/tools/PRs/list-pull-request-commits.d.ts +15 -0
- package/dist/toolkits/github/tools/PRs/list-pull-request-commits.js +37 -0
- package/dist/toolkits/github/tools/PRs/list-pull-request-files.d.ts +22 -0
- package/dist/toolkits/github/tools/PRs/list-pull-request-files.js +42 -0
- package/dist/toolkits/github/tools/PRs/list-pull-requests.d.ts +24 -0
- package/dist/toolkits/github/tools/PRs/list-pull-requests.js +44 -0
- package/dist/toolkits/github/tools/PRs/merge-pull-request.d.ts +20 -0
- package/dist/toolkits/github/tools/PRs/merge-pull-request.js +41 -0
- package/dist/toolkits/github/tools/PRs/update-pull-request-branch.d.ts +16 -0
- package/dist/toolkits/github/tools/PRs/update-pull-request-branch.js +36 -0
- package/dist/toolkits/github/tools/PRs/update-pull-request.d.ts +26 -0
- package/dist/toolkits/github/tools/PRs/update-pull-request.js +47 -0
- package/dist/toolkits/github/tools/Projects/create-org-project.d.ts +27 -0
- package/dist/toolkits/github/tools/Projects/create-org-project.js +43 -0
- package/dist/toolkits/github/tools/Projects/delete-project.d.ts +11 -0
- package/dist/toolkits/github/tools/Projects/delete-project.js +27 -0
- package/dist/toolkits/github/tools/Projects/get-project.d.ts +31 -0
- package/dist/toolkits/github/tools/Projects/get-project.js +42 -0
- package/dist/toolkits/github/tools/Projects/list-org-projects.d.ts +20 -0
- package/dist/toolkits/github/tools/Projects/list-org-projects.js +45 -0
- package/dist/toolkits/github/tools/Projects/list-project-columns.d.ts +16 -0
- package/dist/toolkits/github/tools/Projects/list-project-columns.js +40 -0
- package/dist/toolkits/github/tools/Projects/list-repo-projects.d.ts +21 -0
- package/dist/toolkits/github/tools/Projects/list-repo-projects.js +47 -0
- package/dist/toolkits/github/tools/Projects/update-project.d.ts +22 -0
- package/dist/toolkits/github/tools/Projects/update-project.js +41 -0
- package/dist/toolkits/github/tools/RateLimit/get-rate-limit.d.ts +19 -0
- package/dist/toolkits/github/tools/RateLimit/get-rate-limit.js +26 -0
- package/dist/toolkits/github/tools/Reactions/create-commit-comment-reaction.d.ts +20 -0
- package/dist/toolkits/github/tools/Reactions/create-commit-comment-reaction.js +40 -0
- package/dist/toolkits/github/tools/Reactions/create-issue-reaction.d.ts +20 -0
- package/dist/toolkits/github/tools/Reactions/create-issue-reaction.js +40 -0
- package/dist/toolkits/github/tools/Reactions/delete-reaction.d.ts +11 -0
- package/dist/toolkits/github/tools/Reactions/delete-reaction.js +27 -0
- package/dist/toolkits/github/tools/Reactions/list-commit-comment-reactions.d.ts +17 -0
- package/dist/toolkits/github/tools/Reactions/list-commit-comment-reactions.js +44 -0
- package/dist/toolkits/github/tools/Reactions/list-issue-reactions.d.ts +17 -0
- package/dist/toolkits/github/tools/Reactions/list-issue-reactions.js +44 -0
- package/dist/toolkits/github/tools/Reactions/list-pr-comment-reactions.d.ts +17 -0
- package/dist/toolkits/github/tools/Reactions/list-pr-comment-reactions.js +44 -0
- package/dist/toolkits/github/tools/Releases/create-release.d.ts +27 -0
- package/dist/toolkits/github/tools/Releases/create-release.js +45 -0
- package/dist/toolkits/github/tools/Releases/delete-release.d.ts +13 -0
- package/dist/toolkits/github/tools/Releases/delete-release.js +31 -0
- package/dist/toolkits/github/tools/Releases/generate-release-notes.d.ts +18 -0
- package/dist/toolkits/github/tools/Releases/generate-release-notes.js +39 -0
- package/dist/toolkits/github/tools/Releases/get-latest-release.d.ts +22 -0
- package/dist/toolkits/github/tools/Releases/get-latest-release.js +38 -0
- package/dist/toolkits/github/tools/Releases/get-release.d.ts +37 -0
- package/dist/toolkits/github/tools/Releases/get-release.js +50 -0
- package/dist/toolkits/github/tools/Releases/list-releases.d.ts +22 -0
- package/dist/toolkits/github/tools/Releases/list-releases.js +47 -0
- package/dist/toolkits/github/tools/Releases/update-release.d.ts +27 -0
- package/dist/toolkits/github/tools/Releases/update-release.js +46 -0
- package/dist/toolkits/github/tools/Repos/create-repo.d.ts +32 -0
- package/dist/toolkits/github/tools/Repos/create-repo.js +57 -0
- package/dist/toolkits/github/tools/Repos/fork-repo.d.ts +17 -0
- package/dist/toolkits/github/tools/Repos/fork-repo.js +35 -0
- package/dist/toolkits/github/tools/Repos/get-repo-contributors.d.ts +20 -0
- package/dist/toolkits/github/tools/Repos/get-repo-contributors.js +39 -0
- package/dist/toolkits/github/tools/Repos/get-repo-languages.d.ts +14 -0
- package/dist/toolkits/github/tools/Repos/get-repo-languages.js +29 -0
- package/dist/toolkits/github/tools/Repos/get-repo.d.ts +36 -0
- package/dist/toolkits/github/tools/Repos/get-repo.js +43 -0
- package/dist/toolkits/github/tools/Repos/list-branches.d.ts +17 -0
- package/dist/toolkits/github/tools/Repos/list-branches.js +37 -0
- package/dist/toolkits/github/tools/Repos/list-repos.d.ts +22 -0
- package/dist/toolkits/github/tools/Repos/list-repos.js +36 -0
- package/dist/toolkits/github/tools/Repos/star-repo.d.ts +13 -0
- package/dist/toolkits/github/tools/Repos/star-repo.js +39 -0
- package/dist/toolkits/github/tools/Repos/watch-repo.d.ts +18 -0
- package/dist/toolkits/github/tools/Repos/watch-repo.js +37 -0
- package/dist/toolkits/github/tools/Search/search-code.d.ts +14 -0
- package/dist/toolkits/github/tools/Search/search-code.js +33 -0
- package/dist/toolkits/github/tools/Search/search-commits.d.ts +14 -0
- package/dist/toolkits/github/tools/Search/search-commits.js +33 -0
- package/dist/toolkits/github/tools/Search/search-issues.d.ts +23 -0
- package/dist/toolkits/github/tools/Search/search-issues.js +43 -0
- package/dist/toolkits/github/tools/Search/search-labels.d.ts +15 -0
- package/dist/toolkits/github/tools/Search/search-labels.js +35 -0
- package/dist/toolkits/github/tools/Search/search-repos.d.ts +22 -0
- package/dist/toolkits/github/tools/Search/search-repos.js +47 -0
- package/dist/toolkits/github/tools/Search/search-topics.d.ts +12 -0
- package/dist/toolkits/github/tools/Search/search-topics.js +29 -0
- package/dist/toolkits/github/tools/Search/search-users.d.ts +21 -0
- package/dist/toolkits/github/tools/Search/search-users.js +41 -0
- package/dist/toolkits/github/tools/SecretScanning/get-alert.d.ts +33 -0
- package/dist/toolkits/github/tools/SecretScanning/get-alert.js +45 -0
- package/dist/toolkits/github/tools/SecretScanning/list-alerts.d.ts +25 -0
- package/dist/toolkits/github/tools/SecretScanning/list-alerts.js +53 -0
- package/dist/toolkits/github/tools/SecretScanning/update-alert.d.ts +19 -0
- package/dist/toolkits/github/tools/SecretScanning/update-alert.js +41 -0
- package/dist/toolkits/github/tools/SecurityAdvisories/create-repository-advisory.d.ts +34 -0
- package/dist/toolkits/github/tools/SecurityAdvisories/create-repository-advisory.js +52 -0
- package/dist/toolkits/github/tools/SecurityAdvisories/get-repository-advisory.d.ts +27 -0
- package/dist/toolkits/github/tools/SecurityAdvisories/get-repository-advisory.js +42 -0
- package/dist/toolkits/github/tools/SecurityAdvisories/list-global-advisories.d.ts +14 -0
- package/dist/toolkits/github/tools/SecurityAdvisories/list-global-advisories.js +37 -0
- package/dist/toolkits/github/tools/SecurityAdvisories/list-repository-advisories.d.ts +22 -0
- package/dist/toolkits/github/tools/SecurityAdvisories/list-repository-advisories.js +47 -0
- package/dist/toolkits/github/tools/Stars/check-repo-starred.d.ts +12 -0
- package/dist/toolkits/github/tools/Stars/check-repo-starred.js +32 -0
- package/dist/toolkits/github/tools/Stars/list-stargazers.d.ts +15 -0
- package/dist/toolkits/github/tools/Stars/list-stargazers.js +40 -0
- package/dist/toolkits/github/tools/Stars/list-starred-repos.d.ts +15 -0
- package/dist/toolkits/github/tools/Stars/list-starred-repos.js +38 -0
- package/dist/toolkits/github/tools/Stars/star-repo.d.ts +12 -0
- package/dist/toolkits/github/tools/Stars/star-repo.js +29 -0
- package/dist/toolkits/github/tools/Stars/unstar-repo.d.ts +12 -0
- package/dist/toolkits/github/tools/Stars/unstar-repo.js +29 -0
- package/dist/toolkits/github/tools/Statuses/create-commit-status.d.ts +25 -0
- package/dist/toolkits/github/tools/Statuses/create-commit-status.js +44 -0
- package/dist/toolkits/github/tools/Statuses/get-combined-status.d.ts +26 -0
- package/dist/toolkits/github/tools/Statuses/get-combined-status.js +44 -0
- package/dist/toolkits/github/tools/Statuses/list-commit-statuses.d.ts +18 -0
- package/dist/toolkits/github/tools/Statuses/list-commit-statuses.js +44 -0
- package/dist/toolkits/github/tools/Teams/add-team-repo.d.ts +15 -0
- package/dist/toolkits/github/tools/Teams/add-team-repo.js +35 -0
- package/dist/toolkits/github/tools/Teams/create-team.d.ts +32 -0
- package/dist/toolkits/github/tools/Teams/create-team.js +46 -0
- package/dist/toolkits/github/tools/Teams/delete-team.d.ts +12 -0
- package/dist/toolkits/github/tools/Teams/delete-team.js +29 -0
- package/dist/toolkits/github/tools/Teams/get-team.d.ts +28 -0
- package/dist/toolkits/github/tools/Teams/get-team.js +41 -0
- package/dist/toolkits/github/tools/Teams/list-team-members.d.ts +16 -0
- package/dist/toolkits/github/tools/Teams/list-team-members.js +42 -0
- package/dist/toolkits/github/tools/Teams/list-team-repos.d.ts +22 -0
- package/dist/toolkits/github/tools/Teams/list-team-repos.js +41 -0
- package/dist/toolkits/github/tools/Teams/list-teams.d.ts +18 -0
- package/dist/toolkits/github/tools/Teams/list-teams.js +42 -0
- package/dist/toolkits/github/tools/Teams/remove-team-repo.d.ts +14 -0
- package/dist/toolkits/github/tools/Teams/remove-team-repo.js +33 -0
- package/dist/toolkits/github/tools/Teams/update-team.d.ts +27 -0
- package/dist/toolkits/github/tools/Teams/update-team.js +44 -0
- package/dist/toolkits/github/tools/Users/follow-user.d.ts +12 -0
- package/dist/toolkits/github/tools/Users/follow-user.js +36 -0
- package/dist/toolkits/github/tools/Users/get-github-user.d.ts +64 -0
- package/dist/toolkits/github/tools/Users/get-github-user.js +48 -0
- package/dist/toolkits/github/tools/Users/get-user-by-id.d.ts +53 -0
- package/dist/toolkits/github/tools/Users/get-user-by-id.js +27 -0
- package/dist/toolkits/github/tools/Users/get-user-context.d.ts +14 -0
- package/dist/toolkits/github/tools/Users/get-user-context.js +32 -0
- package/dist/toolkits/github/tools/Users/get-user.d.ts +53 -0
- package/dist/toolkits/github/tools/Users/get-user.js +27 -0
- package/dist/toolkits/github/tools/Users/list-users.d.ts +31 -0
- package/dist/toolkits/github/tools/Users/list-users.js +29 -0
- package/dist/toolkits/github/tools/Users/update-authenticated-user.d.ts +62 -0
- package/dist/toolkits/github/tools/Users/update-authenticated-user.js +39 -0
- package/dist/toolkits/github/tools/Webhooks/create-repo-webhook.d.ts +34 -0
- package/dist/toolkits/github/tools/Webhooks/create-repo-webhook.js +47 -0
- package/dist/toolkits/github/tools/Webhooks/delete-repo-webhook.d.ts +13 -0
- package/dist/toolkits/github/tools/Webhooks/delete-repo-webhook.js +31 -0
- package/dist/toolkits/github/tools/Webhooks/get-repo-webhook.d.ts +30 -0
- package/dist/toolkits/github/tools/Webhooks/get-repo-webhook.js +41 -0
- package/dist/toolkits/github/tools/Webhooks/list-repo-webhooks.d.ts +31 -0
- package/dist/toolkits/github/tools/Webhooks/list-repo-webhooks.js +47 -0
- package/dist/toolkits/github/tools/Webhooks/update-repo-webhook.d.ts +36 -0
- package/dist/toolkits/github/tools/Webhooks/update-repo-webhook.js +50 -0
- package/dist/toolkits/github/tools/Workflows/get-workflow-run.d.ts +31 -0
- package/dist/toolkits/github/tools/Workflows/get-workflow-run.js +42 -0
- package/dist/toolkits/github/tools/Workflows/list-workflow-runs.d.ts +25 -0
- package/dist/toolkits/github/tools/Workflows/list-workflow-runs.js +59 -0
- package/dist/toolkits/github/tools/Workflows/list-workflows.d.ts +21 -0
- package/dist/toolkits/github/tools/Workflows/list-workflows.js +40 -0
- package/dist/toolkits/github/tools/Workflows/trigger-workflow.d.ts +15 -0
- package/dist/toolkits/github/tools/Workflows/trigger-workflow.js +35 -0
- package/dist/toolkits/github/tools/index.d.ts +176 -0
- package/dist/toolkits/github/tools/index.js +646 -0
- package/dist/toolkits/gmail/icon.js +25 -1
- package/dist/toolkits/google-calendar/icon.d.ts +5 -0
- package/dist/toolkits/google-calendar/icon.js +6 -0
- package/dist/toolkits/google-calendar/manifest.d.ts +3 -0
- package/dist/toolkits/google-calendar/manifest.js +45 -0
- package/dist/toolkits/google-calendar/tools/create-event.d.ts +27 -0
- package/dist/toolkits/google-calendar/tools/create-event.js +54 -0
- package/dist/toolkits/google-calendar/tools/index.d.ts +7 -0
- package/dist/toolkits/google-calendar/tools/index.js +18 -0
- package/dist/toolkits/google-calendar/tools/list-events.d.ts +24 -0
- package/dist/toolkits/google-calendar/tools/list-events.js +46 -0
- package/dist/toolkits/google-sheets/icon.d.ts +5 -0
- package/dist/toolkits/google-sheets/icon.js +13 -0
- package/dist/toolkits/google-sheets/manifest.d.ts +3 -0
- package/dist/toolkits/google-sheets/manifest.js +45 -0
- package/dist/toolkits/google-sheets/tools/get-spreadsheet.d.ts +5 -0
- package/dist/toolkits/google-sheets/tools/get-spreadsheet.js +33 -0
- package/dist/toolkits/google-sheets/tools/get-values.d.ts +6 -0
- package/dist/toolkits/google-sheets/tools/get-values.js +34 -0
- package/dist/toolkits/google-sheets/tools/index.d.ts +11 -0
- package/dist/toolkits/google-sheets/tools/index.js +26 -0
- package/dist/toolkits/google-sheets/tools/list-spreadsheets.d.ts +21 -0
- package/dist/toolkits/google-sheets/tools/list-spreadsheets.js +43 -0
- package/dist/toolkits/linear/icon.js +24 -1
- package/dist/toolkits/mathematics/icon.js +1 -1
- package/dist/toolkits/notion/icon.d.ts +5 -0
- package/dist/toolkits/notion/icon.js +10 -0
- package/dist/toolkits/notion/manifest.d.ts +3 -0
- package/dist/toolkits/notion/manifest.js +37 -0
- package/dist/toolkits/notion/tools/append-block-children.d.ts +6 -0
- package/dist/toolkits/notion/tools/append-block-children.js +30 -0
- package/dist/toolkits/notion/tools/create-page.d.ts +12 -0
- package/dist/toolkits/notion/tools/create-page.js +40 -0
- package/dist/toolkits/notion/tools/get-database.d.ts +5 -0
- package/dist/toolkits/notion/tools/get-database.js +25 -0
- package/dist/toolkits/notion/tools/get-page.d.ts +15 -0
- package/dist/toolkits/notion/tools/get-page.js +42 -0
- package/dist/toolkits/notion/tools/index.d.ts +16 -0
- package/dist/toolkits/notion/tools/index.js +61 -0
- package/dist/toolkits/notion/tools/list-databases.d.ts +5 -0
- package/dist/toolkits/notion/tools/list-databases.js +33 -0
- package/dist/toolkits/notion/tools/query-database.d.ts +8 -0
- package/dist/toolkits/notion/tools/query-database.js +34 -0
- package/dist/toolkits/notion/tools/search.d.ts +14 -0
- package/dist/toolkits/notion/tools/search.js +41 -0
- package/dist/toolkits/notion/tools/update-page.d.ts +9 -0
- package/dist/toolkits/notion/tools/update-page.js +36 -0
- package/dist/toolkits/web-search/icon.js +3 -1
- package/package.json +4 -2
- package/dist/core/categories.d.ts.map +0 -1
- package/dist/core/categories.js.map +0 -1
- package/dist/core/define.d.ts.map +0 -1
- package/dist/core/define.js.map +0 -1
- package/dist/core/index.d.ts.map +0 -1
- package/dist/core/index.js.map +0 -1
- package/dist/core/types.d.ts.map +0 -1
- package/dist/core/types.js.map +0 -1
- package/dist/core/validate.d.ts.map +0 -1
- package/dist/core/validate.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/runtime/credentials.d.ts.map +0 -1
- package/dist/runtime/credentials.js.map +0 -1
- package/dist/runtime/index.d.ts.map +0 -1
- package/dist/runtime/index.js.map +0 -1
- package/dist/runtime/meta-tools.d.ts.map +0 -1
- package/dist/runtime/meta-tools.js.map +0 -1
- package/dist/runtime/registry.d.ts.map +0 -1
- package/dist/runtime/registry.js.map +0 -1
- package/dist/runtime/schema-helpers.d.ts.map +0 -1
- package/dist/runtime/schema-helpers.js.map +0 -1
- package/dist/toolkits/gmail/icon.d.ts.map +0 -1
- package/dist/toolkits/gmail/icon.js.map +0 -1
- package/dist/toolkits/gmail/manifest.d.ts.map +0 -1
- package/dist/toolkits/gmail/manifest.js.map +0 -1
- package/dist/toolkits/gmail/tools/get-message.d.ts.map +0 -1
- package/dist/toolkits/gmail/tools/get-message.js.map +0 -1
- package/dist/toolkits/gmail/tools/list-messages.d.ts.map +0 -1
- package/dist/toolkits/gmail/tools/list-messages.js.map +0 -1
- package/dist/toolkits/gmail/tools/send-message.d.ts.map +0 -1
- package/dist/toolkits/gmail/tools/send-message.js.map +0 -1
- package/dist/toolkits/linear/icon.d.ts.map +0 -1
- package/dist/toolkits/linear/icon.js.map +0 -1
- package/dist/toolkits/linear/manifest.d.ts.map +0 -1
- package/dist/toolkits/linear/manifest.js.map +0 -1
- package/dist/toolkits/linear/tools/create-issue.d.ts.map +0 -1
- package/dist/toolkits/linear/tools/create-issue.js.map +0 -1
- package/dist/toolkits/linear/tools/list-teams.d.ts.map +0 -1
- package/dist/toolkits/linear/tools/list-teams.js.map +0 -1
- package/dist/toolkits/linear/tools/search-issues.d.ts.map +0 -1
- package/dist/toolkits/linear/tools/search-issues.js.map +0 -1
- package/dist/toolkits/mathematics/icon.d.ts.map +0 -1
- package/dist/toolkits/mathematics/icon.js.map +0 -1
- package/dist/toolkits/mathematics/manifest.d.ts.map +0 -1
- package/dist/toolkits/mathematics/manifest.js.map +0 -1
- package/dist/toolkits/mathematics/tools/calculate-combinatorics.d.ts.map +0 -1
- package/dist/toolkits/mathematics/tools/calculate-combinatorics.js.map +0 -1
- package/dist/toolkits/mathematics/tools/calculate-matrix-determinant.d.ts.map +0 -1
- package/dist/toolkits/mathematics/tools/calculate-matrix-determinant.js.map +0 -1
- package/dist/toolkits/mathematics/tools/calculate-percentage.d.ts.map +0 -1
- package/dist/toolkits/mathematics/tools/calculate-percentage.js.map +0 -1
- package/dist/toolkits/mathematics/tools/calculate-product.d.ts.map +0 -1
- package/dist/toolkits/mathematics/tools/calculate-product.js.map +0 -1
- package/dist/toolkits/mathematics/tools/calculate-quadratic-roots.d.ts.map +0 -1
- package/dist/toolkits/mathematics/tools/calculate-quadratic-roots.js.map +0 -1
- package/dist/toolkits/mathematics/tools/calculate-statistics.d.ts.map +0 -1
- package/dist/toolkits/mathematics/tools/calculate-statistics.js.map +0 -1
- package/dist/toolkits/mathematics/tools/calculate-sum.d.ts.map +0 -1
- package/dist/toolkits/mathematics/tools/calculate-sum.js.map +0 -1
- package/dist/toolkits/mathematics/tools/get-random-number.d.ts.map +0 -1
- package/dist/toolkits/mathematics/tools/get-random-number.js.map +0 -1
- package/dist/toolkits/mathematics/tools/solve-linear-equations.d.ts.map +0 -1
- package/dist/toolkits/mathematics/tools/solve-linear-equations.js.map +0 -1
- package/dist/toolkits/web-search/icon.d.ts.map +0 -1
- package/dist/toolkits/web-search/icon.js.map +0 -1
- package/dist/toolkits/web-search/manifest.d.ts.map +0 -1
- package/dist/toolkits/web-search/manifest.js.map +0 -1
- package/dist/toolkits/web-search/tools/firecrawl-client.d.ts.map +0 -1
- package/dist/toolkits/web-search/tools/firecrawl-client.js.map +0 -1
- package/dist/toolkits/web-search/tools/web-scrape.d.ts.map +0 -1
- package/dist/toolkits/web-search/tools/web-scrape.js.map +0 -1
- package/dist/toolkits/web-search/tools/web-search.d.ts.map +0 -1
- package/dist/toolkits/web-search/tools/web-search.js.map +0 -1
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export declare const createRepoWebhook: import("ai").Tool<{
|
|
2
|
+
repo: string;
|
|
3
|
+
owner: string;
|
|
4
|
+
config: {
|
|
5
|
+
url: string;
|
|
6
|
+
secret?: string | undefined;
|
|
7
|
+
content_type?: string | undefined;
|
|
8
|
+
insecure_ssl?: string | undefined;
|
|
9
|
+
};
|
|
10
|
+
githubToken?: string | undefined;
|
|
11
|
+
name?: string | undefined;
|
|
12
|
+
events?: string[] | undefined;
|
|
13
|
+
active?: boolean | undefined;
|
|
14
|
+
}, {
|
|
15
|
+
error: string;
|
|
16
|
+
id?: undefined;
|
|
17
|
+
name?: undefined;
|
|
18
|
+
active?: undefined;
|
|
19
|
+
events?: undefined;
|
|
20
|
+
config?: undefined;
|
|
21
|
+
} | {
|
|
22
|
+
id: number;
|
|
23
|
+
name: string;
|
|
24
|
+
active: boolean;
|
|
25
|
+
events: string[];
|
|
26
|
+
config: {
|
|
27
|
+
url?: import("@octokit/openapi-types").components["schemas"]["webhook-config-url"];
|
|
28
|
+
content_type?: import("@octokit/openapi-types").components["schemas"]["webhook-config-content-type"];
|
|
29
|
+
secret?: import("@octokit/openapi-types").components["schemas"]["webhook-config-secret"];
|
|
30
|
+
insecure_ssl?: import("@octokit/openapi-types").components["schemas"]["webhook-config-insecure-ssl"];
|
|
31
|
+
};
|
|
32
|
+
error?: undefined;
|
|
33
|
+
}>;
|
|
34
|
+
//# sourceMappingURL=create-repo-webhook.d.ts.map
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import { tool } from 'ai';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
import { Octokit } from 'octokit';
|
|
5
|
+
export const createRepoWebhook = tool({
|
|
6
|
+
description: 'Create a webhook for a repository.',
|
|
7
|
+
inputSchema: z.object({
|
|
8
|
+
githubToken: z.string().optional().describe('Injected by system; do not provide'),
|
|
9
|
+
owner: z.string().describe('Repository owner (username or org)'),
|
|
10
|
+
repo: z.string().describe('Repository name'),
|
|
11
|
+
name: z.string().optional().describe('The name of the webhook. Default: "web"'),
|
|
12
|
+
active: z.boolean().optional().describe('Determines if notifications are sent when the webhook is triggered'),
|
|
13
|
+
events: z.array(z.string()).optional().describe('Determines what events the hook is triggered for'),
|
|
14
|
+
config: z.object({
|
|
15
|
+
url: z.string().describe('The URL to which the payloads will be delivered'),
|
|
16
|
+
content_type: z.string().optional().describe('The media type used to serialize the payloads'),
|
|
17
|
+
secret: z.string().optional().describe('If provided, payloads will be delivered with an X-Hub-Signature header'),
|
|
18
|
+
insecure_ssl: z.string().optional().describe('Determines whether the SSL certificate of the host for url will be verified'),
|
|
19
|
+
}).describe('Key/value pairs to provide settings for this webhook'),
|
|
20
|
+
}),
|
|
21
|
+
execute: async ({ githubToken, owner, repo, ...options }) => {
|
|
22
|
+
if (!githubToken) {
|
|
23
|
+
return { error: 'GitHub token is required. Connect GitHub first.' };
|
|
24
|
+
}
|
|
25
|
+
const octokit = new Octokit({ auth: githubToken });
|
|
26
|
+
try {
|
|
27
|
+
const { data } = await octokit.rest.repos.createWebhook({
|
|
28
|
+
owner,
|
|
29
|
+
repo,
|
|
30
|
+
...options,
|
|
31
|
+
});
|
|
32
|
+
if (!data)
|
|
33
|
+
return { error: 'No data returned from GitHub API' };
|
|
34
|
+
return {
|
|
35
|
+
id: data.id,
|
|
36
|
+
name: data.name,
|
|
37
|
+
active: data.active,
|
|
38
|
+
events: data.events,
|
|
39
|
+
config: data.config,
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
catch (error) {
|
|
43
|
+
return { error: `Failed to create repository webhook: ${error.message}` };
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
});
|
|
47
|
+
//# sourceMappingURL=create-repo-webhook.js.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const deleteRepoWebhook: import("ai").Tool<{
|
|
2
|
+
repo: string;
|
|
3
|
+
owner: string;
|
|
4
|
+
hook_id: number;
|
|
5
|
+
githubToken?: string | undefined;
|
|
6
|
+
}, {
|
|
7
|
+
error: string;
|
|
8
|
+
message?: undefined;
|
|
9
|
+
} | {
|
|
10
|
+
message: string;
|
|
11
|
+
error?: undefined;
|
|
12
|
+
}>;
|
|
13
|
+
//# sourceMappingURL=delete-repo-webhook.d.ts.map
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import { tool } from 'ai';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
import { Octokit } from 'octokit';
|
|
5
|
+
export const deleteRepoWebhook = tool({
|
|
6
|
+
description: 'Delete a webhook from a repository.',
|
|
7
|
+
inputSchema: z.object({
|
|
8
|
+
githubToken: z.string().optional().describe('Injected by system; do not provide'),
|
|
9
|
+
owner: z.string().describe('Repository owner (username or org)'),
|
|
10
|
+
repo: z.string().describe('Repository name'),
|
|
11
|
+
hook_id: z.number().describe('The unique identifier of the webhook'),
|
|
12
|
+
}),
|
|
13
|
+
execute: async ({ githubToken, owner, repo, hook_id }) => {
|
|
14
|
+
if (!githubToken) {
|
|
15
|
+
return { error: 'GitHub token is required. Connect GitHub first.' };
|
|
16
|
+
}
|
|
17
|
+
const octokit = new Octokit({ auth: githubToken });
|
|
18
|
+
try {
|
|
19
|
+
await octokit.rest.repos.deleteWebhook({
|
|
20
|
+
owner,
|
|
21
|
+
repo,
|
|
22
|
+
hook_id,
|
|
23
|
+
});
|
|
24
|
+
return { message: `Successfully deleted repository webhook ${hook_id}` };
|
|
25
|
+
}
|
|
26
|
+
catch (error) {
|
|
27
|
+
return { error: `Failed to delete repository webhook: ${error.message}` };
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
});
|
|
31
|
+
//# sourceMappingURL=delete-repo-webhook.js.map
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export declare const getRepoWebhook: import("ai").Tool<{
|
|
2
|
+
repo: string;
|
|
3
|
+
owner: string;
|
|
4
|
+
hook_id: number;
|
|
5
|
+
githubToken?: string | undefined;
|
|
6
|
+
}, {
|
|
7
|
+
error: string;
|
|
8
|
+
id?: undefined;
|
|
9
|
+
name?: undefined;
|
|
10
|
+
active?: undefined;
|
|
11
|
+
events?: undefined;
|
|
12
|
+
config?: undefined;
|
|
13
|
+
updated_at?: undefined;
|
|
14
|
+
created_at?: undefined;
|
|
15
|
+
} | {
|
|
16
|
+
id: number;
|
|
17
|
+
name: string;
|
|
18
|
+
active: boolean;
|
|
19
|
+
events: string[];
|
|
20
|
+
config: {
|
|
21
|
+
url?: import("@octokit/openapi-types").components["schemas"]["webhook-config-url"];
|
|
22
|
+
content_type?: import("@octokit/openapi-types").components["schemas"]["webhook-config-content-type"];
|
|
23
|
+
secret?: import("@octokit/openapi-types").components["schemas"]["webhook-config-secret"];
|
|
24
|
+
insecure_ssl?: import("@octokit/openapi-types").components["schemas"]["webhook-config-insecure-ssl"];
|
|
25
|
+
};
|
|
26
|
+
updated_at: string;
|
|
27
|
+
created_at: string;
|
|
28
|
+
error?: undefined;
|
|
29
|
+
}>;
|
|
30
|
+
//# sourceMappingURL=get-repo-webhook.d.ts.map
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import { tool } from 'ai';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
import { Octokit } from 'octokit';
|
|
5
|
+
export const getRepoWebhook = tool({
|
|
6
|
+
description: 'Get a webhook for a repository.',
|
|
7
|
+
inputSchema: z.object({
|
|
8
|
+
githubToken: z.string().optional().describe('Injected by system; do not provide'),
|
|
9
|
+
owner: z.string().describe('Repository owner (username or org)'),
|
|
10
|
+
repo: z.string().describe('Repository name'),
|
|
11
|
+
hook_id: z.number().describe('The unique identifier of the webhook'),
|
|
12
|
+
}),
|
|
13
|
+
execute: async ({ githubToken, owner, repo, hook_id }) => {
|
|
14
|
+
if (!githubToken) {
|
|
15
|
+
return { error: 'GitHub token is required. Connect GitHub first.' };
|
|
16
|
+
}
|
|
17
|
+
const octokit = new Octokit({ auth: githubToken });
|
|
18
|
+
try {
|
|
19
|
+
const { data } = await octokit.rest.repos.getWebhook({
|
|
20
|
+
owner,
|
|
21
|
+
repo,
|
|
22
|
+
hook_id,
|
|
23
|
+
});
|
|
24
|
+
if (!data)
|
|
25
|
+
return { error: 'No data returned from GitHub API' };
|
|
26
|
+
return {
|
|
27
|
+
id: data.id,
|
|
28
|
+
name: data.name,
|
|
29
|
+
active: data.active,
|
|
30
|
+
events: data.events,
|
|
31
|
+
config: data.config,
|
|
32
|
+
updated_at: data.updated_at,
|
|
33
|
+
created_at: data.created_at,
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
catch (error) {
|
|
37
|
+
return { error: `Failed to get repository webhook: ${error.message}` };
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
});
|
|
41
|
+
//# sourceMappingURL=get-repo-webhook.js.map
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export declare const listRepoWebhooks: import("ai").Tool<{
|
|
2
|
+
repo: string;
|
|
3
|
+
owner: string;
|
|
4
|
+
githubToken?: string | undefined;
|
|
5
|
+
per_page?: number | undefined;
|
|
6
|
+
page?: number | undefined;
|
|
7
|
+
}, {
|
|
8
|
+
id: number;
|
|
9
|
+
name: string;
|
|
10
|
+
active: boolean;
|
|
11
|
+
events: string[];
|
|
12
|
+
config: {
|
|
13
|
+
url?: import("@octokit/openapi-types").components["schemas"]["webhook-config-url"];
|
|
14
|
+
content_type?: import("@octokit/openapi-types").components["schemas"]["webhook-config-content-type"];
|
|
15
|
+
secret?: import("@octokit/openapi-types").components["schemas"]["webhook-config-secret"];
|
|
16
|
+
insecure_ssl?: import("@octokit/openapi-types").components["schemas"]["webhook-config-insecure-ssl"];
|
|
17
|
+
};
|
|
18
|
+
updated_at: string;
|
|
19
|
+
created_at: string;
|
|
20
|
+
url: string;
|
|
21
|
+
test_url: string;
|
|
22
|
+
ping_url: string;
|
|
23
|
+
last_response: {
|
|
24
|
+
code: number | null;
|
|
25
|
+
status: string | null;
|
|
26
|
+
message: string | null;
|
|
27
|
+
};
|
|
28
|
+
}[] | {
|
|
29
|
+
error: string;
|
|
30
|
+
}>;
|
|
31
|
+
//# sourceMappingURL=list-repo-webhooks.d.ts.map
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import { tool } from 'ai';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
import { Octokit } from 'octokit';
|
|
5
|
+
export const listRepoWebhooks = tool({
|
|
6
|
+
description: 'List webhooks for a repository.',
|
|
7
|
+
inputSchema: z.object({
|
|
8
|
+
githubToken: z.string().optional().describe('Injected by system; do not provide'),
|
|
9
|
+
owner: z.string().describe('Repository owner (username or org)'),
|
|
10
|
+
repo: z.string().describe('Repository name'),
|
|
11
|
+
per_page: z.number().optional().describe('Number of results per page (max 100)'),
|
|
12
|
+
page: z.number().optional().describe('Page number of results to fetch'),
|
|
13
|
+
}),
|
|
14
|
+
execute: async ({ githubToken, owner, repo, per_page, page }) => {
|
|
15
|
+
if (!githubToken) {
|
|
16
|
+
return { error: 'GitHub token is required. Connect GitHub first.' };
|
|
17
|
+
}
|
|
18
|
+
const octokit = new Octokit({ auth: githubToken });
|
|
19
|
+
try {
|
|
20
|
+
const { data } = await octokit.rest.repos.listWebhooks({
|
|
21
|
+
owner,
|
|
22
|
+
repo,
|
|
23
|
+
per_page: per_page ?? 30,
|
|
24
|
+
page: page ?? 1,
|
|
25
|
+
});
|
|
26
|
+
if (!data)
|
|
27
|
+
return { error: 'No data returned from GitHub API' };
|
|
28
|
+
return data.map(hook => ({
|
|
29
|
+
id: hook.id,
|
|
30
|
+
name: hook.name,
|
|
31
|
+
active: hook.active,
|
|
32
|
+
events: hook.events,
|
|
33
|
+
config: hook.config,
|
|
34
|
+
updated_at: hook.updated_at,
|
|
35
|
+
created_at: hook.created_at,
|
|
36
|
+
url: hook.url,
|
|
37
|
+
test_url: hook.test_url,
|
|
38
|
+
ping_url: hook.ping_url,
|
|
39
|
+
last_response: hook.last_response,
|
|
40
|
+
}));
|
|
41
|
+
}
|
|
42
|
+
catch (error) {
|
|
43
|
+
return { error: `Failed to list repository webhooks: ${error.message}` };
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
});
|
|
47
|
+
//# sourceMappingURL=list-repo-webhooks.js.map
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export declare const updateRepoWebhook: import("ai").Tool<{
|
|
2
|
+
repo: string;
|
|
3
|
+
owner: string;
|
|
4
|
+
hook_id: number;
|
|
5
|
+
githubToken?: string | undefined;
|
|
6
|
+
events?: string[] | undefined;
|
|
7
|
+
active?: boolean | undefined;
|
|
8
|
+
config?: {
|
|
9
|
+
url: string;
|
|
10
|
+
secret?: string | undefined;
|
|
11
|
+
content_type?: string | undefined;
|
|
12
|
+
insecure_ssl?: string | undefined;
|
|
13
|
+
} | undefined;
|
|
14
|
+
add_events?: string[] | undefined;
|
|
15
|
+
remove_events?: string[] | undefined;
|
|
16
|
+
}, {
|
|
17
|
+
error: string;
|
|
18
|
+
id?: undefined;
|
|
19
|
+
name?: undefined;
|
|
20
|
+
active?: undefined;
|
|
21
|
+
events?: undefined;
|
|
22
|
+
config?: undefined;
|
|
23
|
+
} | {
|
|
24
|
+
id: number;
|
|
25
|
+
name: string;
|
|
26
|
+
active: boolean;
|
|
27
|
+
events: string[];
|
|
28
|
+
config: {
|
|
29
|
+
url?: import("@octokit/openapi-types").components["schemas"]["webhook-config-url"];
|
|
30
|
+
content_type?: import("@octokit/openapi-types").components["schemas"]["webhook-config-content-type"];
|
|
31
|
+
secret?: import("@octokit/openapi-types").components["schemas"]["webhook-config-secret"];
|
|
32
|
+
insecure_ssl?: import("@octokit/openapi-types").components["schemas"]["webhook-config-insecure-ssl"];
|
|
33
|
+
};
|
|
34
|
+
error?: undefined;
|
|
35
|
+
}>;
|
|
36
|
+
//# sourceMappingURL=update-repo-webhook.d.ts.map
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import { tool } from 'ai';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
import { Octokit } from 'octokit';
|
|
5
|
+
export const updateRepoWebhook = tool({
|
|
6
|
+
description: 'Update a webhook for a repository.',
|
|
7
|
+
inputSchema: z.object({
|
|
8
|
+
githubToken: z.string().optional().describe('Injected by system; do not provide'),
|
|
9
|
+
owner: z.string().describe('Repository owner (username or org)'),
|
|
10
|
+
repo: z.string().describe('Repository name'),
|
|
11
|
+
hook_id: z.number().describe('The unique identifier of the webhook'),
|
|
12
|
+
config: z.object({
|
|
13
|
+
url: z.string().describe('The URL to which the payloads will be delivered'),
|
|
14
|
+
content_type: z.string().optional().describe('The media type used to serialize the payloads'),
|
|
15
|
+
secret: z.string().optional().describe('If provided, payloads will be delivered with an X-Hub-Signature header'),
|
|
16
|
+
insecure_ssl: z.string().optional().describe('Determines whether the SSL certificate of the host for url will be verified'),
|
|
17
|
+
}).optional().describe('Key/value pairs to provide settings for this webhook'),
|
|
18
|
+
events: z.array(z.string()).optional().describe('Determines what events the hook is triggered for'),
|
|
19
|
+
add_events: z.array(z.string()).optional().describe('Determines a list of events to be added to the list of events that the Hook triggers for'),
|
|
20
|
+
remove_events: z.array(z.string()).optional().describe('Determines a list of events to be removed from the list of events that the Hook triggers for'),
|
|
21
|
+
active: z.boolean().optional().describe('Determines if notifications are sent when the webhook is triggered'),
|
|
22
|
+
}),
|
|
23
|
+
execute: async ({ githubToken, owner, repo, hook_id, ...options }) => {
|
|
24
|
+
if (!githubToken) {
|
|
25
|
+
return { error: 'GitHub token is required. Connect GitHub first.' };
|
|
26
|
+
}
|
|
27
|
+
const octokit = new Octokit({ auth: githubToken });
|
|
28
|
+
try {
|
|
29
|
+
const { data } = await octokit.rest.repos.updateWebhook({
|
|
30
|
+
owner,
|
|
31
|
+
repo,
|
|
32
|
+
hook_id,
|
|
33
|
+
...options,
|
|
34
|
+
});
|
|
35
|
+
if (!data)
|
|
36
|
+
return { error: 'No data returned from GitHub API' };
|
|
37
|
+
return {
|
|
38
|
+
id: data.id,
|
|
39
|
+
name: data.name,
|
|
40
|
+
active: data.active,
|
|
41
|
+
events: data.events,
|
|
42
|
+
config: data.config,
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
catch (error) {
|
|
46
|
+
return { error: `Failed to update repository webhook: ${error.message}` };
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
});
|
|
50
|
+
//# sourceMappingURL=update-repo-webhook.js.map
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export declare const getWorkflowRun: import("ai").Tool<{
|
|
2
|
+
repo: string;
|
|
3
|
+
owner: string;
|
|
4
|
+
runId: number;
|
|
5
|
+
githubToken?: string | undefined;
|
|
6
|
+
}, {
|
|
7
|
+
error: string;
|
|
8
|
+
id?: undefined;
|
|
9
|
+
name?: undefined;
|
|
10
|
+
status?: undefined;
|
|
11
|
+
conclusion?: undefined;
|
|
12
|
+
workflow_id?: undefined;
|
|
13
|
+
html_url?: undefined;
|
|
14
|
+
head_branch?: undefined;
|
|
15
|
+
head_sha?: undefined;
|
|
16
|
+
created_at?: undefined;
|
|
17
|
+
updated_at?: undefined;
|
|
18
|
+
} | {
|
|
19
|
+
id: number;
|
|
20
|
+
name: string | null | undefined;
|
|
21
|
+
status: string | null;
|
|
22
|
+
conclusion: string | null;
|
|
23
|
+
workflow_id: number;
|
|
24
|
+
html_url: string;
|
|
25
|
+
head_branch: string | null;
|
|
26
|
+
head_sha: string;
|
|
27
|
+
created_at: string;
|
|
28
|
+
updated_at: string;
|
|
29
|
+
error?: undefined;
|
|
30
|
+
}>;
|
|
31
|
+
//# sourceMappingURL=get-workflow-run.d.ts.map
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import { tool } from 'ai';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
import { Octokit } from 'octokit';
|
|
5
|
+
export const getWorkflowRun = tool({
|
|
6
|
+
description: 'Get details of a specific GitHub Actions workflow run.',
|
|
7
|
+
inputSchema: z.object({
|
|
8
|
+
githubToken: z.string().optional().describe('Injected by system; do not provide'),
|
|
9
|
+
owner: z.string().describe('Repository owner'),
|
|
10
|
+
repo: z.string().describe('Repository name'),
|
|
11
|
+
runId: z.number().describe('The ID of the workflow run'),
|
|
12
|
+
}),
|
|
13
|
+
execute: async ({ githubToken, owner, repo, runId }) => {
|
|
14
|
+
if (!githubToken) {
|
|
15
|
+
return { error: 'GitHub token is required. Connect GitHub first.' };
|
|
16
|
+
}
|
|
17
|
+
const octokit = new Octokit({ auth: githubToken });
|
|
18
|
+
try {
|
|
19
|
+
const { data } = await octokit.rest.actions.getWorkflowRun({
|
|
20
|
+
owner,
|
|
21
|
+
repo,
|
|
22
|
+
run_id: runId,
|
|
23
|
+
});
|
|
24
|
+
return {
|
|
25
|
+
id: data.id,
|
|
26
|
+
name: data.name,
|
|
27
|
+
status: data.status,
|
|
28
|
+
conclusion: data.conclusion,
|
|
29
|
+
workflow_id: data.workflow_id,
|
|
30
|
+
html_url: data.html_url,
|
|
31
|
+
head_branch: data.head_branch,
|
|
32
|
+
head_sha: data.head_sha,
|
|
33
|
+
created_at: data.created_at,
|
|
34
|
+
updated_at: data.updated_at,
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
catch (error) {
|
|
38
|
+
return { error: `Failed to get workflow run: ${error.message}` };
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
});
|
|
42
|
+
//# sourceMappingURL=get-workflow-run.js.map
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export declare const listWorkflowRuns: import("ai").Tool<{
|
|
2
|
+
repo: string;
|
|
3
|
+
owner: string;
|
|
4
|
+
perPage: number;
|
|
5
|
+
status?: "success" | "queued" | "in_progress" | "completed" | "waiting" | "requested" | "failure" | "neutral" | "cancelled" | "skipped" | "timed_out" | "action_required" | "stale" | undefined;
|
|
6
|
+
githubToken?: string | undefined;
|
|
7
|
+
workflowId?: string | number | undefined;
|
|
8
|
+
}, {
|
|
9
|
+
error: string;
|
|
10
|
+
total_count?: undefined;
|
|
11
|
+
workflow_runs?: undefined;
|
|
12
|
+
} | {
|
|
13
|
+
total_count: number;
|
|
14
|
+
workflow_runs: {
|
|
15
|
+
id: number;
|
|
16
|
+
name: string | null | undefined;
|
|
17
|
+
status: string | null;
|
|
18
|
+
conclusion: string | null;
|
|
19
|
+
html_url: string;
|
|
20
|
+
created_at: string;
|
|
21
|
+
updated_at: string;
|
|
22
|
+
}[];
|
|
23
|
+
error?: undefined;
|
|
24
|
+
}>;
|
|
25
|
+
//# sourceMappingURL=list-workflow-runs.d.ts.map
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import { tool } from 'ai';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
import { Octokit } from 'octokit';
|
|
5
|
+
export const listWorkflowRuns = tool({
|
|
6
|
+
description: 'List GitHub Actions workflow runs.',
|
|
7
|
+
inputSchema: z.object({
|
|
8
|
+
githubToken: z.string().optional().describe('Injected by system; do not provide'),
|
|
9
|
+
owner: z.string().describe('Repository owner'),
|
|
10
|
+
repo: z.string().describe('Repository name'),
|
|
11
|
+
workflowId: z.union([z.string(), z.number()]).optional().describe('Specific workflow ID or filename to filter by'),
|
|
12
|
+
status: z.enum(['completed', 'action_required', 'cancelled', 'failure', 'neutral', 'skipped', 'stale', 'success', 'timed_out', 'in_progress', 'queued', 'requested', 'waiting']).optional(),
|
|
13
|
+
perPage: z.number().optional().default(30),
|
|
14
|
+
}),
|
|
15
|
+
execute: async ({ githubToken, owner, repo, workflowId, status, perPage = 30 }) => {
|
|
16
|
+
if (!githubToken) {
|
|
17
|
+
return { error: 'GitHub token is required. Connect GitHub first.' };
|
|
18
|
+
}
|
|
19
|
+
const octokit = new Octokit({ auth: githubToken });
|
|
20
|
+
try {
|
|
21
|
+
let data;
|
|
22
|
+
if (workflowId) {
|
|
23
|
+
const response = await octokit.rest.actions.listWorkflowRuns({
|
|
24
|
+
owner,
|
|
25
|
+
repo,
|
|
26
|
+
workflow_id: workflowId,
|
|
27
|
+
status,
|
|
28
|
+
per_page: perPage,
|
|
29
|
+
});
|
|
30
|
+
data = response.data;
|
|
31
|
+
}
|
|
32
|
+
else {
|
|
33
|
+
const response = await octokit.rest.actions.listWorkflowRunsForRepo({
|
|
34
|
+
owner,
|
|
35
|
+
repo,
|
|
36
|
+
status,
|
|
37
|
+
per_page: perPage,
|
|
38
|
+
});
|
|
39
|
+
data = response.data;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
total_count: data.total_count,
|
|
43
|
+
workflow_runs: data.workflow_runs.map((run) => ({
|
|
44
|
+
id: run.id,
|
|
45
|
+
name: run.name,
|
|
46
|
+
status: run.status,
|
|
47
|
+
conclusion: run.conclusion,
|
|
48
|
+
html_url: run.html_url,
|
|
49
|
+
created_at: run.created_at,
|
|
50
|
+
updated_at: run.updated_at,
|
|
51
|
+
})),
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
catch (error) {
|
|
55
|
+
return { error: `Failed to list workflow runs: ${error.message}` };
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
});
|
|
59
|
+
//# sourceMappingURL=list-workflow-runs.js.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export declare const listWorkflows: import("ai").Tool<{
|
|
2
|
+
repo: string;
|
|
3
|
+
owner: string;
|
|
4
|
+
perPage: number;
|
|
5
|
+
githubToken?: string | undefined;
|
|
6
|
+
}, {
|
|
7
|
+
error: string;
|
|
8
|
+
total_count?: undefined;
|
|
9
|
+
workflows?: undefined;
|
|
10
|
+
} | {
|
|
11
|
+
total_count: number;
|
|
12
|
+
workflows: {
|
|
13
|
+
id: number;
|
|
14
|
+
name: string;
|
|
15
|
+
state: "active" | "deleted" | "disabled_fork" | "disabled_inactivity" | "disabled_manually";
|
|
16
|
+
path: string;
|
|
17
|
+
html_url: string;
|
|
18
|
+
}[];
|
|
19
|
+
error?: undefined;
|
|
20
|
+
}>;
|
|
21
|
+
//# sourceMappingURL=list-workflows.d.ts.map
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import { tool } from 'ai';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
import { Octokit } from 'octokit';
|
|
5
|
+
export const listWorkflows = tool({
|
|
6
|
+
description: 'List GitHub Actions workflows for a repository.',
|
|
7
|
+
inputSchema: z.object({
|
|
8
|
+
githubToken: z.string().optional().describe('Injected by system; do not provide'),
|
|
9
|
+
owner: z.string().describe('Repository owner'),
|
|
10
|
+
repo: z.string().describe('Repository name'),
|
|
11
|
+
perPage: z.number().optional().default(30),
|
|
12
|
+
}),
|
|
13
|
+
execute: async ({ githubToken, owner, repo, perPage = 30 }) => {
|
|
14
|
+
if (!githubToken) {
|
|
15
|
+
return { error: 'GitHub token is required. Connect GitHub first.' };
|
|
16
|
+
}
|
|
17
|
+
const octokit = new Octokit({ auth: githubToken });
|
|
18
|
+
try {
|
|
19
|
+
const { data } = await octokit.rest.actions.listRepoWorkflows({
|
|
20
|
+
owner,
|
|
21
|
+
repo,
|
|
22
|
+
per_page: perPage,
|
|
23
|
+
});
|
|
24
|
+
return {
|
|
25
|
+
total_count: data.total_count,
|
|
26
|
+
workflows: data.workflows.map((wf) => ({
|
|
27
|
+
id: wf.id,
|
|
28
|
+
name: wf.name,
|
|
29
|
+
state: wf.state,
|
|
30
|
+
path: wf.path,
|
|
31
|
+
html_url: wf.html_url,
|
|
32
|
+
})),
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
catch (error) {
|
|
36
|
+
return { error: `Failed to list workflows: ${error.message}` };
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
});
|
|
40
|
+
//# sourceMappingURL=list-workflows.js.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const triggerWorkflow: import("ai").Tool<{
|
|
2
|
+
repo: string;
|
|
3
|
+
owner: string;
|
|
4
|
+
ref: string;
|
|
5
|
+
workflowId: string | number;
|
|
6
|
+
githubToken?: string | undefined;
|
|
7
|
+
inputs?: Record<string, string> | undefined;
|
|
8
|
+
}, {
|
|
9
|
+
error: string;
|
|
10
|
+
message?: undefined;
|
|
11
|
+
} | {
|
|
12
|
+
message: string;
|
|
13
|
+
error?: undefined;
|
|
14
|
+
}>;
|
|
15
|
+
//# sourceMappingURL=trigger-workflow.d.ts.map
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import { tool } from 'ai';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
import { Octokit } from 'octokit';
|
|
5
|
+
export const triggerWorkflow = tool({
|
|
6
|
+
description: 'Trigger a GitHub Actions workflow dispatch event.',
|
|
7
|
+
inputSchema: z.object({
|
|
8
|
+
githubToken: z.string().optional().describe('Injected by system; do not provide'),
|
|
9
|
+
owner: z.string().describe('Repository owner'),
|
|
10
|
+
repo: z.string().describe('Repository name'),
|
|
11
|
+
workflowId: z.union([z.string(), z.number()]).describe('Workflow ID or filename (e.g., "main.yml")'),
|
|
12
|
+
ref: z.string().describe('The git reference for the workflow (branch or tag)'),
|
|
13
|
+
inputs: z.record(z.string(), z.string()).optional().describe('Input keys and values configured in the workflow file'),
|
|
14
|
+
}),
|
|
15
|
+
execute: async ({ githubToken, owner, repo, workflowId, ref, inputs }) => {
|
|
16
|
+
if (!githubToken) {
|
|
17
|
+
return { error: 'GitHub token is required. Connect GitHub first.' };
|
|
18
|
+
}
|
|
19
|
+
const octokit = new Octokit({ auth: githubToken });
|
|
20
|
+
try {
|
|
21
|
+
await octokit.rest.actions.createWorkflowDispatch({
|
|
22
|
+
owner,
|
|
23
|
+
repo,
|
|
24
|
+
workflow_id: workflowId,
|
|
25
|
+
ref,
|
|
26
|
+
inputs: inputs || {},
|
|
27
|
+
});
|
|
28
|
+
return { message: 'Workflow triggered successfully' };
|
|
29
|
+
}
|
|
30
|
+
catch (error) {
|
|
31
|
+
return { error: `Failed to trigger workflow: ${error.message}` };
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
});
|
|
35
|
+
//# sourceMappingURL=trigger-workflow.js.map
|