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

[FEAT]: github_repository_file should support automatic branch creation if the ref does not exist #2101

Open
1 task done
wparr-circle opened this issue Jan 15, 2024 · 1 comment · May be fixed by #2100
Open
1 task done
Labels
Status: Up for grabs Issues that are ready to be worked on by anyone Type: Feature New feature or request

Comments

@wparr-circle
Copy link

wparr-circle commented Jan 15, 2024

Describe the need

The resource github_repository_file does not currently support automatic branch creation. For example, a potential use case is rather than directly writing changes to a long lived branch such as master/main writing to a short lived ephemeral branch to ultimately be reviewed and merged via a pull request.
It's not possible to do this gracefully without supporting automatic branch creation given if we leveraged the github_branch resource, terraform would continue to recreate the branch after it's deleted in Github (either on deletion of stale branches, or immediate deletion of the branch following a merged pull request).

SDK Version

No response

API Version

No response

Relevant log output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@wparr-circle wparr-circle added Status: Triage This is being looked at and prioritized Type: Feature New feature or request labels Jan 15, 2024
@wparr-circle wparr-circle changed the title [FEAT]: Github Repository File should support automatic branch creation if the ref does not exist [FEAT]: github_repository_file should support automatic branch creation if the ref does not exist Jan 15, 2024
@nickfloyd nickfloyd added Status: Up for grabs Issues that are ready to be worked on by anyone and removed Status: Triage This is being looked at and prioritized labels Jan 19, 2024
@nickfloyd
Copy link
Contributor

Hey @wparr-circle thanks for letting us know about this need! ❤️ Let us know if you'd be interested coming up with a way to address it and then submitting a PR to be reviewed. For now I have labeled this as "Up For Grabs" so that the community knows that it's available as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Up for grabs Issues that are ready to be worked on by anyone Type: Feature New feature or request
Projects
None yet
2 participants