Skip to content

Commit

Permalink
show master for flashing
Browse files Browse the repository at this point in the history
  • Loading branch information
bkleiner committed Oct 22, 2023
1 parent b5aa39a commit 8e4b48b
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions src/store/util/github.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,21 +120,19 @@ class Github {
const octokit = await this.kit();
const resp = await octokit.rest.repos.listBranches(FIRMWARE_REPO);

const promises = resp.data
.filter((b) => b.name != "master")
.map((b) => {
return Promise.all([
this.fetchArtifacts(b.name),
this.fetchVersion(b.name),
]).then(([artifacts, version]) => {
return {
name: b.name,
commit: b.commit.sha,
version,
artifacts,
};
});
const promises = resp.data.map((b) => {
return Promise.all([
this.fetchArtifacts(b.name),
this.fetchVersion(b.name),
]).then(([artifacts, version]) => {
return {
name: b.name,
commit: b.commit.sha,
version,
artifacts,
};
});
});

const branches = {};
for (const b of await Promise.all(promises)) {
Expand Down

0 comments on commit 8e4b48b

Please sign in to comment.