Fix up lint errors under react-native-github (#33622)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/33622

Changelog: [Internal] Clean up eslint errors

Reviewed By: yungsters

Differential Revision: D35599445

fbshipit-source-id: bbb9061a3cf9df32daacad9a9b44eba94d3ce48c
This commit is contained in:
Luna Wei
2022-04-22 16:25:25 -07:00
committed by Facebook GitHub Bot
parent 56fd85e371
commit 6958bbb28c
11 changed files with 558 additions and 579 deletions
+1 -14
View File
@@ -14,7 +14,7 @@
* This script walks a releaser through bumping the version for a release
* It will commit the appropriate tags to trigger the CircleCI jobs.
*/
const {exec, exit} = require('shelljs');
const {exit} = require('shelljs');
const yargs = require('yargs');
const inquirer = require('inquirer');
const request = require('request');
@@ -56,19 +56,6 @@ function exitIfNotOnReleaseBranch(branch) {
}
}
function getLatestTag(versionPrefix) {
const tags = exec(`git tag --list "v${versionPrefix}*" --sort=-refname`, {
silent: true,
})
.stdout.trim()
.split('\n')
.filter(tag => tag.length > 0);
if (tags.length > 0) {
return tags[0];
}
return null;
}
function triggerReleaseWorkflow(options) {
return new Promise((resolve, reject) => {
request(options, function (error, response, body) {
-1
View File
@@ -38,7 +38,6 @@ const argv = yargs
default: false,
}).argv;
const currentCommit = process.env.CIRCLE_SHA1;
const branch = process.env.CIRCLE_BRANCH;
const remote = argv.remote;
const releaseVersion = argv.toVersion;