Skip to content

Commit

Permalink
Undo unintentional linting
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgeazevedo committed Sep 14, 2023
1 parent d55807f commit 8a717c0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions script/make-release.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ const fetch = require('node-fetch')

const BASE_URL = 'https://api.github.com/repos/guardian/editions'

const tagNameFromSha = (sha) => sha.slice(0, 8)
const tagNameFromSha = sha => sha.slice(0, 8)

const headers = {
'Content-Type': 'application/json',
Authorization: `token ${process.env.REPO_GITHUB_TOKEN}`,
}

const doFetch = async (url, params) => {
const resp = await fetch(url, params).catch((e) => {
const resp = await fetch(url, params).catch(e => {
console.error(`request to ${url} failed`, e), process.exit(1)
})
if (resp.status >= 200 && resp.status < 300) {
Expand All @@ -23,7 +23,7 @@ const doFetch = async (url, params) => {
}
}

const get = async (path) => {
const get = async path => {
return doFetch(`${BASE_URL}/${path}`, { headers: headers })
}

Expand All @@ -44,12 +44,12 @@ const patch = async (path, body) => {
}

const findReleaseForCommit = (commit, releases) => {
return releases.find((r) => r.tag_name == tagNameFromSha(commit))
return releases.find(r => r.tag_name == tagNameFromSha(commit))
}

const makeReleaseName = (name, os, appStoreId) => `${name}--${os}:${appStoreId}`

const cleanBranch = (branch) => branch.replace('refs/heads/', '')
const cleanBranch = branch => branch.replace('refs/heads/', '')

const updateRelease = async (commitSha, branch, appStoreId, os, track) => {
console.log(
Expand Down

0 comments on commit 8a717c0

Please sign in to comment.