github-repository-provider 7.26.10 → 7.26.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "github-repository-provider",
3
- "version": "7.26.10",
3
+ "version": "7.26.13",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -30,19 +30,19 @@
30
30
  "lint:docs": "documentation lint ./src/**/*.mjs"
31
31
  },
32
32
  "dependencies": {
33
- "content-entry": "^4.1.9",
33
+ "content-entry": "^5.0.0",
34
34
  "fetch-link-util": "^1.0.8",
35
- "fetch-rate-limit-util": "^2.6.4",
35
+ "fetch-rate-limit-util": "^2.8.1",
36
36
  "matching-iterator": "^2.0.4",
37
37
  "node-fetch": "^3.2.3",
38
38
  "one-time-execution-method": "^2.0.13",
39
- "repository-provider": "^28.0.0"
39
+ "repository-provider": "^28.1.1"
40
40
  },
41
41
  "devDependencies": {
42
42
  "ava": "^4.2.0",
43
- "c8": "^7.11.0",
43
+ "c8": "^7.11.2",
44
44
  "documentation": "^13.2.5",
45
- "repository-provider-test-support": "^2.0.2",
45
+ "repository-provider-test-support": "^2.1.2",
46
46
  "semantic-release": "^19.0.2"
47
47
  },
48
48
  "engines": {
@@ -105,7 +105,7 @@ export class GithubProvider extends MultiGroupProvider {
105
105
  },
106
106
  responseHandler,
107
107
  undefined,
108
- (url, ...args) => this.info(url.toString(), ...args)
108
+ (url, ...args) => this.trace(url.toString(), ...args)
109
109
  );
110
110
  }
111
111
 
@@ -156,6 +156,20 @@ export class GithubRepository extends Repository {
156
156
  return sha;
157
157
  }
158
158
 
159
+ async branch(name) {
160
+ // TODO maybe default ?
161
+ if(name === this.defaultBranchName) {
162
+ const branch = this._branches.get(name);
163
+ if(branch) {
164
+ return branch;
165
+ }
166
+
167
+ return this.addBranch(name);
168
+ }
169
+
170
+ return super.branch(name);
171
+ }
172
+
159
173
  async createBranch(name, from, options) {
160
174
  const branch = this._branches.get(name);
161
175
  if (branch) {