Skip to content

[FEAT] Add github_repository_pages Resource and Data Source#3168

Merged
stevehipwell merged 30 commits intointegrations:mainfrom
F-Secure-web:add-github_repository_pages-resource
Apr 22, 2026
Merged

[FEAT] Add github_repository_pages Resource and Data Source#3168
stevehipwell merged 30 commits intointegrations:mainfrom
F-Secure-web:add-github_repository_pages-resource

Conversation

@deiga
Copy link
Copy Markdown
Collaborator

@deiga deiga commented Feb 8, 2026

Resolves #3167
Resolves #2671
Resolves #3142
Resolves #1045
Resolves #2653
Resolves #2335
Resolves #2087


Before the change?

  • A repository's Pages resource was only manageable through github_repository

After the change?

  • There is now a github_repository_pages resource to manage the pages
  • There is now a github_repository_pages data source to fetch information about the pages
  • The pages fields are now deprecated in github_repository Resource and Data Source
  • It's possible to configure the public field of github_repository_pages
  • It's possible to configure the https_enforced field of github_repository_pages

Pull request checklist

  • Schema migrations have been created if needed (example)
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been reviewed and added / updated if needed (for bug fixes / features)

Does this introduce a breaking change?

Please see our docs on breaking changes to help!

  • Yes
  • No

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Feb 8, 2026

👋 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 Status: Up for grabs. You & others like you are the reason all of this works! So thank you & happy coding! 🚀

@deiga deiga added this to the v6.12.0 Release milestone Feb 8, 2026
@deiga deiga requested a review from stevehipwell February 12, 2026 11:58
@deiga deiga force-pushed the add-github_repository_pages-resource branch 2 times, most recently from e081a2d to c75d366 Compare February 13, 2026 22:14
Copy link
Copy Markdown
Collaborator

@stevehipwell stevehipwell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is looking really good.

Comment thread github/data_source_github_repository_pages_test.go Outdated
Comment thread github/resource_github_repository_pages.go Outdated
Comment thread github/resource_github_repository_pages.go Outdated
Comment thread github/resource_github_repository_pages_test.go Outdated
Comment thread github/data_source_github_repository_pages.go Outdated
Comment thread github/resource_github_repository_pages.go Outdated
@deiga deiga force-pushed the add-github_repository_pages-resource branch from c75d366 to 91f6484 Compare February 17, 2026 20:09
@deiga deiga requested a review from stevehipwell February 17, 2026 20:10
Comment thread github/data_source_github_repository_pages.go Outdated
Comment thread github/resource_github_repository_pages.go Outdated
@healiha
Copy link
Copy Markdown

healiha commented Feb 19, 2026

Would it be possible to add visibility to github_repository_pages?
image

The documentation doesn't seem to cover this, but after testing, a PUT request to https://api.github.com/repos/<org>/<repo>/pages with {"public": true/false} works.

@deiga
Copy link
Copy Markdown
Collaborator Author

deiga commented Feb 19, 2026

@healiha I'll check that out

@deiga deiga changed the title [FEAT] Add github_repository_pages Reasource and Data Source [FEAT] Add github_repository_pages Resource and Data Source Feb 20, 2026
stevehipwell
stevehipwell previously approved these changes Feb 20, 2026
Copy link
Copy Markdown
Collaborator

@stevehipwell stevehipwell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@stevehipwell
Copy link
Copy Markdown
Collaborator

@deiga could you please rebase this PR?

@deiga deiga force-pushed the add-github_repository_pages-resource branch from 18c8135 to 55b203a Compare February 21, 2026 06:23
@deiga deiga requested a review from stevehipwell February 21, 2026 06:36
Comment thread github/resource_github_repository_pages.go Outdated
Comment thread github/resource_github_repository_pages.go
Comment thread github/resource_github_repository_pages.go Outdated
Comment thread github/resource_github_repository_pages.go Outdated
@deiga deiga force-pushed the add-github_repository_pages-resource branch from 7a1f79f to 56b7d70 Compare February 23, 2026 17:15
@deiga deiga requested a review from stevehipwell February 23, 2026 17:15
Comment thread github/resource_github_repository_pages.go
Comment thread github/resource_github_repository_pages.go
Comment thread github/resource_github_repository_pages.go Outdated
@deiga deiga requested a review from stevehipwell February 24, 2026 19:09
deiga added 25 commits April 22, 2026 23:02
Signed-off-by: Timo Sand <[email protected]>
Signed-off-by: Timo Sand <[email protected]>
Signed-off-by: Timo Sand <[email protected]>
Signed-off-by: Timo Sand <[email protected]>
Signed-off-by: Timo Sand <[email protected]>
Signed-off-by: Timo Sand <[email protected]>
Signed-off-by: Timo Sand <[email protected]>
Signed-off-by: Timo Sand <[email protected]>
Signed-off-by: Timo Sand <[email protected]>
@deiga deiga force-pushed the add-github_repository_pages-resource branch from 8d9462e to 1babab0 Compare April 22, 2026 20:02
@stevehipwell
Copy link
Copy Markdown
Collaborator

LGTM

@stevehipwell stevehipwell merged commit 18178b1 into integrations:main Apr 22, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment