github-repository-provider 7.24.9 → 7.24.10

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "github-repository-provider",
3
- "version": "7.24.9",
3
+ "version": "7.24.10",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -36,7 +36,7 @@
36
36
  "matching-iterator": "^2.0.0",
37
37
  "node-fetch": "3.1.0",
38
38
  "one-time-execution-method": "^2.0.9",
39
- "repository-provider": "^26.0.3"
39
+ "repository-provider": "^26.1.0"
40
40
  },
41
41
  "devDependencies": {
42
42
  "ava": "^3.15.0",
@@ -64,9 +64,22 @@ export class GithubProvider extends MultiGroupProvider {
64
64
  set: value => value.replace(/\/$/, ""),
65
65
  default: `https://api.${domain}`
66
66
  },
67
+ /*
68
+ domain : {
69
+ type: "string",
70
+ env: ["GH_HOST"],
71
+ default: "github.com"
72
+ },
73
+ */
67
74
  "authentication.token": {
68
75
  type: "string",
69
- env: ["{{instanceIdentifier}}TOKEN", "GH_TOKEN"],
76
+ // @see https://cli.github.com/manual/gh_help_environment
77
+ env: [
78
+ "{{instanceIdentifier}}TOKEN",
79
+ "GH_TOKEN",
80
+ "GITHUB_ENTERPRISE_TOKEN",
81
+ "GH_ENTERPRISE_TOKEN"
82
+ ],
70
83
  additionalAttributes: { "authentication.type": "token" },
71
84
  private: true,
72
85
  mandatory: true
@@ -211,3 +224,11 @@ replaceWithOneTimeExecutionMethod(
211
224
  );
212
225
 
213
226
  export default GithubProvider;
227
+
228
+ /*
229
+ {
230
+ "400" : { repeat: 3, timeout: 100 }
231
+ "401" : { repeat: 0 }
232
+ "500" : { repeat: 3, timeout: 100 }
233
+ }
234
+ */