Skip to content
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

Open PRs on known SDKs when the vectors change #88

Merged
merged 3 commits into from
Dec 21, 2023
Merged

Conversation

finn-block
Copy link
Contributor

@finn-block finn-block commented Dec 20, 2023

This will cause github actions to open PRs on web5-kt and web5-js when the vectors are updated in this repo. The PRs look like this.

@finn-block finn-block force-pushed the test-vector-sync branch 3 times, most recently from b88d519 to eab9104 Compare December 21, 2023 00:41
@finn-block finn-block marked this pull request as ready for review December 21, 2023 00:42
reports/github.go Outdated Show resolved Hide resolved
reports/sdks.go Outdated Show resolved Hide resolved
reports/sdks.go Outdated Show resolved Hide resolved
reports/sync.go Outdated Show resolved Hide resolved
reports/sync.go Outdated Show resolved Hide resolved
Copy link
Member

@decentralgabe decentralgabe left a comment

Choose a reason for hiding this comment

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

impressive stuff! mostly go nits. going to trust that you've tested this

@finn-block
Copy link
Contributor Author

All of this has been manually tested. I did not write unit tests for this.

reports/sync.go Outdated Show resolved Hide resolved
reports/sync.go Outdated
// these should be consts but the library expects a pointer to a string, which cannot be done with a const
var (
vectorUpdatePRTitle = "update test vectors"
vectorUpdatePRBody = "some test vectors were changed or added to the sdk-development repo, so they need to be updated in this repo"
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
vectorUpdatePRBody = "some test vectors were changed or added to the sdk-development repo, so they need to be updated in this repo"
vectorUpdatePRBody = "Some test vectors were changed or added to the sdk-development repo, so they need to be updated in this repo. This is an automated PR that keeps the test vectors in sync from the main test-vectors location: https://github.com/TBD54566975/sdk-development/tree/main/web5-test-vectors"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I modified this slightly to make use of markdown links. Sample here.

Copy link
Contributor

@nitro-neal nitro-neal left a comment

Choose a reason for hiding this comment

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

awesome

@finn-block finn-block merged commit a875625 into main Dec 21, 2023
5 checks passed
@finn-block finn-block deleted the test-vector-sync branch December 21, 2023 19:47
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.

3 participants