mirror of
				https://github.com/ButlerLogic/action-autotag.git
				synced 2025-10-31 23:36:22 +07:00 
			
		
		
		
	Fixed Octokit import
This commit is contained in:
		| @ -1,9 +1,9 @@ | ||||
| import core from '@actions/core' | ||||
| import os from 'os' | ||||
| import octokit from 'octokit' | ||||
| import { Octokit } from 'octokit' | ||||
|  | ||||
| // Get authenticated GitHub client (Ocktokit): https://github.com/actions/toolkit/tree/master/packages/github#usage | ||||
| const github = (new octokit({ auth: process.env.GITHUB_TOKEN || process.env.INPUT_GITHUB_TOKEN })).rest | ||||
| const github = (new Octokit({ auth: process.env.GITHUB_TOKEN || process.env.INPUT_GITHUB_TOKEN })).rest | ||||
|  | ||||
| // Get owner and repo from context of payload that triggered the action | ||||
| const [ owner, repo ] = process.env.GITHUB_ACTION_REPOSITORY.split('/') | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Corey Butler
					Corey Butler