Repository navigation
Build and watch script - #15
Closed
probablycorey wants to merge 1 commit into
Closed
probablycorey wants to merge 1 commit into
probablycorey wants to merge 1 commit into
Conversation
Contributor
This is not a bad idea. Git supports this. Have you tried GH_REPO? https://github.com/github/gh-cli/blob/3a80cd10214700ced12ba8c8ac67868303f1b7aa/command/pr.go#L632-L642 It allows you to run gh commands against an arbitrary repository. It doesn't even have to be cloned. The problem is that the active branch (used by some commands) will still be taken from the current repository. |
Contributor
Author
Oh neat! That might good enough for now. I'm going to close this out. |
vilmibm
pushed a commit
that referenced
this pull request
Jun 29, 2021
made branch and line flags, fixed path
mislav
pushed a commit
that referenced
this pull request
Sep 28, 2021
Add OpenTelemetry instrumentation
Stonre
pushed a commit
to Stonre/strands-fork
that referenced
this pull request
Jul 21, 2025
To match the GitHub repository title
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I've been annoyed with how tedious it is to build and test this app against real repos.
Option 1: One solution is to add a
-Ccommand that will run the commands against a specific directory. Then you can rungo run . -C some-dirto test the app.Option 2: My other idea was to have a
build-and-watchscript that would watch for changes and then build the app. Then I symlinked the binary to~/bin/and then I could runghwherever I wanted.This PR builds option 2.
Now run
script/build-and-watchEvery time you change your code it will recompile.ghwith a command that says there was a build failure.ghready to use!But as I am writing this up I think option 2 might be a better idea. I'm still opening a draft PR so we have something to talk about.