Skip to content

Commit 148b1cb

Browse files
authored
Improve error messages for GITHUB_REPOSITORY (#1291)
1 parent 445a6d2 commit 148b1cb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/github.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ export const getContext = async (): Promise<Context> => {
2626

2727
const getRepo = () => {
2828
const [owner, repo] = getEnv('GITHUB_REPOSITORY').split('/')
29-
assert(owner, 'GITHUB_REPOSITORY owner is required')
30-
assert(repo, 'GITHUB_REPOSITORY repo is required')
29+
assert(owner, 'GITHUB_REPOSITORY must have an owner part')
30+
assert(repo, 'GITHUB_REPOSITORY must have a repo part')
3131
return { owner, repo }
3232
}
3333

0 commit comments

Comments
 (0)