Skip to content
Open
Show file tree
Hide file tree
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
8 changes: 8 additions & 0 deletions addon/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,14 @@ var MyQOnly = {
if (settings.ignoreOwnPrs) {
query += ` -author:${username}`;
}
let ignoredUsers = [...new Set(
(settings.ignoredUsers || "")
.split(",")
.map(s => s.trim())
.filter(Boolean))];
if (ignoredUsers.length > 0) {
query += ignoredUsers.map(u => ` -author:${u}`).join(" ");
}
if (settings.ignoreDraftPrs) {
query += " draft:false";
}
Expand Down
4 changes: 3 additions & 1 deletion addon/content/options/options.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ <h3>GitHub</h3>
<input type="checkbox" id="github-ignore-draft" data-setting="ignoreDraftPrs">
<label for="github-ignore-draft">Ignore draft pull requests.</label>
</div>
<label for="github-ignored-teams">Comma-separated list of github teams to ignore.</label>
<label for="github-ignored-users">Comma-separated list of github users to ignore requests from.</label>
<input type="text" id="github-ignored-users" data-setting="ignoredUsers">
<label for="github-ignored-teams">Comma-separated list of github teams to ignore requests for.</label>
<input type="text" id="github-ignored-teams" data-setting="ignoredTeams">
<label for="github-ignored-repos">Comma-separated list of github repositories to ignore as a substring of the url (only applies when requested as part of a team).</label>
<input type="text" id="github-ignored-repos" data-setting="ignoredRepos">
Expand Down