Skip to content

[MAINT] Convert legacy Schema Migrations to use StateUpgraders - #3018

Closed
deiga wants to merge 7 commits into
integrations:refactor-integration-testsfrom
F-Secure-web:upgrade-state-migrations
Closed

deiga wants to merge 7 commits into
integrations:refactor-integration-testsfrom
F-Secure-web:upgrade-state-migrations

Conversation

@deiga

@deiga deiga commented Dec 25, 2025 •

Copy link
Copy Markdown
Collaborator

Note

This PR is stacked on top of #3020
Review and merge that first

  • Convert resourceGithubActionsOrganizationSecret to use StateUpgraders for schema migrations
  • Convert resourceGithubActionsSecret to use StateUpgraders for schema migrations
  • Convert resourceGithubRepositoryWebhook and resourceGithubOrganizationWebhook schema migrations to use StateUpgraders
  • Convert resourceGithubRepository schema migration to use StateUpgraders

Before the change?

  • Schema Migrations used MigrateState which is from 0.11 of the SDK
  • Converted resources:
    • github_actions_organization_secret
    • github_actions_secret
    • github_repository_webhook
    • github_repository

After the change?

  • Schema Migrations use StateUpgraders which is the default since 0.12 of the SDK

Pull request checklist

  • Schema migrations have been created if needed (example)
  • 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

@deiga
deiga marked this pull request as ready for review December 25, 2025 21:56
@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! 🚀

Timo Sand added 6 commits December 26, 2025 00:29
- Renamed TESTARGS to COVERAGEARGS for clarity.
- Added variable references and examples for test-specific variables.
- Improved test and acceptance test commands to include branch information and coverage options.

Signed-off-by: Timo Sand <[email protected]>
…ers` for schema migrations

Signed-off-by: Timo Sand <[email protected]>
…tionWebhook` schema migrations to use StateUpgraders

Signed-off-by: Timo Sand <[email protected]>
@deiga
deiga force-pushed the upgrade-state-migrations branch from a8a425c to 6f218b9 Compare December 25, 2025 22:47
@stevehipwell
stevehipwell force-pushed the refactor-integration-tests branch 6 times, most recently from 241055a to 581b507 Compare January 6, 2026 20:01
@stevehipwell
stevehipwell deleted the branch integrations:refactor-integration-tests January 6, 2026 20:07
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.

2 participants