Skip to content

Commit

Permalink
Meta: check IPR form script: use a long SHA
Browse files Browse the repository at this point in the history
local git‘s short SHA was shorter than github‘s short SHA, breaking the API call
  • Loading branch information
ljharb committed Jul 2, 2024
1 parent 3a2efec commit e3692a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/check-form.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ if (typeof all !== 'undefined' && all !== '--all') {
throw '`all` arg, if provided, must be `--all`'
}

const sha = String(execSync(`git rev-parse --short ${branch}`)).trim();
const sha = String(execSync(`git rev-parse ${branch}`)).trim();

const request = async (url, method = 'GET', postData) => {
// adapted from https://medium.com/@gevorggalstyan/how-to-promisify-node-js-http-https-requests-76a5a58ed90c
Expand Down

0 comments on commit e3692a9

Please sign in to comment.