Skip to content

Commit 805a4ae

Browse files
authored
chore: add a field released_on_github_by, so the scraper can populate this instead of setting the authors field (#3361)
This is so that the platform releases scraper can automatically add the GitHub handle of the person who made the release to the draft posts it opens. Helps keep track of who made the release, without having to pre-populate the `authors` field.
1 parent 5ed5a45 commit 805a4ae

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tool/ood-gen/lib/platform_release.ml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ type t = {
1111
contributors : string list;
1212
project_name : string;
1313
versions : string list;
14+
released_on_github_by : string option;
1415
github_release_tags : string list;
1516
}
1617
[@@deriving of_yaml, show]
@@ -108,6 +109,7 @@ type metadata = {
108109
versions : string list option;
109110
experimental : bool option;
110111
ignore : bool option;
112+
released_on_github_by : string option;
111113
github_release_tags : string list option;
112114
}
113115
[@@deriving
@@ -223,17 +225,18 @@ module Scraper = struct
223225
^ project ^ "-" ^ github_tag ^ "-draft.md"
224226
in
225227
let content = River.content post in
226-
let author = River.author post in
228+
let released_on_github_by = Some (River.author post) in
227229
let metadata : metadata =
228230
{
229231
title;
230232
tags;
231233
contributors = None;
232234
changelog = None;
233235
versions = None;
234-
authors = Some [ author ];
236+
authors = Some [];
235237
experimental = Some false;
236238
ignore = Some false;
239+
released_on_github_by;
237240
github_release_tags =
238241
(match
239242
List.filter_map (fun (a : string option) -> a) github_release_tags

0 commit comments

Comments
 (0)