Skip to content

Commit 9a9601f

Browse files
committed
Add error check for EMU users
1 parent b2917f2 commit 9a9601f

File tree

5 files changed

+13
-4
lines changed

5 files changed

+13
-4
lines changed

badges/coverage.svg

Lines changed: 1 addition & 1 deletion
Loading

dist/index.js

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "gh-github-intermediate-issueops",
33
"description": "GitHub Intermediate Offering: IssueOps Automation",
4-
"version": "1.1.0",
4+
"version": "2.0.0",
55
"author": "Nick Alteen <[email protected]>",
66
"private": true,
77
"type": "module",

src/github/issues.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,12 @@ export function parse(
104104
if (!startDate) throw new Error('Start Date Not Found')
105105
if (!endDate) throw new Error('End Date Not Found')
106106

107+
for (const attendee of attendees)
108+
if (attendee.handle.includes('_'))
109+
throw new Error(
110+
`Invalid Attendee: ${attendee.handle} (Enterprise Managed Users are not supported)`
111+
)
112+
107113
core.info('Creating Class Request')
108114
const request: ClassRequest = {
109115
action,

0 commit comments

Comments
 (0)