Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create the organization if it doesn't exist #9

Merged
merged 2 commits into from
Sep 23, 2020

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 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