Skip to content

Commit 344c841

Browse files
committed
Add name parameter on create fork request
https://docs.github.com/en/rest/repos/forks#create-a-fork
1 parent 6adf7cc commit 344c841

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

lib/src/common/model/repos_forks.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@ import 'package:json_annotation/json_annotation.dart';
22
part 'repos_forks.g.dart';
33

44
/// Model class for a new fork to be created.
5+
/// https://docs.github.com/en/rest/repos/forks#create-a-fork
56
@JsonSerializable()
67
class CreateFork {
7-
CreateFork([this.organization]);
8+
CreateFork({this.organization, this.name});
89

910
String? organization;
11+
String? name;
1012

1113
factory CreateFork.fromJson(Map<String, dynamic> input) =>
1214
_$CreateForkFromJson(input);

lib/src/common/model/repos_forks.g.dart

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)