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 update of github release #2350

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

findmyname666
Copy link

@findmyname666 findmyname666 commented Aug 15, 2024

Resolves #2062

This PR fixing update of GitHub release.
Previous code was getting release ID with d.Get("number").(int64).
This resulted in panic because Get("number") returned nil and it couldn't be converted to int64.
I adjusted the code to get release ID correctly.


Before the change?

  • Provider failed to update a release.

After the change?

  • Provider can update a release.

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)

Does this introduce a breaking change?

Please see our docs on breaking changes to help!

  • Yes
  • No

@kfcampbell
Copy link
Member

@findmyname666 do you mind fixing the linting failure so I can merge/release this? Thanks!

@findmyname666
Copy link
Author

findmyname666 commented Aug 26, 2024

@findmyname666 do you mind fixing the linting failure so I can merge/release this? Thanks!

Hi @kfcampbell, I did something. The best solution would be to rewrite this block of code e.g. create a new functions ...

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.

[BUG]: github_release resource creates drift, leading to provider error
3 participants