chore(ci): automatically include releases notes in release draft (#14179)

This commit is contained in:
David Sherret 2022-04-02 11:25:12 -04:00 committed by GitHub
parent 94885bc293
commit c0ee027d34
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 41 additions and 33 deletions

View file

@ -1,6 +1,6 @@
// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license.
import { path, Repo } from "./deps.ts";
import { path, ReleasesMdFile, Repo } from "./deps.ts";
export class DenoWorkspace {
#repo: Repo;
@ -46,6 +46,12 @@ export class DenoWorkspace {
return this.#repo.getCrate(name);
}
getReleasesMdFile() {
return new ReleasesMdFile(
path.join(DenoWorkspace.rootDirPath, "Releases.md"),
);
}
runFormatter() {
return this.#repo.runCommandWithOutput([
"deno",