Skip to content

refactor: migrate resource_github_issue_label to context-aware CRUD a…#3342

Open
slymanmrcan wants to merge 1 commit intointegrations:mainfrom
slymanmrcan:refactor/migrate-resource-github-issue-label-to-tflog-and-context
Open

refactor: migrate resource_github_issue_label to context-aware CRUD a…#3342
slymanmrcan wants to merge 1 commit intointegrations:mainfrom
slymanmrcan:refactor/migrate-resource-github-issue-label-to-tflog-and-context

Conversation

@slymanmrcan
Copy link
Copy Markdown

@slymanmrcan slymanmrcan commented Apr 17, 2026

Addresses parts of #3070
Addresses parts of #2996


Before the change?

  • resource_github_issue_label uses legacy Create/Read/Update/Delete
    schema functions and log.Printf for logging.

After the change?

  • Migrated to CreateContext/ReadContext/UpdateContext/DeleteContext
  • Function signatures updated to (ctx context.Context, d *schema.ResourceData, meta any) diag.Diagnostics
  • Replaced log.Printf with tflog.Info for structured logging
  • Removed manual context.Background() calls
  • Wrapped error returns with diag.FromErr()

Pull request checklist

  • Schema migrations have been created if needed — N/A, no schema change
  • Tests for the changes have been added — N/A, no behavior change
  • Docs have been reviewed and added / updated if needed — N/A

Does this introduce a breaking change?

  • No

@github-actions
Copy link
Copy Markdown

👋 Hi! Thank you for this contribution! Just to let you know, our GitHub SDK team does a round of issue and PR reviews twice a week, every Monday and Friday! We have a process in place for prioritizing and responding to your input. Because you are a part of this community please feel free to comment, add to, or pick up any issues/PRs that are labeled with Status: Up for grabs. You & others like you are the reason all of this works! So thank you & happy coding! 🚀

@deiga
Copy link
Copy Markdown
Collaborator

deiga commented Apr 18, 2026

Please remove the resolves comment, since it adresses the issue only partly. And "resolves" will close the issue

Copy link
Copy Markdown
Collaborator

@deiga deiga left a comment

Choose a reason for hiding this comment

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

LGTM!

Thanks for the contribution!

@deiga deiga added this to the v6.13.0 Release milestone Apr 18, 2026
@deiga deiga added the Type: Maintenance Any dependency, housekeeping, and clean up Issue or PR label Apr 18, 2026
@slymanmrcan
Copy link
Copy Markdown
Author

I just removed it from the description

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Type: Maintenance Any dependency, housekeeping, and clean up Issue or PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants