Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for error (0.12 sec)

  1. .github/workflows/trusted_partners.js

    */
    
    const get_email_domain = async ({github, username}) => {
      const user = await github.rest.users.getByUsername({
        username
      });
      if (user.status >= 400) {
        console.log(user);
        throw `Error Getting user data for ${username}`;
      }
      const email = user.data.email;
      let domain = "";
      if (email && email.lastIndexOf("@") != -1)
        domain = email.substring(email.lastIndexOf("@") +1);
      console.log(domain);
    JavaScript
    - Registered: Tue May 07 12:40:20 GMT 2024
    - Last Modified: Tue Feb 07 13:52:04 GMT 2023
    - 4.5K bytes
    - Viewed (0)
Back to top