[Question] Documentation or Examples on Custom Actions #1479
Replies: 11 comments
-
Beta Was this translation helpful? Give feedback.
-
I configured two
Format the codes via
Build & publish this project to |
Beta Was this translation helpful? Give feedback.
-
Custom Actions can be created either in the global Preferences or just for a single repo (in the Repository Configure dialog). A Custom Action can be setup for one of 3 different scopes:
NOTE: The configured action-command is started in the repository root-folder (i.e |
Beta Was this translation helpful? Give feedback.
-
TIP: For interaction with remote GH-repos, GitHub CLI can be used from Custom Actions. When contributing to SourceGit I use the following Custom Action, for quickly syncing my fork-repo (remote This basically does "Fast-forward origin/develop to upstream/develop". |
Beta Was this translation helpful? Give feedback.
-
FYI, as a spin-off from feature-request #1457, a new Available types of Input Controls are |
Beta Was this translation helpful? Give feedback.
-
Additionally, a new |
Beta Was this translation helpful? Give feedback.
-
Maybe a new Discussion could be started, where we can post ideas / scripts etc for useful Custom Actions? |
Beta Was this translation helpful? Give feedback.
-
@love-linger @goran-w Many thanks for your comments. I am trying to do a pull request from the command line but I'm having issues. At this moment I am not going to post it because I have to put in more effort (or dedicate more time) before I can ask something coherent. |
Beta Was this translation helpful? Give feedback.
-
FYI, in #1466 there was added support for using the above mentioned scope-variables ( Another tip not mentioned above (or documented anywhere?) : if your Custom Action is calling a script (for example a Git Bash script, as illustrated below), you can make SourceGit display an error/warning popup by doing BOTH of these things:
NOTE: Text that your script outputs to stdout (via Here's how to use Git Bash (on Windows) as the scripting engine (here using an absolute path to the bash executable, this could perhaps be improved) : TIP: Text/filepath arguments could contain spaces, so it's a very good idea to enclose these in quotes... |
Beta Was this translation helpful? Give feedback.
-
@love-linger Maybe you (as maintainer) could simply use Convert Issue to Discussion on this issue, so it can be removed from the list of open Issues? |
Beta Was this translation helpful? Give feedback.
-
NOTE: In #1482 there was added support for a new Custom Action Input Control type: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
I am looking for detailed documentation or examples on how to use
custom actions
in SourceGit. Specifically, I need guidance on the following areas:Additional Information
Context
I am working on a project where I need to extend SourceGit's functionality by adding custom actions. However, I have not found sufficient documentation or examples to guide me through the process.
Any help or pointers to relevant resources would be greatly appreciated!
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions