@dotgithub/core 0.1.3 → 0.1.4
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/CHANGELOG.md +8 -0
- package/README.md +14 -0
- package/dist/config.d.ts +4 -5
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +37 -3
- package/dist/constructs/base.d.ts.map +1 -1
- package/dist/constructs/base.js +3 -1
- package/dist/constructs/workflow.d.ts.map +1 -1
- package/dist/constructs/workflow.js +3 -1
- package/dist/context.d.ts +1 -0
- package/dist/context.d.ts.map +1 -1
- package/dist/context.js +4 -1
- package/dist/plugin-generator.d.ts.map +1 -1
- package/dist/plugin-generator.js +6 -8
- package/dist/workflow-generator.d.ts.map +1 -1
- package/dist/workflow-generator.js +3 -1
- package/package.json +10 -1
- package/dist/types/events.d.ts +0 -378
- package/dist/types/events.d.ts.map +0 -1
- package/dist/types/events.js +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @dotgithub/core
|
|
2
2
|
|
|
3
|
+
## 0.1.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#19](https://github.com/azwebmaster/dotgithub/pull/19) [`89c96f3`](https://github.com/azwebmaster/dotgithub/commit/89c96f335f823f27bd19fd891764fdcc14acb5dd) Thanks [@danbot315](https://github.com/danbot315)! - Add package-level README files and npm metadata links (homepage/repository/bugs) so published packages point back to project documentation.
|
|
8
|
+
|
|
9
|
+
- [`b90f4b9`](https://github.com/azwebmaster/dotgithub/commit/b90f4b933845ad44a75da218e1829ba6c1868431) - Adjust release workflow to commit version changes only after successful npm publish.
|
|
10
|
+
|
|
3
11
|
## 0.1.3
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
package/README.md
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# @dotgithub/core
|
|
2
|
+
|
|
3
|
+
Core library for DotGitHub: type-safe constructs and workflow generation utilities.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @dotgithub/core
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Docs
|
|
12
|
+
|
|
13
|
+
- <https://github.com/azwebmaster/dotgithub#readme>
|
|
14
|
+
- <https://github.com/azwebmaster/dotgithub/tree/main/docs>
|
package/dist/config.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ConstructConfig, StackConfig } from './plugins/types.js';
|
|
2
|
-
import
|
|
2
|
+
import { DotGithubContext } from './context.js';
|
|
3
3
|
export interface DotGithubAction {
|
|
4
4
|
/** GitHub repository in org/repo format */
|
|
5
5
|
orgRepo: string;
|
|
@@ -7,6 +7,8 @@ export interface DotGithubAction {
|
|
|
7
7
|
ref: string;
|
|
8
8
|
/** Original version reference that was requested (e.g., v4, main) */
|
|
9
9
|
versionRef: string;
|
|
10
|
+
/** Legacy function name (backward-compat) */
|
|
11
|
+
functionName?: string;
|
|
10
12
|
/** Action name for type names and function names (overrides default from YAML) */
|
|
11
13
|
actionName?: string;
|
|
12
14
|
/** Output file path where the TypeScript was generated - required when generateCode is true */
|
|
@@ -39,9 +41,6 @@ export interface DotGithubConfig {
|
|
|
39
41
|
};
|
|
40
42
|
};
|
|
41
43
|
}
|
|
42
|
-
/**
|
|
43
|
-
* Sets a custom config file path to override the default discovery
|
|
44
|
-
*/
|
|
45
44
|
export declare function setConfigPath(configPath: string): void;
|
|
46
45
|
/**
|
|
47
46
|
* Creates a config file in the specified format
|
|
@@ -70,7 +69,7 @@ export declare function writeConfig(config: DotGithubConfig, customConfigPath?:
|
|
|
70
69
|
/**
|
|
71
70
|
* Adds an action to the config
|
|
72
71
|
*/
|
|
73
|
-
export declare function addActionToConfig(actionInfo: DotGithubAction,
|
|
72
|
+
export declare function addActionToConfig(actionInfo: DotGithubAction, contextOrRootDir: DotGithubContext | string): void;
|
|
74
73
|
/**
|
|
75
74
|
* Removes an action from the config
|
|
76
75
|
*/
|
package/dist/config.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACvE,OAAO,
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACvE,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAEhD,MAAM,WAAW,eAAe;IAC9B,2CAA2C;IAC3C,OAAO,EAAE,MAAM,CAAC;IAChB,mCAAmC;IACnC,GAAG,EAAE,MAAM,CAAC;IACZ,qEAAqE;IACrE,UAAU,EAAE,MAAM,CAAC;IACnB,6CAA6C;IAC7C,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,kFAAkF;IAClF,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,+FAA+F;IAC/F,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,uEAAuE;IACvE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,0EAA0E;IAC1E,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,eAAe;IAC9B,wCAAwC;IACxC,OAAO,EAAE,MAAM,CAAC;IAChB,2CAA2C;IAC3C,OAAO,EAAE,MAAM,CAAC;IAChB,2DAA2D;IAC3D,SAAS,EAAE,MAAM,CAAC;IAClB,4BAA4B;IAC5B,OAAO,EAAE,eAAe,EAAE,CAAC;IAC3B,+BAA+B;IAC/B,UAAU,CAAC,EAAE,eAAe,EAAE,CAAC;IAC/B,2BAA2B;IAC3B,MAAM,CAAC,EAAE,WAAW,EAAE,CAAC;IACvB,uCAAuC;IACvC,OAAO,CAAC,EAAE;QACR,qCAAqC;QACrC,WAAW,CAAC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CAAC,EAAE,MAAM,CAAA;CAAE,EAC7C,OAAO,EAAE,gBAAgB,GACxB,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CA8BxB;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,gBAAgB,GAAG;IAC9D,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IACnD,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;CAChD,CA0BA"}
|
package/dist/config.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as fs from 'fs';
|
|
2
2
|
import * as path from 'path';
|
|
3
3
|
import * as yaml from 'yaml';
|
|
4
|
+
import { DotGithubContext } from './context.js';
|
|
4
5
|
const CONFIG_VERSION = '1.0.0';
|
|
5
6
|
const DEFAULT_ROOT_DIR = 'src';
|
|
6
7
|
const DEFAULT_OUTPUT_DIR = 'src';
|
|
@@ -75,9 +76,11 @@ module.exports = ${JSON.stringify(config, null, 2)};
|
|
|
75
76
|
/**
|
|
76
77
|
* Sets a custom config file path to override the default discovery
|
|
77
78
|
*/
|
|
79
|
+
let customConfigPathOverride;
|
|
78
80
|
export function setConfigPath(configPath) {
|
|
79
|
-
|
|
80
|
-
|
|
81
|
+
customConfigPathOverride = configPath
|
|
82
|
+
? path.resolve(configPath)
|
|
83
|
+
: undefined;
|
|
81
84
|
}
|
|
82
85
|
/**
|
|
83
86
|
* Creates a config file in the specified format
|
|
@@ -114,6 +117,22 @@ export function getConfigPath() {
|
|
|
114
117
|
'dotgithub.yaml',
|
|
115
118
|
'dotgithub.yml',
|
|
116
119
|
];
|
|
120
|
+
if (customConfigPathOverride) {
|
|
121
|
+
const stat = fs.existsSync(customConfigPathOverride)
|
|
122
|
+
? fs.statSync(customConfigPathOverride)
|
|
123
|
+
: undefined;
|
|
124
|
+
if (stat?.isDirectory()) {
|
|
125
|
+
const githubDir = path.join(customConfigPathOverride, '.github');
|
|
126
|
+
for (const fileName of CONFIG_FILE_NAMES) {
|
|
127
|
+
const configPath = path.join(githubDir, fileName);
|
|
128
|
+
if (fs.existsSync(configPath)) {
|
|
129
|
+
return configPath;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
return path.join(githubDir, CONFIG_FILE_NAMES[0]);
|
|
133
|
+
}
|
|
134
|
+
return customConfigPathOverride;
|
|
135
|
+
}
|
|
117
136
|
let currentDir = process.cwd();
|
|
118
137
|
while (currentDir !== path.dirname(currentDir)) {
|
|
119
138
|
const githubDir = path.join(currentDir, '.github');
|
|
@@ -202,13 +221,28 @@ export function writeConfig(config, customConfigPath) {
|
|
|
202
221
|
/**
|
|
203
222
|
* Adds an action to the config
|
|
204
223
|
*/
|
|
205
|
-
export function addActionToConfig(actionInfo,
|
|
224
|
+
export function addActionToConfig(actionInfo, contextOrRootDir) {
|
|
225
|
+
const context = typeof contextOrRootDir === 'string'
|
|
226
|
+
? new DotGithubContext({
|
|
227
|
+
config: { ...readConfig(), rootDir: contextOrRootDir },
|
|
228
|
+
configPath: getConfigPath(),
|
|
229
|
+
})
|
|
230
|
+
: contextOrRootDir;
|
|
231
|
+
if (!context.config) {
|
|
232
|
+
context.config = createDefaultConfig();
|
|
233
|
+
}
|
|
234
|
+
if (!context.config.actions) {
|
|
235
|
+
context.config.actions = [];
|
|
236
|
+
}
|
|
206
237
|
// Check if action already exists (check orgRepo AND actionPath for uniqueness)
|
|
207
238
|
const existingIndex = context.config.actions.findIndex((action) => action.orgRepo === actionInfo.orgRepo &&
|
|
208
239
|
(action.actionPath || '') === (actionInfo.actionPath || ''));
|
|
209
240
|
const actionWithRelativePath = {
|
|
210
241
|
...actionInfo,
|
|
211
242
|
};
|
|
243
|
+
if (actionWithRelativePath.outputPath && path.isAbsolute(actionWithRelativePath.outputPath)) {
|
|
244
|
+
actionWithRelativePath.outputPath = context.relativePath(actionWithRelativePath.outputPath);
|
|
245
|
+
}
|
|
212
246
|
if (existingIndex >= 0) {
|
|
213
247
|
// Update existing action
|
|
214
248
|
context.config.actions[existingIndex] = actionWithRelativePath;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../src/constructs/base.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAC5E,OAAO,KAAK,EACV,iBAAiB,EACjB,kBAAkB,EAClB,SAAS,EACV,MAAM,oBAAoB,CAAC;AAG5B,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,IAAI,EAAE,aAAa,CAAC;CAC9B;AAED,qBAAa,aAAa;aAEN,IAAI,EAAE,UAAU;aAChB,KAAK,EAAE,UAAU,GAAG,SAAS;aAC7B,EAAE,EAAE,MAAM;gBAFV,IAAI,EAAE,UAAU,EAChB,KAAK,EAAE,UAAU,GAAG,SAAS,EAC7B,EAAE,EAAE,MAAM;IAG5B,IAAI,IAAI,IAAI,MAAM,CAKjB;CAGF;AAED,8BAAsB,SAAU,YAAW,UAAU;IACnD,SAAgB,IAAI,EAAE,aAAa,CAAC;gBAExB,KAAK,EAAE,UAAU,GAAG,SAAS,EAAE,EAAE,EAAE,MAAM;CAKtD;AAED,qBAAa,WAAY,SAAQ,SAAS;IACxC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAuB;IAClD,OAAO,CAAC,QAAQ,CAAC,UAAU,CAA0B;IACrD,OAAO,CAAC,QAAQ,CAAC,SAAS,CAA2B;IAG9C,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC7B,WAAW,CAAC,EAAE,GAAG,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,GAAG,CAAC;IACd,eAAe,CAAC,EAAE,GAAG,CAAC;gBAEjB,KAAK,CAAC,EAAE,UAAU,EAAE,EAAE,GA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,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO;CAOrC"}
|
package/dist/constructs/base.js
CHANGED
|
@@ -65,10 +65,11 @@ export class GitHubStack extends Construct {
|
|
|
65
65
|
synth() {
|
|
66
66
|
const files = {};
|
|
67
67
|
// Generate workflow files
|
|
68
|
+
const AUTOGENERATED_HEADER = '# This file is autogenerated by DotGitHub. Do not edit manually.\n';
|
|
68
69
|
for (const [workflowId, workflow] of Object.entries(this._workflows)) {
|
|
69
70
|
const filename = `workflows/${workflowId}.yml`;
|
|
70
71
|
const processedWorkflow = this._processWorkflowForYaml(workflow);
|
|
71
|
-
|
|
72
|
+
const yamlContent = yaml.stringify(processedWorkflow, {
|
|
72
73
|
indent: 2,
|
|
73
74
|
lineWidth: 0,
|
|
74
75
|
minContentWidth: 0,
|
|
@@ -76,6 +77,7 @@ export class GitHubStack extends Construct {
|
|
|
76
77
|
doubleQuotedAsJSON: false,
|
|
77
78
|
doubleQuotedMinMultiLineLength: 40,
|
|
78
79
|
});
|
|
80
|
+
files[filename] = AUTOGENERATED_HEADER + yamlContent;
|
|
79
81
|
}
|
|
80
82
|
// Generate other resource files
|
|
81
83
|
this._synthResourcesRecursive('', this._resources, files);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow.d.ts","sourceRoot":"","sources":["../../src/constructs/workflow.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAExC,OAAO,KAAK,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAEvE,qBAAa,iBAAkB,SAAQ,SAAS;IAC9C,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAiB;IAC3C,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAwC;gBAElD,KAAK,EAAE,WAAW,EAAE,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc;
|
|
1
|
+
{"version":3,"file":"workflow.d.ts","sourceRoot":"","sources":["../../src/constructs/workflow.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAExC,OAAO,KAAK,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAEvE,qBAAa,iBAAkB,SAAQ,SAAS;IAC9C,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAiB;IAC3C,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAwC;gBAElD,KAAK,EAAE,WAAW,EAAE,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc;IAUpE,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,YAAY,EAAE,YAAY,GAAG,YAAY;IAM5D,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,YAAY,GAAG,SAAS;IAI5C,IAAI,QAAQ,IAAI,cAAc,CAE7B;IAED,IAAI,IAAI,IAAI,UAAU,CAErB;CACF"}
|
|
@@ -6,7 +6,9 @@ export class WorkflowConstruct extends Construct {
|
|
|
6
6
|
constructor(scope, id, workflow) {
|
|
7
7
|
super(scope, id);
|
|
8
8
|
this._workflow = workflow;
|
|
9
|
-
scope.addWorkflow
|
|
9
|
+
if (typeof scope.addWorkflow === 'function') {
|
|
10
|
+
scope.addWorkflow(id, this._workflow);
|
|
11
|
+
}
|
|
10
12
|
}
|
|
11
13
|
addJob(id, jobConstruct) {
|
|
12
14
|
this._jobs.set(id, jobConstruct);
|
package/dist/context.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export declare class DotGithubContext {
|
|
|
8
8
|
config: DotGithubConfig;
|
|
9
9
|
configPath: string;
|
|
10
10
|
rootPath: string;
|
|
11
|
+
outputPath: string;
|
|
11
12
|
constructor({ config, configPath }: DotGithubContextOptions);
|
|
12
13
|
resolvePath(relativePath: string): string;
|
|
13
14
|
relativePath(absolutePath: string): string;
|
package/dist/context.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../src/context.ts"],"names":[],"mappings":"AACA,OAAO,EAAc,KAAK,eAAe,EAAE,MAAM,aAAa,CAAC;AAE/D,MAAM,MAAM,uBAAuB,GAAG;IACpC,MAAM,EAAE,eAAe,CAAC;IACxB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,qBAAa,gBAAgB;IAC3B,kCAAkC;IAClC,MAAM,EAAE,eAAe,CAAC;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../src/context.ts"],"names":[],"mappings":"AACA,OAAO,EAAc,KAAK,eAAe,EAAE,MAAM,aAAa,CAAC;AAE/D,MAAM,MAAM,uBAAuB,GAAG;IACpC,MAAM,EAAE,eAAe,CAAC;IACxB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,qBAAa,gBAAgB;IAC3B,kCAAkC;IAClC,MAAM,EAAE,eAAe,CAAC;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;gBAEP,EAAE,MAAM,EAAE,UAAU,EAAE,EAAE,uBAAuB;IAQ3D,WAAW,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM;IAIzC,YAAY,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM;IAI1C,MAAM,CAAC,UAAU,CAAC,UAAU,EAAE,MAAM,GAAG,gBAAgB;CAKxD"}
|
package/dist/context.js
CHANGED
|
@@ -5,10 +5,13 @@ export class DotGithubContext {
|
|
|
5
5
|
config;
|
|
6
6
|
configPath;
|
|
7
7
|
rootPath;
|
|
8
|
+
outputPath;
|
|
8
9
|
constructor({ config, configPath }) {
|
|
9
10
|
this.config = config;
|
|
10
11
|
this.configPath = configPath;
|
|
11
|
-
|
|
12
|
+
const rootDir = this.config.rootDir ?? this.config.outputDir ?? 'src';
|
|
13
|
+
this.rootPath = path.join(path.dirname(configPath), rootDir);
|
|
14
|
+
this.outputPath = this.rootPath;
|
|
12
15
|
}
|
|
13
16
|
resolvePath(relativePath) {
|
|
14
17
|
return path.resolve(this.rootPath, relativePath);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin-generator.d.ts","sourceRoot":"","sources":["../src/plugin-generator.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"plugin-generator.d.ts","sourceRoot":"","sources":["../src/plugin-generator.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAyErD,MAAM,WAAW,uCAAuC;IACtD,aAAa,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,OAAO,EAAE,gBAAgB,CAAC;IAC1B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,sCAAsC;IACrD,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,gBAAgB,EAAE,MAAM,CAAC;IACzB,cAAc,EAAE,sBAAsB,EAAE,CAAC;CAC1C;AAED,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,GAAG,UAAU,GAAG,UAAU,CAAC;IACvC,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,+BAA+B;IAC9C,aAAa,EAAE,MAAM,CAAC;IACtB,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,gBAAgB,CAAC;IAC1B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,8BAA8B;IAC7C,gBAAgB,EAAE,MAAM,CAAC;IACzB,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,cAAc,EAAE,sBAAsB,EAAE,CAAC;CAC1C;AAED;;;GAGG;AACH,wBAAsB,wBAAwB,CAC5C,OAAO,EAAE,+BAA+B,GACvC,OAAO,CAAC,8BAA8B,CAAC,CA+IzC;AAED;;GAEG;AACH,wBAAsB,gCAAgC,CACpD,OAAO,EAAE,uCAAuC,GAC/C,OAAO,CAAC,sCAAsC,CAAC,CA0NjD"}
|
package/dist/plugin-generator.js
CHANGED
|
@@ -6,6 +6,7 @@ import { cloneRepo } from './git.js';
|
|
|
6
6
|
import { getDefaultBranch } from './github.js';
|
|
7
7
|
import { Project, SourceFile, ClassDeclaration, MethodDeclaration, PropertyDeclaration, } from 'ts-morph';
|
|
8
8
|
import { generateActionFiles } from './actions-manager.js';
|
|
9
|
+
import { generateFunctionName } from './utils.js';
|
|
9
10
|
/**
|
|
10
11
|
* Creates construct content from .github files in a directory
|
|
11
12
|
* @throws {Error} When path validation or file processing fails
|
|
@@ -64,7 +65,7 @@ export async function createConstructFromFiles(options) {
|
|
|
64
65
|
}
|
|
65
66
|
}
|
|
66
67
|
// Check if there's a local dotgithub.json config in the source directory
|
|
67
|
-
let configToUse = context.config;
|
|
68
|
+
let configToUse = context.config || {};
|
|
68
69
|
const localConfigPath = path.join(githubFilesPath, 'dotgithub.json');
|
|
69
70
|
if (fs.existsSync(localConfigPath)) {
|
|
70
71
|
try {
|
|
@@ -80,13 +81,10 @@ export async function createConstructFromFiles(options) {
|
|
|
80
81
|
// Generate construct content (now with updated config that includes auto-added actions)
|
|
81
82
|
// Filter actions to only include those with functionName for code generation
|
|
82
83
|
const configForConstruct = {
|
|
83
|
-
actions: configToUse.actions
|
|
84
|
+
actions: (configToUse.actions || [])
|
|
84
85
|
.filter((action) => action.generateCode !== false && action.outputPath)
|
|
85
86
|
.map((action) => {
|
|
86
|
-
const
|
|
87
|
-
const functionName = action.actionName
|
|
88
|
-
? generateFunctionName(action.actionName)
|
|
89
|
-
: action.orgRepo;
|
|
87
|
+
const functionName = generateFunctionName(action.actionName || action.orgRepo);
|
|
90
88
|
return {
|
|
91
89
|
orgRepo: action.orgRepo,
|
|
92
90
|
ref: action.ref,
|
|
@@ -127,13 +125,13 @@ export async function generateConstructFromGitHubFiles(options) {
|
|
|
127
125
|
const { content, filename } = await downloadGitHubFile(source);
|
|
128
126
|
// Filter actions to only include those with outputPath for code generation
|
|
129
127
|
const configForConstruct = {
|
|
130
|
-
actions: context.config.actions
|
|
128
|
+
actions: (context.config.actions || [])
|
|
131
129
|
.filter((action) => action.generateCode !== false && action.outputPath)
|
|
132
130
|
.map((action) => {
|
|
133
131
|
const { generateFunctionName } = require('./utils');
|
|
134
132
|
const functionName = action.actionName
|
|
135
133
|
? generateFunctionName(action.actionName)
|
|
136
|
-
: action.orgRepo;
|
|
134
|
+
: generateFunctionName(action.actionName || action.orgRepo);
|
|
137
135
|
return {
|
|
138
136
|
orgRepo: action.orgRepo,
|
|
139
137
|
ref: action.ref,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow-generator.d.ts","sourceRoot":"","sources":["../src/workflow-generator.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,cAAc,EACd,SAAS,EAMV,MAAM,qBAAqB,CAAC;AAE7B,MAAM,WAAW,yBAAyB;IACxC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,wBAAgB,oBAAoB,CAClC,QAAQ,EAAE,cAAc,EACxB,OAAO,GAAE,yBAA8B,GACtC,MAAM,
|
|
1
|
+
{"version":3,"file":"workflow-generator.d.ts","sourceRoot":"","sources":["../src/workflow-generator.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,cAAc,EACd,SAAS,EAMV,MAAM,qBAAqB,CAAC;AAE7B,MAAM,WAAW,yBAAyB;IACxC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,wBAAgB,oBAAoB,CAClC,QAAQ,EAAE,cAAc,EACxB,OAAO,GAAE,yBAA8B,GACtC,MAAM,CAeR;AA4LD,wBAAgB,cAAc,CAC5B,MAAM,EAAE,OAAO,CAAC,cAAc,CAAC,GAC9B,cAAc,CAchB;AAED,wBAAgB,SAAS,CAAC,MAAM,EAAE,OAAO,CAAC,SAAS,CAAC,GAAG,SAAS,CAI/D"}
|
|
@@ -9,7 +9,9 @@ export function generateWorkflowYaml(workflow, options = {}) {
|
|
|
9
9
|
doubleQuotedMinMultiLineLength: 40,
|
|
10
10
|
};
|
|
11
11
|
const processedWorkflow = processWorkflowForYaml(workflow);
|
|
12
|
-
|
|
12
|
+
const yamlContent = yaml.stringify(processedWorkflow, yamlOptions);
|
|
13
|
+
const AUTOGENERATED_HEADER = '# This file is autogenerated by DotGitHub. Do not edit manually.\n';
|
|
14
|
+
return AUTOGENERATED_HEADER + yamlContent;
|
|
13
15
|
}
|
|
14
16
|
function processWorkflowForYaml(workflow) {
|
|
15
17
|
// Create ordered workflow object to control YAML property order
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dotgithub/core",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Core package for @dotgithub monorepo.",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -33,5 +33,14 @@
|
|
|
33
33
|
"prettier"
|
|
34
34
|
]
|
|
35
35
|
}
|
|
36
|
+
},
|
|
37
|
+
"homepage": "https://github.com/azwebmaster/dotgithub#readme",
|
|
38
|
+
"repository": {
|
|
39
|
+
"type": "git",
|
|
40
|
+
"url": "https://github.com/azwebmaster/dotgithub.git",
|
|
41
|
+
"directory": "packages/core"
|
|
42
|
+
},
|
|
43
|
+
"bugs": {
|
|
44
|
+
"url": "https://github.com/azwebmaster/dotgithub/issues"
|
|
36
45
|
}
|
|
37
46
|
}
|
package/dist/types/events.d.ts
DELETED
|
@@ -1,378 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Configuration for push event triggers.
|
|
3
|
-
* Defines which branches, tags, and file paths should trigger the workflow.
|
|
4
|
-
*/
|
|
5
|
-
export type PushWorkflowEvent = {
|
|
6
|
-
/** Branches that will trigger the workflow */
|
|
7
|
-
branches?: string[];
|
|
8
|
-
/** Branches that will NOT trigger the workflow */
|
|
9
|
-
"branches-ignore"?: string[];
|
|
10
|
-
/** Tags that will trigger the workflow */
|
|
11
|
-
tags?: string[];
|
|
12
|
-
/** Tags that will NOT trigger the workflow */
|
|
13
|
-
"tags-ignore"?: string[];
|
|
14
|
-
/** File paths that will trigger the workflow */
|
|
15
|
-
paths?: string[];
|
|
16
|
-
/** File paths that will NOT trigger the workflow */
|
|
17
|
-
"paths-ignore"?: string[];
|
|
18
|
-
};
|
|
19
|
-
/**
|
|
20
|
-
* Configuration for all possible GitHub workflow events.
|
|
21
|
-
* Each property corresponds to a different event type that can trigger workflows.
|
|
22
|
-
* Set to null to disable the event, or provide configuration object to enable with filters.
|
|
23
|
-
*/
|
|
24
|
-
export type GitHubWorkflowEvent = {
|
|
25
|
-
/** Branch protection rule events (created, edited, deleted) */
|
|
26
|
-
branch_protection_rule?: BranchProtectionRuleWorkflowEvent | null;
|
|
27
|
-
/** Check run events (created, rerequested, completed, requested_action) */
|
|
28
|
-
check_run?: CheckRunWorkflowEvent | null;
|
|
29
|
-
/** Check suite events (completed) */
|
|
30
|
-
check_suite?: CheckSuiteWorkflowEvent | null;
|
|
31
|
-
/** Repository branch/tag creation events */
|
|
32
|
-
create?: undefined | null;
|
|
33
|
-
/** Repository branch/tag deletion events */
|
|
34
|
-
delete?: undefined | null;
|
|
35
|
-
/** Deployment events */
|
|
36
|
-
deployment?: undefined | null;
|
|
37
|
-
/** Deployment status events */
|
|
38
|
-
deployment_status?: undefined | null;
|
|
39
|
-
/** Discussion events (created, edited, deleted, etc.) */
|
|
40
|
-
discussion?: DiscussionWorkflowEvent | null;
|
|
41
|
-
/** Discussion comment events (created, edited, deleted) */
|
|
42
|
-
discussion_comment?: DiscussionCommentWorkflowEvent | null;
|
|
43
|
-
/** Repository fork events */
|
|
44
|
-
fork?: undefined | null;
|
|
45
|
-
/** Wiki page events */
|
|
46
|
-
gollum?: undefined | null;
|
|
47
|
-
/** Issue comment events (created, edited, deleted) */
|
|
48
|
-
issue_comment?: IssueCommentWorkflowEvent | null;
|
|
49
|
-
/** Issue events (opened, edited, closed, etc.) */
|
|
50
|
-
issues?: IssuesWorkflowEvent | null;
|
|
51
|
-
/** Label events (created, edited, deleted) */
|
|
52
|
-
label?: LabelWorkflowEvent | null;
|
|
53
|
-
/** Merge group events (checks_requested) */
|
|
54
|
-
merge_group?: MergeGroupWorkflowEvent | null;
|
|
55
|
-
/** Milestone events (created, closed, opened, etc.) */
|
|
56
|
-
milestone?: MilestoneWorkflowEvent | null;
|
|
57
|
-
/** GitHub Pages build events */
|
|
58
|
-
page_build?: undefined | null;
|
|
59
|
-
/** Repository made public events */
|
|
60
|
-
public?: undefined | null;
|
|
61
|
-
/** Pull request events (opened, closed, synchronized, etc.) */
|
|
62
|
-
pull_request?: PullRequestWorkflowEvent | null;
|
|
63
|
-
/** Pull request review events (submitted, edited, dismissed) */
|
|
64
|
-
pull_request_review?: PullRequestReviewWorkflowEvent | null;
|
|
65
|
-
/** Pull request review comment events (created, edited, deleted) */
|
|
66
|
-
pull_request_review_comment?: PullRequestReviewCommentWorkflowEvent | null;
|
|
67
|
-
/** Pull request target events (same as pull_request but runs in base branch context) */
|
|
68
|
-
pull_request_target?: PullRequestWorkflowEvent | null;
|
|
69
|
-
/** Push events with branch/tag/path filters */
|
|
70
|
-
push?: PushWorkflowEvent | null;
|
|
71
|
-
/** Package registry events (published, updated) */
|
|
72
|
-
registry_package?: RegistryPackageWorkflowEvent | null;
|
|
73
|
-
/** Release events (published, created, edited, etc.) */
|
|
74
|
-
release?: ReleaseWorkflowEvent | null;
|
|
75
|
-
/** Repository dispatch events (custom events) */
|
|
76
|
-
repository_dispatch?: RepositoryDispatchWorkflowEvent | null;
|
|
77
|
-
/** Scheduled events using cron syntax */
|
|
78
|
-
schedule?: ScheduleWorkflowEvent[] | null;
|
|
79
|
-
/** Commit status events */
|
|
80
|
-
status?: undefined | null;
|
|
81
|
-
/** Repository watch/star events (started) */
|
|
82
|
-
watch?: WatchWorkflowEvent | null;
|
|
83
|
-
/** Manual workflow call events */
|
|
84
|
-
workflow_call?: undefined | null;
|
|
85
|
-
/** Manual workflow dispatch events */
|
|
86
|
-
workflow_dispatch?: WorkflowDispatchWorkflowEvent | null;
|
|
87
|
-
/** Workflow run events (completed, requested, in_progress) */
|
|
88
|
-
workflow_run?: WorkflowRunWorkflowEvent | null;
|
|
89
|
-
};
|
|
90
|
-
/**
|
|
91
|
-
* String literal union of all supported GitHub workflow event names.
|
|
92
|
-
* These correspond to the events that can trigger GitHub Actions workflows.
|
|
93
|
-
*/
|
|
94
|
-
export type GitHubWorkflowEventName = "branch_protection_rule" | "check_run" | "check_suite" | "create" | "delete" | "deployment" | "deployment_status" | "discussion" | "discussion_comment" | "fork" | "gollum" | "issue_comment" | "issues" | "label" | "merge_group" | "milestone" | "page_build" | "public" | "pull_request" | "pull_request_review" | "pull_request_review_comment" | "pull_request_target" | "push" | "registry_package" | "release" | "repository_dispatch" | "schedule" | "status" | "watch" | "workflow_call" | "workflow_dispatch" | "workflow_run";
|
|
95
|
-
/**
|
|
96
|
-
* Activity types for branch protection rule events.
|
|
97
|
-
* Defines what actions on branch protection rules will trigger the workflow.
|
|
98
|
-
*/
|
|
99
|
-
export type BranchProtectionRuleActivityType = "created" | "edited" | "deleted";
|
|
100
|
-
/**
|
|
101
|
-
* Configuration for branch protection rule event triggers.
|
|
102
|
-
* Specifies which branch protection rule activities should trigger the workflow.
|
|
103
|
-
*/
|
|
104
|
-
export type BranchProtectionRuleWorkflowEvent = {
|
|
105
|
-
/** Types of branch protection rule activities to listen for */
|
|
106
|
-
types: BranchProtectionRuleActivityType[];
|
|
107
|
-
};
|
|
108
|
-
/**
|
|
109
|
-
* Activity types for check run events.
|
|
110
|
-
* Defines what actions on check runs will trigger the workflow.
|
|
111
|
-
*/
|
|
112
|
-
export type CheckRunActivityType = "created" | "rerequested" | "completed" | "requested_action";
|
|
113
|
-
/**
|
|
114
|
-
* Configuration for check run event triggers.
|
|
115
|
-
* Specifies which check run activities should trigger the workflow.
|
|
116
|
-
*/
|
|
117
|
-
export type CheckRunWorkflowEvent = {
|
|
118
|
-
/** Types of check run activities to listen for */
|
|
119
|
-
types: CheckRunActivityType[];
|
|
120
|
-
};
|
|
121
|
-
/**
|
|
122
|
-
* Activity types for check suite events.
|
|
123
|
-
* Currently only supports "completed" events.
|
|
124
|
-
*/
|
|
125
|
-
export type CheckSuiteActivityType = "completed";
|
|
126
|
-
/**
|
|
127
|
-
* Configuration for check suite event triggers.
|
|
128
|
-
* Specifies which check suite activities should trigger the workflow.
|
|
129
|
-
*/
|
|
130
|
-
export type CheckSuiteWorkflowEvent = {
|
|
131
|
-
/** Types of check suite activities to listen for */
|
|
132
|
-
types: CheckSuiteActivityType[];
|
|
133
|
-
};
|
|
134
|
-
/**
|
|
135
|
-
* Activity types for discussion events.
|
|
136
|
-
* Defines what actions on discussions will trigger the workflow.
|
|
137
|
-
*/
|
|
138
|
-
export type DiscussionActivityType = "created" | "edited" | "deleted" | "transferred" | "pinned" | "unpinned" | "labeled" | "unlabeled" | "locked" | "unlocked" | "category_changed" | "answered" | "unanswered";
|
|
139
|
-
/**
|
|
140
|
-
* Configuration for discussion event triggers.
|
|
141
|
-
* Specifies which discussion activities should trigger the workflow.
|
|
142
|
-
*/
|
|
143
|
-
export type DiscussionWorkflowEvent = {
|
|
144
|
-
/** Types of discussion activities to listen for */
|
|
145
|
-
types: DiscussionActivityType[];
|
|
146
|
-
};
|
|
147
|
-
/**
|
|
148
|
-
* Activity types for discussion comment events.
|
|
149
|
-
* Defines what actions on discussion comments will trigger the workflow.
|
|
150
|
-
*/
|
|
151
|
-
export type DiscussionCommentActivityType = "created" | "edited" | "deleted";
|
|
152
|
-
/**
|
|
153
|
-
* Configuration for discussion comment event triggers.
|
|
154
|
-
* Specifies which discussion comment activities should trigger the workflow.
|
|
155
|
-
*/
|
|
156
|
-
export type DiscussionCommentWorkflowEvent = {
|
|
157
|
-
/** Types of discussion comment activities to listen for */
|
|
158
|
-
types: DiscussionCommentActivityType[];
|
|
159
|
-
};
|
|
160
|
-
/**
|
|
161
|
-
* Activity types for issue comment events.
|
|
162
|
-
* Defines what actions on issue comments will trigger the workflow.
|
|
163
|
-
*/
|
|
164
|
-
export type IssueCommentActivityType = "created" | "edited" | "deleted";
|
|
165
|
-
/**
|
|
166
|
-
* Configuration for issue comment event triggers.
|
|
167
|
-
* Specifies which issue comment activities should trigger the workflow.
|
|
168
|
-
*/
|
|
169
|
-
export type IssueCommentWorkflowEvent = {
|
|
170
|
-
/** Types of issue comment activities to listen for */
|
|
171
|
-
types: IssueCommentActivityType[];
|
|
172
|
-
};
|
|
173
|
-
/**
|
|
174
|
-
* Activity types for issue events.
|
|
175
|
-
* Defines what actions on issues will trigger the workflow.
|
|
176
|
-
*/
|
|
177
|
-
export type IssuesActivityType = "opened" | "edited" | "deleted" | "transferred" | "pinned" | "unpinned" | "closed" | "reopened" | "assigned" | "unassigned" | "labeled" | "unlabeled" | "locked" | "unlocked" | "milestoned" | "demilestoned" | "typed" | "untyped";
|
|
178
|
-
/**
|
|
179
|
-
* Configuration for issue event triggers.
|
|
180
|
-
* Specifies which issue activities should trigger the workflow.
|
|
181
|
-
*/
|
|
182
|
-
export type IssuesWorkflowEvent = {
|
|
183
|
-
/** Types of issue activities to listen for */
|
|
184
|
-
types: IssuesActivityType[];
|
|
185
|
-
};
|
|
186
|
-
/**
|
|
187
|
-
* Activity types for label events.
|
|
188
|
-
* Defines what actions on labels will trigger the workflow.
|
|
189
|
-
*/
|
|
190
|
-
export type LabelActivityType = "created" | "edited" | "deleted";
|
|
191
|
-
/**
|
|
192
|
-
* Configuration for label event triggers.
|
|
193
|
-
* Specifies which label activities should trigger the workflow.
|
|
194
|
-
*/
|
|
195
|
-
export type LabelWorkflowEvent = {
|
|
196
|
-
/** Types of label activities to listen for */
|
|
197
|
-
types: LabelActivityType[];
|
|
198
|
-
};
|
|
199
|
-
/**
|
|
200
|
-
* Activity types for merge group events.
|
|
201
|
-
* Currently only supports "checks_requested" events.
|
|
202
|
-
*/
|
|
203
|
-
export type MergeGroupActivityType = "checks_requested";
|
|
204
|
-
/**
|
|
205
|
-
* Configuration for merge group event triggers.
|
|
206
|
-
* Specifies which merge group activities should trigger the workflow.
|
|
207
|
-
*/
|
|
208
|
-
export type MergeGroupWorkflowEvent = {
|
|
209
|
-
/** Types of merge group activities to listen for */
|
|
210
|
-
types: MergeGroupActivityType[];
|
|
211
|
-
};
|
|
212
|
-
/**
|
|
213
|
-
* Activity types for milestone events.
|
|
214
|
-
* Defines what actions on milestones will trigger the workflow.
|
|
215
|
-
*/
|
|
216
|
-
export type MilestoneActivityType = "created" | "closed" | "opened" | "edited" | "deleted";
|
|
217
|
-
/**
|
|
218
|
-
* Configuration for milestone event triggers.
|
|
219
|
-
* Specifies which milestone activities should trigger the workflow.
|
|
220
|
-
*/
|
|
221
|
-
export type MilestoneWorkflowEvent = {
|
|
222
|
-
/** Types of milestone activities to listen for */
|
|
223
|
-
types: MilestoneActivityType[];
|
|
224
|
-
};
|
|
225
|
-
/**
|
|
226
|
-
* Activity types for pull request events.
|
|
227
|
-
* Defines what actions on pull requests will trigger the workflow.
|
|
228
|
-
*/
|
|
229
|
-
export type PullRequestActivityType = "assigned" | "unassigned" | "labeled" | "unlabeled" | "opened" | "edited" | "closed" | "reopened" | "synchronize" | "converted_to_draft" | "locked" | "unlocked" | "enqueued" | "dequeued" | "milestoned" | "demilestoned" | "ready_for_review" | "review_requested" | "review_request_removed" | "auto_merge_enabled" | "auto_merge_disabled";
|
|
230
|
-
/**
|
|
231
|
-
* Configuration for pull request event triggers.
|
|
232
|
-
* Defines which pull request activities and filters should trigger the workflow.
|
|
233
|
-
*/
|
|
234
|
-
export type PullRequestWorkflowEvent = {
|
|
235
|
-
/** Types of pull request activities to listen for */
|
|
236
|
-
types?: PullRequestActivityType[];
|
|
237
|
-
/** Branches that will trigger the workflow */
|
|
238
|
-
branches?: string[];
|
|
239
|
-
/** Branches that will NOT trigger the workflow */
|
|
240
|
-
"branches-ignore"?: string[];
|
|
241
|
-
/** File paths that will trigger the workflow */
|
|
242
|
-
paths?: string[];
|
|
243
|
-
/** File paths that will NOT trigger the workflow */
|
|
244
|
-
"paths-ignore"?: string[];
|
|
245
|
-
};
|
|
246
|
-
/**
|
|
247
|
-
* Activity types for pull request review events.
|
|
248
|
-
* Defines what actions on pull request reviews will trigger the workflow.
|
|
249
|
-
*/
|
|
250
|
-
export type PullRequestReviewActivityType = "submitted" | "edited" | "dismissed";
|
|
251
|
-
/**
|
|
252
|
-
* Configuration for pull request review event triggers.
|
|
253
|
-
* Specifies which pull request review activities should trigger the workflow.
|
|
254
|
-
*/
|
|
255
|
-
export type PullRequestReviewWorkflowEvent = {
|
|
256
|
-
/** Types of pull request review activities to listen for */
|
|
257
|
-
types: PullRequestReviewActivityType[];
|
|
258
|
-
};
|
|
259
|
-
/**
|
|
260
|
-
* Activity types for pull request review comment events.
|
|
261
|
-
* Defines what actions on pull request review comments will trigger the workflow.
|
|
262
|
-
*/
|
|
263
|
-
export type PullRequestReviewCommentActivityType = "created" | "edited" | "deleted";
|
|
264
|
-
/**
|
|
265
|
-
* Configuration for pull request review comment event triggers.
|
|
266
|
-
* Specifies which pull request review comment activities should trigger the workflow.
|
|
267
|
-
*/
|
|
268
|
-
export type PullRequestReviewCommentWorkflowEvent = {
|
|
269
|
-
/** Types of pull request review comment activities to listen for */
|
|
270
|
-
types: PullRequestReviewCommentActivityType[];
|
|
271
|
-
};
|
|
272
|
-
/**
|
|
273
|
-
* Activity types for registry package events.
|
|
274
|
-
* Defines what actions on packages will trigger the workflow.
|
|
275
|
-
*/
|
|
276
|
-
export type RegistryPackageActivityType = "published" | "updated";
|
|
277
|
-
/**
|
|
278
|
-
* Configuration for registry package event triggers.
|
|
279
|
-
* Specifies which package activities should trigger the workflow.
|
|
280
|
-
*/
|
|
281
|
-
export type RegistryPackageWorkflowEvent = {
|
|
282
|
-
/** Types of package activities to listen for */
|
|
283
|
-
types: RegistryPackageActivityType[];
|
|
284
|
-
};
|
|
285
|
-
/**
|
|
286
|
-
* Activity types for release events.
|
|
287
|
-
* Defines what actions on releases will trigger the workflow.
|
|
288
|
-
*/
|
|
289
|
-
export type ReleaseActivityType = "published" | "unpublished" | "created" | "edited" | "deleted" | "prereleased" | "released";
|
|
290
|
-
/**
|
|
291
|
-
* Configuration for release event triggers.
|
|
292
|
-
* Specifies which release activities should trigger the workflow.
|
|
293
|
-
*/
|
|
294
|
-
export type ReleaseWorkflowEvent = {
|
|
295
|
-
/** Types of release activities to listen for */
|
|
296
|
-
types: ReleaseActivityType[];
|
|
297
|
-
};
|
|
298
|
-
/**
|
|
299
|
-
* Activity types for watch events.
|
|
300
|
-
* Currently only supports "started" (when someone stars the repository).
|
|
301
|
-
*/
|
|
302
|
-
export type WatchActivityType = "started";
|
|
303
|
-
/**
|
|
304
|
-
* Configuration for watch event triggers.
|
|
305
|
-
* Specifies which watch activities should trigger the workflow.
|
|
306
|
-
*/
|
|
307
|
-
export type WatchWorkflowEvent = {
|
|
308
|
-
/** Types of watch activities to listen for */
|
|
309
|
-
types: WatchActivityType[];
|
|
310
|
-
};
|
|
311
|
-
/**
|
|
312
|
-
* Activity types for workflow run events.
|
|
313
|
-
* Defines what workflow run states will trigger the workflow.
|
|
314
|
-
*/
|
|
315
|
-
export type WorkflowRunActivityType = "completed" | "requested" | "in_progress";
|
|
316
|
-
/**
|
|
317
|
-
* Configuration for workflow run event triggers.
|
|
318
|
-
* Specifies which workflow run activities and filters should trigger the workflow.
|
|
319
|
-
*/
|
|
320
|
-
export type WorkflowRunWorkflowEvent = {
|
|
321
|
-
/** Names of workflows to monitor */
|
|
322
|
-
workflows: string[];
|
|
323
|
-
/** Types of workflow run activities to listen for */
|
|
324
|
-
types?: WorkflowRunActivityType[];
|
|
325
|
-
/** Branches that will trigger the workflow */
|
|
326
|
-
branches?: string[];
|
|
327
|
-
/** Branches that will NOT trigger the workflow */
|
|
328
|
-
"branches-ignore"?: string[];
|
|
329
|
-
};
|
|
330
|
-
/**
|
|
331
|
-
* Configuration for workflow dispatch event triggers.
|
|
332
|
-
* Allows manual triggering of workflows with custom inputs.
|
|
333
|
-
*/
|
|
334
|
-
export type WorkflowDispatchWorkflowEvent = {
|
|
335
|
-
/** Input parameters that can be provided when manually triggering the workflow */
|
|
336
|
-
inputs?: {
|
|
337
|
-
[key: string]: WorkflowDispatchInput;
|
|
338
|
-
};
|
|
339
|
-
};
|
|
340
|
-
/**
|
|
341
|
-
* Configuration for a workflow dispatch input parameter.
|
|
342
|
-
* Defines how users can provide data when manually triggering workflows.
|
|
343
|
-
*/
|
|
344
|
-
export type WorkflowDispatchInput = {
|
|
345
|
-
/** Description of the input parameter */
|
|
346
|
-
description?: string;
|
|
347
|
-
/** Whether the input is required */
|
|
348
|
-
required?: boolean;
|
|
349
|
-
/** Default value if not provided */
|
|
350
|
-
default?: string;
|
|
351
|
-
/** Type of the input parameter */
|
|
352
|
-
type?: "boolean" | "choice" | "environment" | "string";
|
|
353
|
-
/** Available options when type is "choice" */
|
|
354
|
-
options?: string[];
|
|
355
|
-
};
|
|
356
|
-
/**
|
|
357
|
-
* Configuration for scheduled workflow triggers.
|
|
358
|
-
* Uses cron syntax to define when the workflow should run automatically.
|
|
359
|
-
*/
|
|
360
|
-
export type ScheduleWorkflowEvent = {
|
|
361
|
-
/** Cron expression defining when the workflow should run */
|
|
362
|
-
cron: string;
|
|
363
|
-
};
|
|
364
|
-
/**
|
|
365
|
-
* Configuration for repository dispatch event triggers.
|
|
366
|
-
* Allows triggering workflows via custom events sent to the repository.
|
|
367
|
-
*/
|
|
368
|
-
export type RepositoryDispatchWorkflowEvent = {
|
|
369
|
-
/** Types of custom events to listen for */
|
|
370
|
-
types?: string[];
|
|
371
|
-
/** Event type identifier for the custom event */
|
|
372
|
-
event_type?: string;
|
|
373
|
-
/** Additional data payload for the custom event */
|
|
374
|
-
client_payload?: {
|
|
375
|
-
[key: string]: any;
|
|
376
|
-
};
|
|
377
|
-
};
|
|
378
|
-
//# sourceMappingURL=events.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/types/events.ts"],"names":[],"mappings":"AACA;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,8CAA8C;IAC9C,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,kDAAkD;IAClD,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC7B,0CAA0C;IAC1C,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,8CAA8C;IAC9C,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IACzB,gDAAgD;IAChD,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,oDAAoD;IACpD,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;CAC3B,CAAC;AAGF;;;;GAIG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC,+DAA+D;IAC/D,sBAAsB,CAAC,EAAE,iC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