Skip to content
This repository has been archived by the owner on Jul 1, 2024. It is now read-only.

Commit

Permalink
New stale reviewers implies new reviewedAbbrOid
Browse files Browse the repository at this point in the history
  • Loading branch information
jablko committed Jan 6, 2021
1 parent b2f2a9b commit eb19b65
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/comments.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { sha256 } from "./util/util";

// use `deletedWhenNotPresent` for comments that should be removed if not in the actions
export const tagsToDeleteIfNotPosted: string[] = [];
const deletedWhenNotPresent = <T>(tag: string, f: (tag: string) => T) => {
Expand Down Expand Up @@ -59,7 +57,7 @@ ${names.map(n => `${n}`).join(" ")}
});

export const PingStaleReviewer = (reviewedAbbrOid: string, reviewers: string[]) => ({
tag: `stale-ping-${sha256(reviewers.join("-")).substr(0, 6)}-${reviewedAbbrOid}`,
tag: `stale-ping-${reviewedAbbrOid}`,
status: `@${reviewers.join(", @")} Thank you for reviewing this PR! The author has pushed new commits since your last review. Could you take another look and submit a fresh review?`
});

Expand Down

0 comments on commit eb19b65

Please sign in to comment.