@noldova/git.github.protocol 0.0.12 → 0.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -3
- package/src/api/index.d.ts +14 -5
- package/src/models/github-names.js +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@noldova/git.github.protocol",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.13",
|
|
4
4
|
"description": "What the GitHub module's parts share: GitHubNames, the module's id, method, event, tool and service names, and the IGitHubAccess service through which another module reads the signed-in token as a GitHubAccessGrant, or why not as a GitHubAccessRefusal.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"registry": "https://registry.npmjs.org/"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@noldova/git.hosting.protocol": "0.0.
|
|
33
|
+
"@noldova/git.hosting.protocol": "0.0.13"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "276c37d29b087e7fca36751e2569000ea90ad44a"
|
|
36
36
|
}
|
package/src/api/index.d.ts
CHANGED
|
@@ -84,8 +84,8 @@ export declare class GitHubNames {
|
|
|
84
84
|
|
|
85
85
|
/**
|
|
86
86
|
* `git-github.readAuthorAvatar`: takes an `AuthorQuery` as JSON and answers the author's GitHub picture as `HostAvatar` JSON: for a GitHub
|
|
87
|
-
* no-reply email, the account it names, and signed in, the account GitHub links to the commit;
|
|
88
|
-
*
|
|
87
|
+
* no-reply email, the account it names, and signed in, the account GitHub links to the commit; for a repository on a GitHub Enterprise
|
|
88
|
+
* server, signed in there, the account that server links to the commit, read from that server; else none.
|
|
89
89
|
*/
|
|
90
90
|
public static readonly readAuthorAvatarMethod: string;
|
|
91
91
|
|
|
@@ -105,12 +105,21 @@ export declare class GitHubNames {
|
|
|
105
105
|
public static readonly readReviewRequestsMethod: string;
|
|
106
106
|
|
|
107
107
|
/**
|
|
108
|
-
* `git-github.readRepositories`: takes
|
|
109
|
-
* through its organizations, on the host it signed in to, as `HostRepositoryList` JSON, the most recently pushed first: at most 300, with
|
|
110
|
-
* `hasMore` when GitHub may have more.
|
|
108
|
+
* `git-github.readRepositories`: takes a `RepositoryListQuery` as JSON and answers the repositories that account owns, collaborates on or
|
|
109
|
+
* reaches through its organizations, on the host it signed in to, as `HostRepositoryList` JSON, the most recently pushed first: at most 300, with
|
|
110
|
+
* `hasMore` when GitHub may have more. The module reuses its answer for a minute; a fresh query asks GitHub again, which confirms or replaces
|
|
111
|
+
* it. For an account that isn't signed in, the signed-out list, having asked the host nothing.
|
|
111
112
|
*/
|
|
112
113
|
public static readonly readRepositoriesMethod: string;
|
|
113
114
|
|
|
115
|
+
/**
|
|
116
|
+
* `git-github.searchRepositories`: takes a `RepositorySearch` as JSON and answers the repositories that account can clone, as
|
|
117
|
+
* `readRepositoriesMethod` lists them, whose name holds the search's text, ignoring case, as `HostRepositoryList` JSON: it reads up to 1,000 of
|
|
118
|
+
* them, most recently pushed first, and answers at most 300 matches, with `hasMore` when it stopped before the account's last. For an account
|
|
119
|
+
* that isn't signed in, the signed-out list, having asked the host nothing.
|
|
120
|
+
*/
|
|
121
|
+
public static readonly searchRepositoriesMethod: string;
|
|
122
|
+
|
|
114
123
|
/**
|
|
115
124
|
* `git-github.readCommitComments`: takes a `CommitQuery` as JSON and answers the review comments on that commit as `HostCommitComments` JSON: the
|
|
116
125
|
* commit's own comments and, in the pull request that brought it in, chosen as `readCommitPullRequest` chooses it, the review comments made on it,
|
|
@@ -21,6 +21,7 @@ export class GitHubNames {
|
|
|
21
21
|
static readPullRequestsMethod = HostingNames.nameOf(GitHubNames.moduleId, HostingNames.readPullRequestsMethod);
|
|
22
22
|
static readReviewRequestsMethod = HostingNames.nameOf(GitHubNames.moduleId, HostingNames.readReviewRequestsMethod);
|
|
23
23
|
static readRepositoriesMethod = HostingNames.nameOf(GitHubNames.moduleId, HostingNames.readRepositoriesMethod);
|
|
24
|
+
static searchRepositoriesMethod = HostingNames.nameOf(GitHubNames.moduleId, HostingNames.searchRepositoriesMethod);
|
|
24
25
|
static readCommitCommentsMethod = HostingNames.nameOf(GitHubNames.moduleId, HostingNames.readCommitCommentsMethod);
|
|
25
26
|
static readPullRequestMethod = HostingNames.nameOf(GitHubNames.moduleId, HostingNames.readPullRequestMethod);
|
|
26
27
|
static readPullRequestThreadsMethod = HostingNames.nameOf(GitHubNames.moduleId, HostingNames.readPullRequestThreadsMethod);
|