Skip to content

Commit 6d4da7b

Browse files
committed
Set team name in request
1 parent 8f12299 commit 6d4da7b

File tree

7 files changed

+11
-5
lines changed

7 files changed

+11
-5
lines changed

__tests__/actions.test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,10 @@ describe('actions', () => {
189189

190190
it('Creates a Class', async () => {
191191
teams_exists.mockResolvedValue(false)
192+
teams_create.mockResolvedValue({
193+
id: 1,
194+
slug: 'gh-int-na1-ncalteen-testuser'
195+
})
192196
repos_exists.mockResolvedValue(false)
193197
teams_generateTeamName.mockReturnValue('gh-int-na1')
194198
repos_generateRepoName.mockReturnValue('gh-int-na1-ncalteen-testuser')

badges/coverage.svg

Lines changed: 1 addition & 1 deletion
Loading

dist/index.js

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

dist/index.js.map

Lines changed: 1 addition & 1 deletion
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.0.0",
4+
"version": "1.0.1",
55
"author": "Nick Alteen <[email protected]>",
66
"private": true,
77
"type": "module",

src/actions.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ export async function create(
3333

3434
// Create the team and add the users.
3535
const team = await teams.create(request)
36+
request.team = team.slug
3637

3738
// Create and configure the user repositories.
3839
for (const user of request.attendees) {

0 commit comments

Comments
 (0)