Skip to content

Commit dec7c65

Browse files
authored
Merge pull request #1 from gevorg95/master
Mirroring now supported, xml -> udl, update readme
2 parents 691d126 + ed1e86d commit dec7c65

File tree

7 files changed

+429
-339
lines changed

7 files changed

+429
-339
lines changed

GitHub/API.cls.xml

Lines changed: 0 additions & 248 deletions
This file was deleted.

GitHub/Utils.cls.xml

Lines changed: 0 additions & 29 deletions
This file was deleted.

GitHub/Workflows.cls.xml

Lines changed: 0 additions & 60 deletions
This file was deleted.

README.md

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# GitHubAPI
2-
Github API for InterSystems Caché
2+
Github API for InterSystems Data Platforms
33

44
## Installation
55

6-
Import xmls into any namespace and compile.
6+
Import into any namespace and compile.
77

88
## Usage
99

@@ -19,5 +19,34 @@ All availible API calls are listed in class documentation of `GitHub.API` class.
1919

2020
Some workflows to automate work with GitHub are availible in `GitHub.Workflows` class.
2121

22+
### Mirroring
23+
24+
1. Create repos.json file:
25+
26+
```
27+
{
28+
"from": "intersystems-ru", // owners: user or organization
29+
"to": "intersystems-community",
30+
"org": 1, // 1: if you want to mirror in organization owner. 0: if user owner
31+
"repos": [ // just repos name f.e. 'GitHubAPI'
32+
"repo1",
33+
"repo2",
34+
"..."
35+
]
36+
}
37+
```
38+
39+
2. Set repos.json location in param name, class `GitHub.API`. `Parameter Directory = "C:/temp/mirror/"`
40+
3. `Set api = ##class(GitHub.API).%New("user","pass")`
41+
4. `Do api.Mirror()`
42+
43+
#### Task
44+
45+
Create task:
46+
- Task Type = `RunLegacyTask`
47+
- ExecuteCode = `Do ##class(GitHub.API).UpdateMirrors()`
48+
- Choose the right time to start the task
49+
50+
2251
## Some API method I want is not availible. What do I do?
2352
Everyone is welcome to add methods or wokflows via pull requests.

0 commit comments

Comments
 (0)