-
Notifications
You must be signed in to change notification settings - Fork 765
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
Add Project Card Support #460
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice! just a couple comments for review
Update: resourceGithubProjectCardUpdate, | ||
Delete: resourceGithubProjectCardDelete, | ||
Importer: &schema.ResourceImporter{ | ||
State: schema.ImportStatePassthrough, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we'll need a custom import fn to set the card_id
Note: updatedNote, | ||
}), | ||
), | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks @jcudit! just added some comments addressing the import behavior. lmk what you think as well
} | ||
|
||
d.Set("note", card.GetNote()) | ||
d.Set("column_id", columnID) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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