File tree 3 files changed +9
-10
lines changed
3 files changed +9
-10
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " @changesets/ghcommit " : major
3
+ ---
4
+
5
+ Make ` repo ` argument required,
6
+ and remove the ` repository ` argument which was deprecated
7
+ and previously could be used in its place.
Original file line number Diff line number Diff line change @@ -49,22 +49,16 @@ export const commitFilesFromBase64 = async ({
49
49
octokit,
50
50
owner,
51
51
repo,
52
- repository,
53
52
branch,
54
53
base,
55
54
force = false ,
56
55
message,
57
56
fileChanges,
58
57
log,
59
58
} : CommitFilesFromBase64Args ) : Promise < CommitFilesResult > => {
60
- const repositoryNameWithOwner = `${ owner } /${ repository } ` ;
59
+ const repositoryNameWithOwner = `${ owner } /${ repo } ` ;
61
60
const baseRef = getBaseRef ( base ) ;
62
61
const targetRef = `refs/heads/${ branch } ` ;
63
- repo = repo ?? repository ;
64
-
65
- if ( ! repo ) {
66
- throw new Error ( `Argument 'repo' must be provided` ) ;
67
- }
68
62
69
63
log ?. debug ( `Getting repo info ${ repositoryNameWithOwner } ` ) ;
70
64
const info = await getRepositoryMetadata ( octokit , {
Original file line number Diff line number Diff line change @@ -24,9 +24,7 @@ export type GitBase =
24
24
export interface CommitFilesBasedArgs {
25
25
octokit : GitHubClient ;
26
26
owner : string ;
27
- repo ?: string ;
28
- /** @deprecated use {@link repo} instead */
29
- repository ?: string ;
27
+ repo : string ;
30
28
branch : string ;
31
29
/**
32
30
* Push the commit even if the branch exists and does not match what was
You can’t perform that action at this time.
0 commit comments