@kernelius/forge-cli 0.3.0 → 0.3.1
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 +17 -0
- package/dist/index.js +18 -9
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,23 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [0.3.1] - 2026-02-01
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
- **Organization Repository Creation**: Fixed `--org` parameter in `forge repos create` command
|
|
12
|
+
- Now correctly calls `POST /api/orgs/{slug}/repos` for organization repositories
|
|
13
|
+
- Previously was calling the user repository endpoint for all repos
|
|
14
|
+
- Repositories are now properly created under the specified organization
|
|
15
|
+
|
|
16
|
+
### Examples
|
|
17
|
+
```bash
|
|
18
|
+
# Create repository in organization (now works correctly)
|
|
19
|
+
forge repos create --name patient-records \
|
|
20
|
+
--org acme-hospital \
|
|
21
|
+
--template patient-record \
|
|
22
|
+
--visibility private
|
|
23
|
+
```
|
|
24
|
+
|
|
8
25
|
## [0.3.0] - 2026-02-01
|
|
9
26
|
|
|
10
27
|
### Added
|
package/dist/index.js
CHANGED
|
@@ -709,15 +709,24 @@ function createReposCommand() {
|
|
|
709
709
|
process.exit(1);
|
|
710
710
|
}
|
|
711
711
|
}
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
}
|
|
712
|
+
let repo;
|
|
713
|
+
if (org) {
|
|
714
|
+
repo = await apiPost(`/api/orgs/${org}/repos`, {
|
|
715
|
+
name,
|
|
716
|
+
description,
|
|
717
|
+
visibility,
|
|
718
|
+
templateId: template
|
|
719
|
+
});
|
|
720
|
+
} else {
|
|
721
|
+
const user = await apiGet("/api/users/me");
|
|
722
|
+
repo = await apiPost("/api/repositories", {
|
|
723
|
+
name,
|
|
724
|
+
description,
|
|
725
|
+
visibility,
|
|
726
|
+
orgIdentifier: user.username,
|
|
727
|
+
templateId: template
|
|
728
|
+
});
|
|
729
|
+
}
|
|
721
730
|
console.log(chalk3.green("\u2713 Repository created successfully"));
|
|
722
731
|
console.log(chalk3.dim(` @${repo.ownerIdentifier}/${repo.name}`));
|
|
723
732
|
if (template) {
|