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

node: Updated governor token list update script #3588

Merged
merged 2 commits into from
Dec 13, 2023
Merged

Conversation

djb15
Copy link
Collaborator

@djb15 djb15 commented Dec 8, 2023

This PR is part 1 of improving the governor token list update process to increase automation and visibility.

Specifically, this PR concerns the changes to the existing update script that find any new token additions or token removals, and any significant decreases in token price. The generated tokens list that is generated by this script is unchanged. However the script now also outputs a changes.txt file with a summary. This is the file that is used in the GitHub PR body.

See #3587 for an example of what the PR body will look like. If there's anything about the body you'd like to change then please suggest on this PR.

This PR is accompanied by part 2 (djb15#4) which runs the automation. This is contained in a downstream fork so that we don't have to grant GitHub Action runners significant write permissions; unfortunately GH permissions are not very granular so write access for PRs means write access to the whole repository. By running the automation in a fork we can easily move the action to another org-owned fork or even upstream in the future.

@djb15 djb15 marked this pull request as ready for review December 8, 2023 22:05
bruce-riley
bruce-riley previously approved these changes Dec 11, 2023
Copy link
Contributor

@bruce-riley bruce-riley left a comment

Choose a reason for hiding this comment

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

This will be very helpful. Thanks!

panoel
panoel previously approved these changes Dec 11, 2023
SEJeff
SEJeff previously approved these changes Dec 12, 2023
node/hack/governor/src/index.ts Show resolved Hide resolved
node/hack/governor/src/index.ts Show resolved Hide resolved
node/hack/governor/src/index.ts Show resolved Hide resolved
Copy link
Collaborator

@SEJeff SEJeff left a comment

Choose a reason for hiding this comment

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

Really nice work! This is great.

@djb15 djb15 merged commit 80f5b75 into main Dec 13, 2023
21 of 22 checks passed
@djb15 djb15 deleted the node/governor-token-list branch December 13, 2023 16:08
djb15 added a commit to djb15/wormhole that referenced this pull request Dec 14, 2023
…3588)

* node: Updated governor token list update script

* node: Improved logging + PR comments
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.

4 participants