From bfa43dccac8210f16c9353365749f4ecef7b2a4f Mon Sep 17 00:00:00 2001 From: at15 Date: Mon, 17 Feb 2020 23:37:24 -0800 Subject: [PATCH] hack: Can't generate file name until #186 is resolved - we are relying on issue being created on time ... which is never the case .. --- scripts/weekly/main.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/scripts/weekly/main.go b/scripts/weekly/main.go index 1b7d8cf..38ff6c1 100644 --- a/scripts/weekly/main.go +++ b/scripts/weekly/main.go @@ -55,3 +55,12 @@ func build() error { } return nil } + +// Based on https://github.com/dyweb/dy-bot/blob/master/pkg/util/weeklyutil/weekly.go +// weekly title is Weekly-157 +// so @gaocegege just write strconv.Atoi(title[7:len(title)]) +// It does not work properly because we don't create weekly every week, which is the case for #183 +func fileNameFromIssue(title string) (string, error) { + // FIXME(#186): need to modify weekly generator + return "", errors.New("not implemented, see https://github.com/dyweb/weekly/issues/186") +}