Skip to content

Commit

Permalink
Add WebGPU section to release note (tensorflow#7754)
Browse files Browse the repository at this point in the history
* Add WebGPU to release note

* Update out file display
  • Loading branch information
chunnienc authored Jun 13, 2023
1 parent af8fb59 commit d6fffec
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions scripts/release_notes/release_notes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,13 @@
import * as argparse from 'argparse';
import * as fs from 'fs';
import * as util from './util';
import * as path from 'path';
import {$, Commit, Repo, RepoCommits} from './util';

// tslint:disable-next-line:no-require-imports
const octokit = require('@octokit/rest')();

const OUT_FILE = 'release-notes.md';
const OUT_FILE = path.resolve('release-notes.md');

const TFJS_REPOS: Repo[] = [
{name: 'Core', identifier: 'tfjs', path: 'tfjs-core'},
Expand All @@ -53,7 +54,8 @@ const TFJS_REPOS: Repo[] = [
{name: 'Node', identifier: 'tfjs', path: 'tfjs-node'},
{name: 'Wasm', identifier: 'tfjs', path: 'tfjs-backend-wasm'},
{name: 'Cpu', identifier: 'tfjs', path: 'tfjs-backend-cpu'},
{name: 'Webgl', identifier: 'tfjs', path: 'tfjs-backend-webgl'}
{name: 'Webgl', identifier: 'tfjs', path: 'tfjs-backend-webgl'},
{name: 'WebGPU', identifier: 'tfjs', path: 'tfjs-backend-webgpu'},
];

const VIS_REPO: Repo = {
Expand Down Expand Up @@ -309,10 +311,10 @@ async function generateNotes(repositories: util.Repo[]) {
let token = process.env.GITHUB_TOKEN;
if (token == null) {
token = await util.question(
'Enter GitHub token (https://github.com/settings/tokens): ');
'Enter GitHub token (https://github.com/settings/tokens): ');

} else {
console.log("The GITHUB_TOKEN is present as environment variable");
console.log('The GITHUB_TOKEN is present as environment variable');
}
octokit.authenticate({type: 'token', token});

Expand Down

0 comments on commit d6fffec

Please sign in to comment.