@sanoma-ai/connector-github 0.4.0 → 0.4.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/connector.js +2 -11
- package/dist/connector.js.map +1 -1
- package/logo-dark.svg +1 -0
- package/logo.svg +1 -0
- package/package.json +14 -6
package/dist/connector.js
CHANGED
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import { tfConnector } from "@sanoma-ai/bridge/connector";
|
|
2
|
+
import { vendorInfo } from "@sanoma-ai/workflows";
|
|
2
3
|
import { github_branch_protection, github_repository, github_team_membership, provider } from "./resources.gen.js";
|
|
3
|
-
/**
|
|
4
|
-
* GitHub's mark (the Invertocat), from GitHub's Octicons (`mark-github`, MIT), in GitHub's
|
|
5
|
-
* near-black, and white on dark backgrounds.
|
|
6
|
-
*/
|
|
7
|
-
const mark = (fill) => `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="${fill}" d="M8 0c4.42 0 8 3.58 8 8a8.013 8.013 0 0 1-5.45 7.59c-.4.08-.55-.17-.55-.38 0-.27.01-1.13.01-2.2 0-.75-.25-1.23-.54-1.48 1.78-.2 3.65-.88 3.65-3.95 0-.88-.31-1.59-.82-2.15.08-.2.36-1.02-.08-2.12 0 0-.67-.22-2.2.82-.64-.18-1.32-.27-2-.27-.68 0-1.36.09-2 .27-1.53-1.03-2.2-.82-2.2-.82-.44 1.1-.16 1.92-.08 2.12-.51.56-.82 1.28-.82 2.15 0 3.06 1.86 3.75 3.64 3.95-.23.2-.44.55-.51 1.07-.46.21-1.61.55-2.33-.66-.15-.24-.6-.83-1.23-.82-.67.01-.27.38.01.53.34.19.73.9.82 1.13.16.45.68 1.31 2.69.94 0 .67.01 1.3.01 1.49 0 .21-.15.45-.55.38A7.995 7.995 0 0 1 0 8c0-4.42 3.58-8 8-8Z"/></svg>`;
|
|
8
4
|
/**
|
|
9
5
|
* GitHub, through the `integrations/github` OpenTofu provider: the generated resource types,
|
|
10
6
|
* what their schema does not say (how each is found), and who GitHub is. The connector, the
|
|
@@ -44,11 +40,6 @@ export const githubTf = tfConnector({
|
|
|
44
40
|
// "could not find" it (recorded: testdata/replies/…/github_branch_protection/provider-bridge_main).
|
|
45
41
|
missing: (e) => e.code === "not_found" ||
|
|
46
42
|
(e.code === "failed_precondition" && e.diagnostics.some((d) => d.summary.startsWith("could not find "))),
|
|
47
|
-
info:
|
|
48
|
-
title: "GitHub",
|
|
49
|
-
logo: { svg: mark("#1F2328"), dark: mark("#FFFFFF") },
|
|
50
|
-
package: "@sanoma-ai/connector-github",
|
|
51
|
-
homepage: "https://github.com/Sanoma-AI/sanoma/tree/main/connectors/github#readme",
|
|
52
|
-
},
|
|
43
|
+
info: vendorInfo(import.meta.url),
|
|
53
44
|
});
|
|
54
45
|
//# sourceMappingURL=connector.js.map
|
package/dist/connector.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connector.js","sourceRoot":"","sources":["../src/connector.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"connector.js","sourceRoot":"","sources":["../src/connector.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,wBAAwB,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAEnH;;;;GAIG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG,WAAW,CAAC;IAClC,MAAM,EAAE,QAAQ;IAChB,QAAQ;IACR,KAAK,EAAE;QACL,6FAA6F;QAC7F,mDAAmD;QACnD,UAAU,EAAE;YACV,EAAE,EAAE,iBAAiB;YACrB,KAAK,EAAE,YAAY;YACnB,QAAQ,EAAE,MAAM;YAChB,IAA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ox="0 0 16 16"><path fill="#FFFFFF" d="M8 0c4.42 0 8 3.58 8 8a8.013 8.013 0 0 1-5.45 7.59c-.4.08-.55-.17-.55-.38 0-.27.01-1.13.01-2.2 0-.75-.25-1.23-.54-1.48 1.78-.2 3.65-.88 3.65-3.95 0-.88-.31-1.59-.82-2.15.08-.2.36-1.02-.08-2.12 0 0-.67-.22-2.2.82-.64-.18-1.32-.27-2-.27-.68 0-1.36.09-2 .27-1.53-1.03-2.2-.82-2.2-.82-.44 1.1-.16 1.92-.08 2.12-.51.56-.82 1.28-.82 2.15 0 3.06 1.86 3.75 3.64 3.95-.23.2-.44.55-.51 1.07-.46.21-1.61.55-2.33-.66-.15-.24-.6-.83-1.23-.82-.67.01-.27.38.01.53.34.19.73.9.82 1.13.16.45.68 1.31 2.69.94 0 .67.01 1.3.01 1.49 0 .21-.15.45-.55.38A7.995 7.995 0 0 1 0 8c0-4.42 3.58-8 8-8Z"/></svg>
|
package/logo.svg
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="#1F2328" d="M8 0c4.42 0 8 3.58 8 8a8.013 8.013 0 0 1-5.45 7.59c-.4.08-.55-.17-.55-.38 0-.27.01-1.13.01-2.2 0-.75-.25-1.23-.54-1.48 1.78-.2 3.65-.88 3.65-3.95 0-.88-.31-1.59-.82-2.15.08-.2.36-1.02-.08-2.12 0 0-.67-.22-2.2.82-.64-.18-1.32-.27-2-.27-.68 0-1.36.09-2 .27-1.53-1.03-2.2-.82-2.2-.82-.44 1.1-.16 1.92-.08 2.12-.51.56-.82 1.28-.82 2.15 0 3.06 1.86 3.75 3.64 3.95-.23.2-.44.55-.51 1.07-.46.21-1.61.55-2.33-.66-.15-.24-.6-.83-1.23-.82-.67.01-.27.38.01.53.34.19.73.9.82 1.13.16.45.68 1.31 2.69.94 0 .67.01 1.3.01 1.49 0 .21-.15.45-.55.38A7.995 7.995 0 0 1 0 8c0-4.42 3.58-8 8-8Z"/></svg>
|
package/package.json
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sanoma-ai/connector-github",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.2",
|
|
4
4
|
"description": "GitHub resources (repositories, branch protection, team membership) for Sanoma, read through the OpenTofu provider",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"connector",
|
|
7
7
|
"github",
|
|
8
8
|
"opentofu",
|
|
9
9
|
"resources",
|
|
10
|
-
"sanoma"
|
|
10
|
+
"sanoma",
|
|
11
|
+
"sanoma-connector"
|
|
11
12
|
],
|
|
12
13
|
"homepage": "https://github.com/Sanoma-AI/sanoma/tree/main/connectors/github#readme",
|
|
13
14
|
"bugs": "https://github.com/Sanoma-AI/sanoma/issues",
|
|
@@ -19,6 +20,8 @@
|
|
|
19
20
|
},
|
|
20
21
|
"files": [
|
|
21
22
|
"dist",
|
|
23
|
+
"logo.svg",
|
|
24
|
+
"logo-dark.svg",
|
|
22
25
|
"README.md",
|
|
23
26
|
"LICENSE"
|
|
24
27
|
],
|
|
@@ -48,18 +51,23 @@
|
|
|
48
51
|
"access": "public"
|
|
49
52
|
},
|
|
50
53
|
"devDependencies": {
|
|
51
|
-
"@sanoma-ai/bridge": "0.4.
|
|
52
|
-
"@sanoma-ai/workflows": "0.4.
|
|
54
|
+
"@sanoma-ai/bridge": "0.4.2",
|
|
55
|
+
"@sanoma-ai/workflows": "0.4.2",
|
|
53
56
|
"zod": "^4.6.5"
|
|
54
57
|
},
|
|
55
58
|
"peerDependencies": {
|
|
56
|
-
"@sanoma-ai/bridge": "^0.4.
|
|
57
|
-
"@sanoma-ai/workflows": "^0.4.
|
|
59
|
+
"@sanoma-ai/bridge": "^0.4.2",
|
|
60
|
+
"@sanoma-ai/workflows": "^0.4.2",
|
|
58
61
|
"zod": "^4"
|
|
59
62
|
},
|
|
60
63
|
"engines": {
|
|
61
64
|
"node": ">=24"
|
|
62
65
|
},
|
|
66
|
+
"sanoma": {
|
|
67
|
+
"title": "GitHub",
|
|
68
|
+
"logo": "logo.svg",
|
|
69
|
+
"logoDark": "logo-dark.svg"
|
|
70
|
+
},
|
|
63
71
|
"scripts": {
|
|
64
72
|
"build": "tsc -p tsconfig.build.json",
|
|
65
73
|
"clean": "rm -rf dist",
|