build: cleanup release scripts, separate cli entrypoints from logic (#44083)
build: cleanup release scripts, separate cli entrypoints from logic (#44058) * build: cleanup release scripts, separate cli entrypoints from logic * build: use repo/org constants
This commit is contained in:
parent
075a297347
commit
01e64d3932
17 changed files with 408 additions and 299 deletions
|
@ -1,7 +1,7 @@
|
|||
import { Octokit } from '@octokit/rest';
|
||||
import got from 'got';
|
||||
import { createGitHubTokenStrategy } from './github-token';
|
||||
import { ElectronReleaseRepo } from './types';
|
||||
import { ELECTRON_ORG, ElectronReleaseRepo } from './types';
|
||||
|
||||
export async function getAssetContents (repo: ElectronReleaseRepo, assetId: number) {
|
||||
const octokit = new Octokit({
|
||||
|
@ -10,7 +10,7 @@ export async function getAssetContents (repo: ElectronReleaseRepo, assetId: numb
|
|||
});
|
||||
|
||||
const requestOptions = octokit.repos.getReleaseAsset.endpoint({
|
||||
owner: 'electron',
|
||||
owner: ELECTRON_ORG,
|
||||
repo,
|
||||
asset_id: assetId,
|
||||
headers: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue