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

Try to create internal repository (enterprise) #94

Closed
Timmmy-nlb opened this issue Oct 28, 2020 · 1 comment
Closed

Try to create internal repository (enterprise) #94

Timmmy-nlb opened this issue Oct 28, 2020 · 1 comment

Comments

@Timmmy-nlb
Copy link

Timmmy-nlb commented Oct 28, 2020

Describe the bug
I am trying to create a repository in a workflow in an enterprise organization.
Unfortunately the parameter with the value 'visibility: "internal"' seems to be ignored.

To Reproduce
Using this code snippet

uses: actions/github-script@v3.0.0
[...]
const data = await github.repos.createInOrg({
    org: "test-org",
    name: "Test-Organisation",
    auto_init: true,
    visibility: "internal"
});

Expected behavior
A repo should be created, which has the status internal, instead a public one is created.

Desktop (please complete the following information):
not relevant

@jclem
Copy link
Contributor

jclem commented Nov 2, 2020

Hi @Timmmy-nlb this appears to be an issue with Octokit, not with github-script, which is just an action that provides an Octokit instance for you. It may be an issue with the https://github.com/octokit/plugin-rest-endpoint-methods.js plugin.

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

No branches or pull requests

2 participants