Skip to content

Conversation

@pmartindev
Copy link
Collaborator

Resolves #353


Before the change?

  • Current behavior does not allow changing the repository setting to allow/disallow forking.

After the change?

  • Repositories can now (optionally) be set to allow forking. This only applies to private and internally owned repositories. This setting cannot be changed on publicly owned repositories as public repositories can always be forked.

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

- Add allow_forking schema field (optional, no default)
- Implement conditional logic to only set allow_forking for non-public repos
- Add conditional read to only store allow_forking in state for non-public repos
- Add comprehensive acceptance tests with skipUnlessMode helper
- Update existing repository tests to include allow_forking

Fixes integrations#353
Copy link
Contributor

@pascal-hofmann pascal-hofmann left a comment

Choose a reason for hiding this comment

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

Doc updates are missing. Is this intentional?

@pmartindev pmartindev marked this pull request as draft November 12, 2025 15:58
@pmartindev
Copy link
Collaborator Author

Hey @pascal-hofmann no they haven't been. I will update those! I also wasn't sure if this conflicts with the changes you introduced in your PR. How should we incorporate those?

@pascal-hofmann
Copy link
Contributor

Hi @pmartindev,
I cherry-picked your commit onto my branch and changed the datasource logic similar to your resource changes.

Can you have a look at #1649?

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.

Support modifying Allow forking option for resource_github_repository

2 participants