mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-13 05:12:55 -07:00
chore: Always run prettier with --write in lint:all
This commit is contained in:
@@ -52,7 +52,6 @@ jobs:
|
|||||||
- name: 'Install Script Dependencies'
|
- name: 'Install Script Dependencies'
|
||||||
run: 'npm install yargs'
|
run: 'npm install yargs'
|
||||||
|
|
||||||
|
|
||||||
- name: 'Configure Git User'
|
- name: 'Configure Git User'
|
||||||
run: |-
|
run: |-
|
||||||
git config user.name "gemini-cli-robot"
|
git config user.name "gemini-cli-robot"
|
||||||
@@ -64,7 +63,7 @@ jobs:
|
|||||||
id: 'create_patch'
|
id: 'create_patch'
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
|
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
|
||||||
GEMINI_CLI_ROBOT_GITHUB_PAT: '${{ secrets.GEMINI_CLI_ROBOT_GITHUB_PAT }}'
|
GH_TOKEN: '${{ secrets.GEMINI_CLI_ROBOT_GITHUB_PAT }}'
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
run: |
|
run: |
|
||||||
# Capture output and display it in logs using tee
|
# Capture output and display it in logs using tee
|
||||||
|
|||||||
+1
-1
@@ -164,7 +164,7 @@ export function runYamllint() {
|
|||||||
|
|
||||||
export function runPrettier() {
|
export function runPrettier() {
|
||||||
console.log('\nRunning Prettier...');
|
console.log('\nRunning Prettier...');
|
||||||
if (!runCommand('prettier --check .')) {
|
if (!runCommand('prettier --write .')) {
|
||||||
process.exit(1);
|
process.exit(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -214,11 +214,7 @@ The commit has been created with conflict markers for easier manual resolution.
|
|||||||
}
|
}
|
||||||
|
|
||||||
const prCommand = `gh pr create --base ${releaseBranch} --head ${hotfixBranch} --title "${prTitle}" --body "${prBody}"`;
|
const prCommand = `gh pr create --base ${releaseBranch} --head ${hotfixBranch} --title "${prTitle}" --body "${prBody}"`;
|
||||||
// Temporarily set the environment variable for the gh command.
|
|
||||||
process.env.GH_TOKEN = process.env.GEMINI_CLI_ROBOT_GITHUB_PAT;
|
|
||||||
run(prCommand, dryRun);
|
run(prCommand, dryRun);
|
||||||
// Unset the environment variable to avoid side effects.
|
|
||||||
delete process.env.GH_TOKEN;
|
|
||||||
|
|
||||||
if (hasConflicts) {
|
if (hasConflicts) {
|
||||||
console.log(
|
console.log(
|
||||||
|
|||||||
Reference in New Issue
Block a user