Create let's do this · github/docs@3e9f84d
Sat Oct 26 2024 09:31:43 GMT+0000 (Coordinated Universal Time)
Saved by
@Ashsebahay0323_
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
}
content_copyCOPY
https://github.com/orgs/community/discussions/139005
Comments