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

Add smart updateContentCommand execution #29

Open
1 of 3 tasks
nomicode opened this issue Dec 9, 2022 · 1 comment
Open
1 of 3 tasks

Add smart updateContentCommand execution #29

nomicode opened this issue Dec 9, 2022 · 1 comment

Comments

@nomicode
Copy link
Owner

nomicode commented Dec 9, 2022

Currently, the only command we run is trunk upgrade, but we plan to expand this in the future (probably with a dedicated shell script to collect the additional commands).

However, we want to avoid running trunk upgrade unless a repository is actually using Trunk. The same will be true for Sourcery.

For the GitHub CLI, logging in should be opt-in per repository.

For Trunk and Sourcery, we should test for the presence of associated configuration files. And for GitHub, we could test for a presence of Codespace secret.

--

Tasks:

  • Only initialize Trunk if a Trunk config exists
  • Only initialize Sourcery if a Sourcery config exists
  • Only log in to GitHub if a specific Codespace secret is set in the environment
@nomicode
Copy link
Owner Author

nomicode commented Dec 9, 2022

Trunk behavior is addressed by:

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

No branches or pull requests

1 participant