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)}`);
81854
+
// Redacted version
81855
+
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:`);
81861
+
(0,core.debug)(`Redacted debug info: WARNING: Custom mappings for GitHub username [${redact(username)}] were defined but no matching Slack users were found:`);
81812
81862
// Show each mapping that failed
81813
81863
matchingMappings.forEach((mapping) => {
81814
81864
(0,core.debug)(` - Mapped to Slack username [${mapping.slackUsername}] but no Slack user with this name/display_name/real_name was found`);
81865
+
(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
81866
});
81816
81867
(0,core.debug)(`Attempted to fall back to standard matching methods`);
81817
81868
}
81818
81869
}
81819
81870
// Log standard matchers that were tried
81820
-
if (userId)
81871
+
if (userId) {
81821
81872
(0,core.debug)(`Tried to match userId [${userId}] against Slack user.id fields`);
81822
-
if (email)
81873
+
(0,core.debug)(`Redacted debug info: Tried to match userId [${redact(userId)}] against Slack user.id fields`);
81874
+
}
81875
+
if (email) {
81823
81876
(0,core.debug)(`Tried to match email [${email}] against Slack user.profile.email fields`);
81824
-
if (username)
81877
+
(0,core.debug)(`Redacted debug info: Tried to match email [${redact(email)}] against Slack user.profile.email fields`);
81878
+
}
81879
+
if (username) {
81825
81880
(0,core.debug)(`Tried to match username [${username}] against Slack user.profile.email (contains), display_name and real_name fields`);
81881
+
(0,core.debug)(`Redacted debug info: Tried to match username [${redact(username)}] against Slack user.profile.email (contains), display_name and real_name fields`);
81882
+
}
81826
81883
(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
76
)
77
+
debug(
78
+
`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
217
)
138
218
219
+
debug(
220
+
`Redacted debug info: WARNING: Custom mappings for GitHub username [${redact(username)}] were defined but no matching Slack users were found:`,
221
+
)
222
+
139
223
// Show each mapping that failed
140
224
matchingMappings.forEach((mapping)=>{
141
225
debug(
142
226
` - Mapped to Slack username [${mapping.slackUsername}] but no Slack user with this name/display_name/real_name was found`,
143
227
)
228
+
debug(
229
+
` - Redacted debug info: Mapped to Slack username [${redact(mapping.slackUsername)}] but no Slack user with this name/display_name/real_name was found`,
230
+
)
144
231
})
145
232
146
233
debug(`Attempted to fall back to standard matching methods`)
147
234
}
148
235
}
149
236
150
237
// 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)
238
+
if(userId){
239
+
debug(`Tried to match userId [${userId}] against Slack user.id fields`)
240
+
debug(`Redacted debug info: Tried to match userId [${redact(userId)}] against Slack user.id fields`)
241
+
}
242
+
243
+
if(email){
244
+
debug(`Tried to match email [${email}] against Slack user.profile.email fields`)
245
+
debug(`Redacted debug info: Tried to match email [${redact(email)}] against Slack user.profile.email fields`)
246
+
}
247
+
248
+
if(username){
154
249
debug(
155
250
`Tried to match username [${username}] against Slack user.profile.email (contains), display_name and real_name fields`,
156
251
)
252
+
debug(
253
+
`Redacted debug info: Tried to match username [${redact(username)}] against Slack user.profile.email (contains), display_name and real_name fields`,
254
+
)
255
+
}
157
256
158
257
debug(`Since no Slack user match found, unable to @mention user or use their profile image`)
0 commit comments