@robinpath/github
Advanced tools
| /** | ||
| * RobinPath GitHub Module (Node port) | ||
| * | ||
| * GitHub REST API v3 client covering the day-to-day surface: repositories, | ||
| * branches, commits, issues, pull requests, releases, labels, milestones, | ||
| * file contents, GitHub Actions workflows, users, and search. | ||
| * | ||
| * Mirror of packages/php/github/src/index.php — shares the same credential | ||
| * contract, metadata shape, and error taxonomy so the visual editor can | ||
| * render both identically. | ||
| * | ||
| * Authentication uses the RobinPath credential vault. Every handler takes | ||
| * a credential slug as its first argument; the host registers a | ||
| * CredentialStore on the runtime and this module resolves personal access | ||
| * tokens at call time via the injected ModuleHost. | ||
| * | ||
| * Credential type declared by this module: | ||
| * - github_token : { token } → Bearer auth on api.github.com | ||
| * | ||
| * All handlers return the parsed JSON response as-is. Errors are never | ||
| * thrown — they are returned as `{error, code, status?, github_error?}`. | ||
| */ | ||
| import type { BuiltinHandler, CredentialTypeSchema, FunctionMetadata, ModuleHost, ModuleMetadata } from "@robinpath/core"; | ||
| export declare function configureGithub(h: ModuleHost): void; | ||
| export declare const GithubFunctions: Record<string, BuiltinHandler>; | ||
| export declare const GithubCredentialTypes: CredentialTypeSchema[]; | ||
| export declare const GithubFunctionMetadata: Record<string, FunctionMetadata>; | ||
| export declare const GithubModuleMetadata: ModuleMetadata; | ||
| //# sourceMappingURL=github.d.ts.map |
| {"version":3,"file":"github.d.ts","sourceRoot":"","sources":["../src/github.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,KAAK,EACV,cAAc,EACd,oBAAoB,EACpB,gBAAgB,EAChB,UAAU,EACV,cAAc,EAEf,MAAM,iBAAiB,CAAC;AAezB,wBAAgB,eAAe,CAAC,CAAC,EAAE,UAAU,GAAG,IAAI,CAEnD;AA47BD,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAiD1D,CAAC;AAIF,eAAO,MAAM,qBAAqB,EAAE,oBAAoB,EAkBvD,CAAC;AAuEF,eAAO,MAAM,sBAAsB,EAAE,MAAM,CAAC,MAAM,EAAE,gBAAgB,CA48CnE,CAAC;AAIF,eAAO,MAAM,oBAAoB,EAAE,cAqElC,CAAC"} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
| import type { ModuleAdapter } from "@robinpath/core"; | ||
| declare const GithubModule: ModuleAdapter; | ||
| export default GithubModule; | ||
| export { GithubModule }; | ||
| export { GithubFunctions, GithubFunctionMetadata, GithubModuleMetadata, GithubCredentialTypes, } from "./github.js"; | ||
| //# sourceMappingURL=index.d.ts.map |
| {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AASrD,QAAA,MAAM,YAAY,EAAE,aAQnB,CAAC;AAEF,eAAe,YAAY,CAAC;AAC5B,OAAO,EAAE,YAAY,EAAE,CAAC;AACxB,OAAO,EACL,eAAe,EACf,sBAAsB,EACtB,oBAAoB,EACpB,qBAAqB,GACtB,MAAM,aAAa,CAAC"} |
| import { GithubFunctions, GithubFunctionMetadata, GithubModuleMetadata, GithubCredentialTypes, configureGithub, } from "./github.js"; | ||
| const GithubModule = { | ||
| name: "github", | ||
| functions: GithubFunctions, | ||
| functionMetadata: GithubFunctionMetadata, | ||
| moduleMetadata: GithubModuleMetadata, | ||
| credentialTypes: GithubCredentialTypes, | ||
| configure: configureGithub, | ||
| global: false, | ||
| }; | ||
| export default GithubModule; | ||
| export { GithubModule }; | ||
| export { GithubFunctions, GithubFunctionMetadata, GithubModuleMetadata, GithubCredentialTypes, } from "./github.js"; | ||
| //# sourceMappingURL=index.js.map |
| {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,eAAe,EACf,sBAAsB,EACtB,oBAAoB,EACpB,qBAAqB,EACrB,eAAe,GAChB,MAAM,aAAa,CAAC;AAErB,MAAM,YAAY,GAAkB;IAClC,IAAI,EAAE,QAAQ;IACd,SAAS,EAAE,eAAe;IAC1B,gBAAgB,EAAE,sBAAsB;IACxC,cAAc,EAAE,oBAAoB;IACpC,eAAe,EAAE,qBAAqB;IACtC,SAAS,EAAE,eAAe;IAC1B,MAAM,EAAE,KAAK;CACd,CAAC;AAEF,eAAe,YAAY,CAAC;AAC5B,OAAO,EAAE,YAAY,EAAE,CAAC;AACxB,OAAO,EACL,eAAe,EACf,sBAAsB,EACtB,oBAAoB,EACpB,qBAAqB,GACtB,MAAM,aAAa,CAAC"} |
+22
-8
| { | ||
| "name": "@robinpath/github", | ||
| "version": "0.1.1", | ||
| "version": "0.3.0", | ||
| "publishConfig": { | ||
@@ -23,12 +23,20 @@ "access": "public" | ||
| "peerDependencies": { | ||
| "@robinpath/core": ">=0.20.0" | ||
| "@robinpath/core": ">=0.40.0" | ||
| }, | ||
| "devDependencies": { | ||
| "@robinpath/core": "^0.30.1", | ||
| "@robinpath/core": "^0.40.0", | ||
| "typescript": "^5.6.0" | ||
| }, | ||
| "description": "GitHub module for RobinPath.", | ||
| "description": "GitHub REST API v3 client — repositories, branches, commits, files, issues, pull requests, releases, labels, milestones, Actions workflows, and search. Uses the encrypted credential vault for personal access tokens (classic ghp_ or fine-grained github_pat_).", | ||
| "keywords": [ | ||
| "github", | ||
| "devops" | ||
| "devops", | ||
| "git", | ||
| "issues", | ||
| "pull-request", | ||
| "release", | ||
| "actions", | ||
| "repository", | ||
| "ci", | ||
| "cd" | ||
| ], | ||
@@ -38,7 +46,13 @@ "license": "MIT", | ||
| "category": "devops", | ||
| "type": "integration", | ||
| "auth": "bearer-token", | ||
| "type": "module", | ||
| "auth": "credential-vault", | ||
| "functionCount": 32, | ||
| "baseUrl": "https://api.github.com" | ||
| "baseUrl": "https://api.github.com", | ||
| "language": "nodejs", | ||
| "platforms": [ | ||
| "cloud", | ||
| "cli", | ||
| "desktop" | ||
| ] | ||
| } | ||
| } |
+1
-1
@@ -22,3 +22,3 @@ # @robinpath/github | ||
| ```bash | ||
| npm install @robinpath/github | ||
| robinpath add @robinpath/github | ||
| ``` | ||
@@ -25,0 +25,0 @@ |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Network access
Supply chain riskThis module accesses the network.
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Empty package
Supply chain riskPackage does not contain any code. It may be removed, is name squatting, or the result of a faulty package publish.
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
171252
3081.35%10
400%2409
Infinity%2
100%