Conversation
anGie44
left a comment
There was a problem hiding this comment.
nice! just a couple comments for review
| Update: resourceGithubProjectCardUpdate, | ||
| Delete: resourceGithubProjectCardDelete, | ||
| Importer: &schema.ResourceImporter{ | ||
| State: schema.ImportStatePassthrough, |
There was a problem hiding this comment.
we'll need a custom import fn to set the card_id
| Note: updatedNote, | ||
| }), | ||
| ), | ||
| }, |
There was a problem hiding this comment.
we'll need an ImportStep here to verify but I believe the resource's Importer func will need an update as well
|
The following acceptance test failure was introduced: Not sure if this is a good candidate for |
|
@anGie44 this is ready for review again after addressing your feedback. I ended up using |
| } | ||
|
|
||
| d.Set("note", card.GetNote()) | ||
| d.Set("column_id", columnID) |
There was a problem hiding this comment.
looks like this assignment is where the import step is failing b/c here columnID is an int64 while the schema is expecting a String so the field doesn't get populated.if you pass the string from L96, it should work as expected
anGie44
left a comment
There was a problem hiding this comment.
LGTM 🚀
Output of acceptance test:
--- PASS: TestAccGithubProjectCard_basic (15.18s)
ed25d6b to
f0bf351
Compare
f0bf351 to
7586306
Compare
|
Rebased this and added passing tests. |
Fixes https://github.com/terraform-providers/terraform-provider-github/issues/433