chore: Use tf plugin docs#3380
Conversation
|
👋 Hi! Thank you for this contribution! Just to let you know, our GitHub SDK team does a round of issue and PR reviews twice a week, every Monday and Friday! We have a process in place for prioritizing and responding to your input. Because you are a part of this community please feel free to comment, add to, or pick up any issues/PRs that are labeled with |
7288bbb to
7ff5ce8
Compare
Signed-off-by: Steve Hipwell <[email protected]>
7ff5ce8 to
497864c
Compare
| workflow_dispatch: # push: | ||
|
|
There was a problem hiding this comment.
Should this just be removed?
| workflow_dispatch: # push: | |
| workflow_dispatch: |
| GITHUB_OWNER: ${{ (matrix.mode == 'individual' && vars.GH_TEST_LOGIN) || | ||
| (matrix.mode == 'organization' && vars.GH_TEST_ORG_NAME) || '' }} |
There was a problem hiding this comment.
This can be made slightly easier to read with case() https://docs.github.com/en/actions/reference/workflows-and-actions/expressions?versionId=free-pro-team@latest&productId=actions#case
| GITHUB_OWNER: ${{ (matrix.mode == 'individual' && vars.GH_TEST_LOGIN) || | |
| (matrix.mode == 'organization' && vars.GH_TEST_ORG_NAME) || '' }} | |
| GITHUB_OWNER: ${{ case(matrix.mode == 'individual', vars.GH_TEST_LOGIN, matrix.mode == 'organization', vars.GH_TEST_ORG_NAME, '') }} |
| subject-checksums: ./dist/${{ github.event.repository.name }}_${{ | ||
| fromJSON(steps.goreleaser.outputs.metadata).version }}_SHA256SUMS |
There was a problem hiding this comment.
question: Will this line break work?
| Get Actions secrets of the repository environment | ||
| --- | ||
|
|
||
| # github\_actions\_environment\_secrets |
There was a problem hiding this comment.
question: are these \_ escapes relevant? I think they are unnecessary, since not every page has those
| } | ||
| ``` | ||
|
|
||
| ## Argument Reference |
There was a problem hiding this comment.
issue: I see that this is a copy of the existing docs, but would it make sense to us something like .SchemaMarkdown in the template here, to get the missing arguments?
| disable = ["MD013", "MD028"] | ||
|
|
||
| [per-file-ignores] | ||
| ".github/pull_request_template.md" = ["MD041"] |
There was a problem hiding this comment.
suggestion: I would Ignore MD009 as well in the PR template as the empty lines are meaningful in there
| ".github/pull_request_template.md" = ["MD041"] | |
| ".github/pull_request_template.md" = ["MD041", "MD009"] |
| ## Example Usage Security Manager Role | ||
|
|
||
| ```terraform | ||
| locals { | ||
| security_manager_id = one([for x in data.github_organization_roles.all_roles.roles : x.role_id if x.name == "security_manager"]) | ||
| } | ||
|
|
||
| data "github_organization_roles" "all_roles" {} | ||
|
|
||
| resource "github_organization_role_team" "security_managers" { | ||
| role_id = local.security_manager_id | ||
| team_slug = "example-team" | ||
| } | ||
| ``` | ||
|
|
There was a problem hiding this comment.
question: Was this removed on purpose?
| fork = true | ||
| source_owner = "some-org" | ||
| source_repo = "original-repository" | ||
| ```terraform |
There was a problem hiding this comment.
issue: This seems to have been mixed up. The pages example was removed as it's deprecated
| GitHub Repository Custom Property can be imported using an ID made up of a combination of the names of the organization, repository, custom property separated by a `:` character, e.g. | ||
|
|
||
| ``` | ||
| ```hcl |
There was a problem hiding this comment.
AFAIK these are shell and not hcl. This seems to be misaligned in multiple pages
| ```hcl | |
| ```shell |
| ``` | ||
|
|
||
| - You **must** add a `required_providers` block to every module that will create resources with this provider. If you do not explicitly require `integrations/github` in a submodule, your terraform run may [break in hard-to-troubleshoot ways](https://github.com/integrations/terraform-provider-github/issues/876#issuecomment-1303790559). | ||
| - You **must*- add a `required_providers` block to every module that will create resources with this provider. If you do not explicitly require `integrations/github` in a submodule, your terraform run may [break in hard-to-troubleshoot ways](https://github.com/integrations/terraform-provider-github/issues/876#issuecomment-1303790559). |
There was a problem hiding this comment.
| - You **must*- add a `required_providers` block to every module that will create resources with this provider. If you do not explicitly require `integrations/github` in a submodule, your terraform run may [break in hard-to-troubleshoot ways](https://github.com/integrations/terraform-provider-github/issues/876#issuecomment-1303790559). | |
| - You **must** add a `required_providers` block to every module that will create resources with this provider. If you do not explicitly require `integrations/github` in a submodule, your terraform run may [break in hard-to-troubleshoot ways](https://github.com/integrations/terraform-provider-github/issues/876#issuecomment-1303790559). |
Resolves #2924
Resolves #2961
Resolves #2897
Resolves #3241
Closes #2987
Closes #3199
Before the change?
After the change?
tfplugindocsPull request checklist
Does this introduce a breaking change?
Please see our docs on breaking changes to help!