Skip to content
Merged
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
2 changes: 2 additions & 0 deletions scripts/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

const LE_BOT_USERNAME = 'learning-equality-bot[bot]';
const SENTRY_BOT_USERNAME = 'sentry-io[bot]';
const DEPENDABOT_USERNAME = 'dependabot[bot]';

// close contributors are treated a bit special in some workflows,
// for example, we receive a high priority notification about their
Expand Down Expand Up @@ -88,6 +89,7 @@ const HOLIDAY_MESSAGE = `Season’s greetings! 👋 \n\n We’d like to thank ev
module.exports = {
LE_BOT_USERNAME,
SENTRY_BOT_USERNAME,
DEPENDABOT_USERNAME,
CLOSE_CONTRIBUTORS,
KEYWORDS_DETECT_ASSIGNMENT_REQUEST,
ISSUE_LABEL_HELP_WANTED,
Expand Down
6 changes: 3 additions & 3 deletions scripts/utils.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { LE_BOT_USERNAME, SENTRY_BOT_USERNAME } = require('./constants');
const { LE_BOT_USERNAME, SENTRY_BOT_USERNAME, DEPENDABOT_USERNAME } = require('./constants');
// const { CLOSE_CONTRIBUTORS, TEAMS_WITH_CLOSE_CONTRIBUTORS } = require('./constants');
const { CLOSE_CONTRIBUTORS } = require('./constants');

Expand All @@ -10,11 +10,11 @@ async function isBot(username, { core }) {
core.setFailed('Missing username');
return false;
}
return [LE_BOT_USERNAME, SENTRY_BOT_USERNAME].includes(username);
return [LE_BOT_USERNAME, SENTRY_BOT_USERNAME, DEPENDABOT_USERNAME].includes(username);
}

/**
* Checks if a user is a contributor (= not a core team member).
* Checks if a user is a contributor (= not a core team member or bot).
*/
async function isContributor(username, authorAssociation, { github, context, core }) {
if (!username) {
Expand Down