Skip to content

Commit

Permalink
✨ Support for commits in update function
Browse files Browse the repository at this point in the history
  • Loading branch information
AnandChowdhary authored Oct 13, 2020
1 parent 0cb7a49 commit 801bb79
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ import { Curl, CurlFeature } from "node-libcurl";
import { join } from "path";
import { generateSummary } from "./summary";

const shouldCommit = process.argv[2] === "commit";

export const update = async () => {
export const update = async (shouldCommit = false) => {
const config = safeLoad(await readFile(join(".", ".upptimerc.yml"), "utf8")) as {
sites: Array<{
name: string;
Expand Down

0 comments on commit 801bb79

Please sign in to comment.