This message was deleted.
# general
s
This message was deleted.
w
When I use the "import" option, I'm getting a preview that looks like this:
Copy code
Do you want to perform this import? details
+ pulumi:pulumi:Stack: (create)
    [urn=urn:pulumi:sandbox::repocontrol::pulumi:pulumi:Stack::repocontrol-sandbox]
    = github:index/repository:Repository: (import) 🔒
        [id=example-repo-a]
        [urn=urn:pulumi:sandbox::repocontrol::github:index/repository:Repository::example-repo-a]
        defaultBranch: "main"
        description  : "My great description"
        hasDownloads : true
        hasIssues    : true
        hasProjects  : true
        hasWiki      : true
        name         : "example-repo-a"
        private      : true
        visibility   : "private"
I'm not seeing any evidence that it has an awareness of all of the other options like the branch protections, which are super important.
l
Settings are spread out over many objects. You'll need a lot more work to import it all, unfortunately. Branch protection rules are covered by the BranchProteection class: https://www.pulumi.com/registry/packages/github/api-docs/branchprotection/
🙏 1
b
@wonderful-library-14534 checkout https://github.com/pulumiverse/infra for a real world example
👀 2
w
Somewhat related question: I've discovered some weakness in GitHub where some of the GitHub repo settings information is just not available across either their REST API or GraphQL API (specifically, branch protection push allowances for apps). I've confirmed this with GitHub support. They acknowledged a GraphQL bug, and I'm hoping they fix it soon. Therefore - my question is this: If there are some params that I know cannot be retrieved across GitHub API's, what should I expect Pulumi to do? For example: if a GitHub administrator sets this value in the GitHub UI on Monday, then on Tuesday somebody else does a "pulumi up" with some other settings, will Pulumi blow that value manually registered push allowance value from Monday?