ipdxco / github-as-code

GitHub Configuration as Code
19 stars 7 forks source link

Efficient labels #105

Open galargh opened 1 year ago

galargh commented 1 year ago

Implement issue labels support efficiently. With https://github.com/integrations/terraform-provider-github/compare/main...galargh:terraform-provider-github:feat/github_issue_labels in place, we can manage all labels for a repository using a single tf resource instead of a resource per label. This greaaaaaaatly reduces the number of GitHub API calls that we'll be doing during plans/syncs/applies.

Testing
galargh commented 1 year ago

I'm putting this back in draft. The changes in the provider need more work. I'll mark it as ready for review after successful testing in pl-strflt org.

Things to look out for:

galargh commented 1 year ago

And it's ready! You can have a look at all the labels being tracked through https://github.com/pl-strflt/github-mgmt/blob/master/github/pl-strflt.yml

We might want to wait a couple of days to see if https://github.com/integrations/terraform-provider-github/pull/1694 makes it into the next gh provider release since they've been very responsive lately.