@aspruyt/xfg 3.9.4 → 3.9.5
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/README.md +13 -5
- package/dist/cli/program.js +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -8,7 +8,9 @@
|
|
|
8
8
|
[](https://anthony-spruyt.github.io/xfg/)
|
|
9
9
|
[](LICENSE)
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
Manage files, settings, and repositories across GitHub, Azure DevOps, and GitLab — declaratively, from a single YAML config.
|
|
12
|
+
|
|
13
|
+
Define your organization's standards once. xfg creates PRs to sync config files, applies repository settings and rulesets via API, and can even create, fork, or migrate repositories — all from one config file.
|
|
12
14
|
|
|
13
15
|
**[Full Documentation](https://anthony-spruyt.github.io/xfg/)**
|
|
14
16
|
|
|
@@ -48,7 +50,7 @@ gh auth login
|
|
|
48
50
|
# Sync files across repos
|
|
49
51
|
xfg sync --config ./config.yaml
|
|
50
52
|
|
|
51
|
-
# Apply repository settings
|
|
53
|
+
# Apply repository settings and rulesets
|
|
52
54
|
xfg settings --config ./config.yaml
|
|
53
55
|
```
|
|
54
56
|
|
|
@@ -56,7 +58,8 @@ xfg settings --config ./config.yaml
|
|
|
56
58
|
|
|
57
59
|
```yaml
|
|
58
60
|
# sync-config.yaml
|
|
59
|
-
id: my-org-
|
|
61
|
+
id: my-org-standards
|
|
62
|
+
|
|
60
63
|
files:
|
|
61
64
|
.prettierrc.json:
|
|
62
65
|
content:
|
|
@@ -69,6 +72,7 @@ settings:
|
|
|
69
72
|
allowSquashMerge: true
|
|
70
73
|
deleteBranchOnMerge: true
|
|
71
74
|
vulnerabilityAlerts: true
|
|
75
|
+
secretScanning: true
|
|
72
76
|
|
|
73
77
|
rulesets:
|
|
74
78
|
main-protection:
|
|
@@ -82,6 +86,10 @@ settings:
|
|
|
82
86
|
- type: pull_request
|
|
83
87
|
parameters:
|
|
84
88
|
requiredApprovingReviewCount: 1
|
|
89
|
+
- type: required_status_checks
|
|
90
|
+
parameters:
|
|
91
|
+
requiredStatusChecks:
|
|
92
|
+
- context: "ci/build"
|
|
85
93
|
|
|
86
94
|
repos:
|
|
87
95
|
- git:
|
|
@@ -89,8 +97,8 @@ repos:
|
|
|
89
97
|
- git@github.com:your-org/backend-api.git
|
|
90
98
|
```
|
|
91
99
|
|
|
92
|
-
**Result:** PRs are created with `.prettierrc.json` files, and repos get standardized merge options, security settings, and branch protection
|
|
100
|
+
**Result:** PRs are created with `.prettierrc.json` files, and repos get standardized merge options, security settings, and branch protection rulesets.
|
|
93
101
|
|
|
94
102
|
## Documentation
|
|
95
103
|
|
|
96
|
-
See **[anthony-spruyt.github.io/xfg](https://anthony-spruyt.github.io/xfg/)** for configuration reference, examples, platform setup, and troubleshooting.
|
|
104
|
+
See **[anthony-spruyt.github.io/xfg](https://anthony-spruyt.github.io/xfg/)** for the full feature list, configuration reference, examples, platform setup, and troubleshooting.
|
package/dist/cli/program.js
CHANGED
|
@@ -27,7 +27,7 @@ function addSharedOptions(cmd) {
|
|
|
27
27
|
// =============================================================================
|
|
28
28
|
program
|
|
29
29
|
.name("xfg")
|
|
30
|
-
.description("
|
|
30
|
+
.description("Manage files, settings, and repositories across GitHub, Azure DevOps, and GitLab")
|
|
31
31
|
.version(packageJson.version);
|
|
32
32
|
// Sync command (file synchronization)
|
|
33
33
|
const syncCommand = new Command("sync")
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aspruyt/xfg",
|
|
3
|
-
"version": "3.9.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "3.9.5",
|
|
4
|
+
"description": "Manage files, settings, and repositories across GitHub, Azure DevOps, and GitLab — declaratively, from a single YAML config",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"bin": {
|