You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
console.log(`No user match found for [${username}] after checking against [${usersCount}] Slack ${(0,src.plural)('user', usersCount)}`);
81860
+
// Redacted version
81861
+
console.log(`Redacted debug info: No user match found for [${redact(username ?? '')}] after checking against [${usersCount}] Slack ${(0,src.plural)('user', usersCount)}`);
(0,core.debug)(`WARNING: Custom mappings for GitHub username [${username}] were defined but no matching Slack users were found:`);
81867
+
(0,core.debug)(`Redacted debug info: WARNING: Custom mappings for GitHub username [${redact(username)}] were defined but no matching Slack users were found:`);
81812
81868
// Show each mapping that failed
81813
81869
matchingMappings.forEach((mapping) => {
81814
81870
(0,core.debug)(` - Mapped to Slack username [${mapping.slackUsername}] but no Slack user with this name/display_name/real_name was found`);
81871
+
(0,core.debug)(` - Redacted debug info: Mapped to Slack username [${redact(mapping.slackUsername)}] but no Slack user with this name/display_name/real_name was found`);
81815
81872
});
81816
81873
(0,core.debug)(`Attempted to fall back to standard matching methods`);
81817
81874
}
81818
81875
}
81819
81876
// Log standard matchers that were tried
81820
-
if (userId)
81877
+
if (userId) {
81821
81878
(0,core.debug)(`Tried to match userId [${userId}] against Slack user.id fields`);
81822
-
if (email)
81879
+
(0,core.debug)(`Redacted debug info: Tried to match userId [${redact(userId)}] against Slack user.id fields`);
81880
+
}
81881
+
if (email) {
81823
81882
(0,core.debug)(`Tried to match email [${email}] against Slack user.profile.email fields`);
81824
-
if (username)
81883
+
(0,core.debug)(`Redacted debug info: Tried to match email [${redact(email)}] against Slack user.profile.email fields`);
81884
+
}
81885
+
if (username) {
81825
81886
(0,core.debug)(`Tried to match username [${username}] against Slack user.profile.email (contains), display_name and real_name fields`);
81887
+
(0,core.debug)(`Redacted debug info: Tried to match username [${redact(username)}] against Slack user.profile.email (contains), display_name and real_name fields`);
81888
+
}
81826
81889
(0,core.debug)(`Since no Slack user match found, unable to @mention user or use their profile image`);
`Match found by custom mapping: GitHub username [${githubUsername}] to Slack username [${slackUsername}] for user [${user.id}]`,
30
79
)
80
+
debug(
81
+
`Redacted debug info: GitHub username [${redact(githubUsername)}] to Slack username [${redact(slackUsername)}] matched with user name [${redact(user.name??'')}], display_name [${redact(user.profile?.display_name??'')}], real_name [${redact(user.profile?.real_name??'')}]`,
`WARNING: Custom mappings for GitHub username [${username}] were defined but no matching Slack users were found:`,
137
220
)
138
221
222
+
debug(
223
+
`Redacted debug info: WARNING: Custom mappings for GitHub username [${redact(username)}] were defined but no matching Slack users were found:`,
224
+
)
225
+
139
226
// Show each mapping that failed
140
227
matchingMappings.forEach((mapping)=>{
141
228
debug(
142
229
` - Mapped to Slack username [${mapping.slackUsername}] but no Slack user with this name/display_name/real_name was found`,
143
230
)
231
+
debug(
232
+
` - Redacted debug info: Mapped to Slack username [${redact(mapping.slackUsername)}] but no Slack user with this name/display_name/real_name was found`,
233
+
)
144
234
})
145
235
146
236
debug(`Attempted to fall back to standard matching methods`)
147
237
}
148
238
}
149
239
150
240
// Log standard matchers that were tried
151
-
if(userId)debug(`Tried to match userId [${userId}] against Slack user.id fields`)
152
-
if(email)debug(`Tried to match email [${email}] against Slack user.profile.email fields`)
153
-
if(username)
241
+
if(userId){
242
+
debug(`Tried to match userId [${userId}] against Slack user.id fields`)
243
+
debug(`Redacted debug info: Tried to match userId [${redact(userId)}] against Slack user.id fields`)
244
+
}
245
+
246
+
if(email){
247
+
debug(`Tried to match email [${email}] against Slack user.profile.email fields`)
248
+
debug(`Redacted debug info: Tried to match email [${redact(email)}] against Slack user.profile.email fields`)
249
+
}
250
+
251
+
if(username){
154
252
debug(
155
253
`Tried to match username [${username}] against Slack user.profile.email (contains), display_name and real_name fields`,
156
254
)
255
+
debug(
256
+
`Redacted debug info: Tried to match username [${redact(username)}] against Slack user.profile.email (contains), display_name and real_name fields`,
257
+
)
258
+
}
157
259
158
260
debug(`Since no Slack user match found, unable to @mention user or use their profile image`)
0 commit comments