Skip to content

Commit

Permalink
Merge pull request #17 from WilliamDavidHarrison/patch-1
Browse files Browse the repository at this point in the history
feat: collapsable screenshot + updated constants
  • Loading branch information
VaibhavSys authored Dec 21, 2023
2 parents d232cac + 33ef913 commit eeafe02
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// Considers main branch as the absolute truth
const utils = require("./utils.js");

WAIT_TIME_AFTER_EACH_FILE = 30000; // In ms
IGNORE_LABELS = ["maintainer"];
IGNORE_TITLES = ["no-rm"];
const WAIT_TIME_AFTER_EACH_FILE = 30000; // 30 seconds
const IGNORE_LABELS = ["maintainer"];
const IGNORE_TITLES = ["no-rm", "rm-skip"];

/**
* This is the main entrypoint to your Probot app
Expand Down Expand Up @@ -94,8 +94,11 @@ Repository: ${repository}
**Authorized**: ${authorized ? "✅" : "❌"}
## 📸 Screenshot
![Screenshot of ${file.filename}](${imageUrl})
<details>
<summary><h2>📸 Screenshot</h2></summary>
![${file.filename}](${imageUrl})
</details>
`;

// Post the comment to the GitHub pull request
Expand Down Expand Up @@ -134,8 +137,11 @@ Content URL: ${url}
Description: ${description}
Repository: ${repository}
## 📸 Screenshot
![Screenshot of ${file.filename}](${imageUrl})
<details>
<summary><h2>📸 Screenshot</h2></summary>
![${file.filename}](${imageUrl})
</details>
`;

// Post the comment to the GitHub pull request
Expand Down

0 comments on commit eeafe02

Please sign in to comment.