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
69
)
70
+
debug(
71
+
`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
210
)
138
211
212
+
debug(
213
+
`Redacted debug info: WARNING: Custom mappings for GitHub username [${redact(username)}] were defined but no matching Slack users were found:`,
214
+
)
215
+
139
216
// Show each mapping that failed
140
217
matchingMappings.forEach((mapping)=>{
141
218
debug(
142
219
` - Mapped to Slack username [${mapping.slackUsername}] but no Slack user with this name/display_name/real_name was found`,
143
220
)
221
+
debug(
222
+
` - Redacted debug info: Mapped to Slack username [${redact(mapping.slackUsername)}] but no Slack user with this name/display_name/real_name was found`,
223
+
)
144
224
})
145
225
146
226
debug(`Attempted to fall back to standard matching methods`)
147
227
}
148
228
}
149
229
150
230
// 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)
231
+
if(userId){
232
+
debug(`Tried to match userId [${userId}] against Slack user.id fields`)
233
+
debug(`Redacted debug info: Tried to match userId [${redact(userId)}] against Slack user.id fields`)
234
+
}
235
+
236
+
if(email){
237
+
debug(`Tried to match email [${email}] against Slack user.profile.email fields`)
238
+
debug(`Redacted debug info: Tried to match email [${redact(email)}] against Slack user.profile.email fields`)
239
+
}
240
+
241
+
if(username){
154
242
debug(
155
243
`Tried to match username [${username}] against Slack user.profile.email (contains), display_name and real_name fields`,
156
244
)
245
+
debug(
246
+
`Redacted debug info: Tried to match username [${redact(username)}] against Slack user.profile.email (contains), display_name and real_name fields`,
247
+
)
248
+
}
157
249
158
250
debug(`Since no Slack user match found, unable to @mention user or use their profile image`)
0 commit comments