@@ -493,7 +493,7 @@ export async function MakeRepoTimeSeries(
493493/**
494494 * HTTP function for experimenting with a new SAM score.
495495 */
496- export const RepoIssueStatistics = functions . https . onRequest (
496+ export const RepoIssueStatistics_v2 = functions . https . onRequest (
497497 util . FUNCTION_OPTS ,
498498 async ( req , res ) => {
499499 const org = ( req . query [ "org" ] as string ) || "firebase" ;
@@ -511,7 +511,7 @@ export const RepoIssueStatistics = functions.https.onRequest(
511511/**
512512 * HTTP Function to get a JSON report on a repo.
513513 */
514- export const GetRepoReport = functions . https . onRequest (
514+ export const GetRepoReport_v2 = functions . https . onRequest (
515515 util . FUNCTION_OPTS ,
516516 async ( req , res ) => {
517517 // TODO: Allow passing in the 'start' date to get historical data.
@@ -535,7 +535,7 @@ export const GetRepoReport = functions.https.onRequest(
535535/**
536536 * Preview the email for a repo
537537 */
538- export const GetRepoReportHTML = functions . https . onRequest (
538+ export const GetRepoReportHTML_v2 = functions . https . onRequest (
539539 util . FUNCTION_OPTS ,
540540 async ( req , res ) => {
541541 const org = ( req . query [ "org" ] as string ) || "firebase" ;
@@ -557,7 +557,7 @@ export const GetRepoReportHTML = functions.https.onRequest(
557557/**
558558 * HTTP Function to get a JSON report on a repo.
559559 */
560- export const GetRepoTimeSeries = functions . https . onRequest (
560+ export const GetRepoTimeSeries_v2 = functions . https . onRequest (
561561 util . FUNCTION_OPTS ,
562562 async ( req , res ) => {
563563 // CORS-hack
@@ -597,7 +597,7 @@ export const GetRepoTimeSeries = functions.https.onRequest(
597597/**
598598 * PubSub function that saves the weekly report to RTDB.
599599 */
600- export const SaveWeeklyReport = functions . scheduler . onSchedule (
600+ export const SaveWeeklyReport_v2 = functions . scheduler . onSchedule (
601601 "every wednesday 09:00" ,
602602 async ( ) => {
603603 const now = new Date ( ) ;
@@ -615,7 +615,7 @@ export const SaveWeeklyReport = functions.scheduler.onSchedule(
615615/**
616616 * PubSub function that sends the GitHub email based on the latest weekly report.
617617 */
618- export const SendWeeklyEmail = functions . scheduler . onSchedule (
618+ export const SendWeeklyEmail_v2 = functions . scheduler . onSchedule (
619619 "every wednesday 09:30" ,
620620 async ( ) => {
621621 const emailText = await GetWeeklyEmail ( "firebase" ) ;
@@ -631,7 +631,7 @@ export const SendWeeklyEmail = functions.scheduler.onSchedule(
631631/**
632632 * PubSub function that sends the GitHub email based on the latest weekly report.
633633 */
634- export const SendWeeklyRepoEmails = functions . scheduler . onSchedule (
634+ export const SendWeeklyRepoEmails_v2 = functions . scheduler . onSchedule (
635635 "every wednesday 10:00" ,
636636 async ( ) => {
637637 const allRepos = bot_config . getAllRepos ( ) ;
0 commit comments