File tree Expand file tree Collapse file tree 1 file changed +1
-18
lines changed
Expand file tree Collapse file tree 1 file changed +1
-18
lines changed Original file line number Diff line number Diff line change @@ -46,24 +46,7 @@ if (!supportedEvents.includes(eventType)) {
4646}
4747
4848// Determine if the github user is an individual or an organization
49- let githubUsername = "" ;
50-
51- // eventJSON.repository is undefined for scheduled events
52- if ( eventType == "schedule" ) {
53- githubUsername = process . env . GITHUB_REPOSITORY_OWNER ;
54- eventJSON . repository = {
55- owner : {
56- login : process . env . GITHUB_REPOSITORY_OWNER ,
57- } ,
58- full_name : process . env . GITHUB_REPOSITORY ,
59- } ;
60- let repoName = process . env . GITHUB_REPOSITORY ;
61- repoName = repoName . replace ( `${ process . env . GITHUB_REPOSITORY_OWNER } /` , "" ) ;
62- // update repo name
63- process . env . GITHUB_REPOSITORY = repoName ;
64- } else {
65- githubUsername = eventJSON . repository . owner . login ;
66- }
49+ const githubUsername = eventJSON . repository . owner . login ;
6750
6851const octokit = new Octokit ( {
6952 auth : process . env . GITHUB_TOKEN ,
You can’t perform that action at this time.
0 commit comments