Skip to content

Commit 79ea3ba

Browse files
committed
Clarify GitHub custom profile ID
1 parent 1c0d90d commit 79ea3ba

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/zulip.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,9 @@ pub(crate) struct ZulipUser {
617617
}
618618

619619
impl ZulipUser {
620-
// The GitHub profile data key is 3873
620+
// The custom profile field ID for GitHub profiles on the Rust Zulip
621+
// is 3873. This is likely not portable across different Zulip instance,
622+
// but we assume that triagebot will only be used on this Zulip instance anyway.
621623
pub(crate) fn get_github_username(&self) -> Option<&str> {
622624
self.profile_data.get("3873").map(|v| v.value.as_str())
623625
}

0 commit comments

Comments
 (0)