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
15c8759ee0
commit
f4ffd018e6
17 changed files with 410 additions and 300 deletions
|
@ -8,9 +8,10 @@ import { GitProcess } from 'dugite';
|
|||
|
||||
import { ELECTRON_DIR } from '../../lib/utils';
|
||||
import { createGitHubTokenStrategy } from '../github-token';
|
||||
import { ELECTRON_ORG, ELECTRON_REPO } from '../types';
|
||||
|
||||
const octokit = new Octokit({
|
||||
authStrategy: createGitHubTokenStrategy('electron')
|
||||
authStrategy: createGitHubTokenStrategy(ELECTRON_REPO)
|
||||
});
|
||||
|
||||
const MAX_FAIL_COUNT = 3;
|
||||
|
@ -520,7 +521,7 @@ const getNotes = async (fromRef: string, toRef: string, newVersion: string) => {
|
|||
);
|
||||
|
||||
// get the electron/electron commits
|
||||
const electron = { owner: 'electron', repo: 'electron', dir: ELECTRON_DIR };
|
||||
const electron = { owner: ELECTRON_ORG, repo: ELECTRON_REPO, dir: ELECTRON_DIR };
|
||||
await addRepoToPool(pool, electron, fromRef, toRef);
|
||||
|
||||
// remove any old commits
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue