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

fix(resource_github_branch): creating branch and repo with gitignore doesn't 422 [1284] #1679

Merged
merged 4 commits into from
May 15, 2023

Conversation

nikwotton
Copy link
Contributor

@nikwotton nikwotton commented May 12, 2023

Resolves #1284


Behavior

Before the change?

When creating a github_repository containing a gitignore_template and a github_branch named main, a 422 is returned and terraform fails to apply.

After the change?

The above scenario creates the requested resources successfully


Additional info

Pull request checklist

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been reviewed and added / updated if needed (for bug fixes / features)
  • Added the appropriate label for the given change

Does this introduce a breaking change?

  • Yes (Please add the Type: Breaking change label)
  • No

If Yes, what's the impact:

  • N/A

Pull request type

Please add the corresponding label for change this PR introduces:

  • Bugfix: Type: Bug
  • Feature/model/API additions: Type: Feature
  • Updates to docs or samples: Type: Documentation
  • Dependencies/code cleanup: Type: Maintenance

@nickfloyd nickfloyd added the Type: Bug Something isn't working as documented label May 12, 2023
Copy link
Member

@kfcampbell kfcampbell left a comment

Choose a reason for hiding this comment

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

The branch resource tests are broken, though this doesn't introduce any new issues. Thank you for contributing!

@kfcampbell kfcampbell merged commit ffc0970 into integrations:main May 15, 2023
3 checks passed
avidspartan1 pushed a commit to avidspartan1/terraform-provider-github that referenced this pull request Feb 5, 2024
…doesn't 422 [1284] (integrations#1679)

Co-authored-by: Nick Floyd <139819+nickfloyd@users.noreply.github.com>
Co-authored-by: Keegan Campbell <me@kfcampbell.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Something isn't working as documented
Projects
None yet
Development

Successfully merging this pull request may close these issues.

422 when creating repository and branch
3 participants