Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: collapsable screenshot + updated constants #17

Merged
merged 1 commit into from
Dec 21, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading