Skip to content

Conversation

@hashtagchris
Copy link
Contributor

@hashtagchris hashtagchris commented Sep 21, 2020

  • Attempt to create the destination organization.
  • Support pushing to the authenticated user's account.
  • Merge this PR
  • Create a new release

Related

Closes #1

* Produce a better error message when the destination org doesn't exist.
* Support pushing to the authenticated user's account

**Before**
`error creating github repository `synced-actions/setup-node`: error creating repository: POST http://my-ghes-hostname/api/v3/orgs/synced-actions/repos: 404 Not Found []`

**After**
`error creating github repository `synced-actions/setup-node`: Organization `synced-actions` doesn't exist at http://my-ghes-hostname. You must create it first.`

actions#1
@hashtagchris hashtagchris marked this pull request as draft September 22, 2020 15:40
@hashtagchris hashtagchris changed the title Better error message when org doesn't exist Create the organization if it doesn't exist Sep 22, 2020
@hashtagchris hashtagchris marked this pull request as ready for review September 22, 2020 18:29
@hashtagchris hashtagchris merged commit 474c0d7 into actions:main Sep 23, 2020
@hashtagchris hashtagchris deleted the issue1 branch September 23, 2020 20:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create an organization in GHES if the owner of the GitHub.com doesn't exist on the GHES instance

2 participants