Preview:
Run actions/github-script@e69ef5462fd455e02edcaf4dd7708eda96b9eda0
2
  with:
3
    github-token: ***
4
    script: // Only perform this action with GitHub employees
5
  try {
6
    await github.rest.teams.getMembershipForUserInOrg({
7
      org: %27github%27,
8
      team_slug: %27employees%27,
9
      username: context.payload.sender.login,
10
    });
11
  } catch(err) {
12
    // An error will be thrown if the user is not a GitHub employee
13
    // If a user is not a GitHub employee, we should stop here and
14
    // Not send a notification
15
    return
16
  }
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter