You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/en/docs/apidocs-mxsdk/apidocs/studio-pro-11/extensibility-api/web/web-extensions-howtos/version-control-api.md
+10-9Lines changed: 10 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,20 +10,25 @@ This how-to describes how to display version control information in Studio Pro.
10
10
11
11
## Prerequisites
12
12
13
-
This how-to uses the results of [Get Started with the Web Extensibility API](/apidocs-mxsdk/apidocs/web-extensibility-api-11/getting-started/). Complete that how-to before starting this one. You should also be familiar with creating menus as described in [Create a Menu Using Web API](/apidocs-mxsdk/apidocs/web-extensibility-api-11/menu-api/).
13
+
Before starting this how-to, make sure you have completed the following prerequisites:
14
+
15
+
* This how-to uses the results of [Get Started with the Web Extensibility API](/apidocs-mxsdk/apidocs/web-extensibility-api-11/getting-started/). Complete that how-to before starting this one.
16
+
* Make sure you are familiar with creating menus, as described in [Create a Menu Using Web API](/apidocs-mxsdk/apidocs/web-extensibility-api-11/menu-api/).
14
17
15
18
## Showing Version Control Information
16
19
17
-
The extension creates a menu item labeled**Current version control system**. When the menu is activated, it fetches version control details (system type, branch, last commit) and displays them in a message box.
20
+
The extension creates a menu item named**Current version control system**. When the menu is activated, it fetches version control details (system type, branch, last commit) and displays them in a message box.
18
21
19
22
### Set Up the Extension Structure
23
+
20
24
In the example below, you create one menu item that will show version control details in a message box.
21
25
22
26
It performs the following actions:
23
-
1. Creates a menu item labeled "Current version control system"
27
+
28
+
1. Creates a menu item named **Current version control system**
24
29
2. Listens for when the menu item is clicked
25
-
3. When clicked, retrieves the version control information which includes:
26
-
* The type of version control system (like Git)
30
+
3. When clicked, it retrieves the version control information which includes:
31
+
* The type of version control system (for example, Git)
27
32
* Current branch name
28
33
* Last commit details (SHA, author, message, and date)
You have seen how to add a menu in Studio Pro that shows version control details for your app, making it easy for users to see the branch and head commit information.
83
-
84
85
## Extensibility Feedback
85
86
86
87
If you would like to provide us with additional feedback, you can complete a small [survey](https://survey.alchemer.eu/s3/90801191/Extensibility-Feedback).
0 commit comments