Skip to content

Commit c76cc84

Browse files
authored
refactor: preserving semver ranges (#3539)
* refactor: preserving semver ranges & minor clean up * fix: resolve run/logging-manual/app.js lint error * fix: resolve header + lint errors * fix: removing fix formatting to prevent collision with 'gts fix' formatting * fix: resolve header check error
1 parent 25e0de3 commit c76cc84

File tree

3 files changed

+18
-13
lines changed

3 files changed

+18
-13
lines changed

owlbot.py

-2
Original file line numberDiff line numberDiff line change
@@ -173,5 +173,3 @@ def fix_hermetic(targets: str = ".", hide_output: bool = False) -> None:
173173
f = typeless_samples_hermetic(targets=d)
174174
# Remove extra characters
175175
trim(files=f)
176-
# Fix formatting
177-
fix_hermetic(targets=d)

renovate.json

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"extends": [
3-
"config:base"
3+
"config:base",
4+
"config:semverAllMonthly"
45
],
56
"baseBranches": ["main"],
67
"packageRules": [
@@ -20,12 +21,9 @@
2021
"node": "< 15.0.0"
2122
}
2223
},
23-
"prConcurrentLimit": 0,
2424
"dependencyDashboardAutoclose": true,
2525
"schedule": "after 11am every 3 weeks on Monday",
26-
"timezone": "America/Los_Angeles",
2726
"stabilityDays": 15,
28-
"rangeStrategy": "pin",
2927
"pinVersions": false,
30-
"rebaseStalePrs": false
28+
"rebaseStalePrs": true
3129
}

run/logging-manual/app.js

+15-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
1-
// Copyright 2020 Google LLC. All rights reserved.
2-
// Use of this source code is governed by the Apache 2.0
3-
// license that can be found in the LICENSE file.
1+
// Copyright 2023 Google LLC
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// https://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
414

515
const express = require('express');
616
const app = express();
@@ -23,9 +33,8 @@ app.get('/', (req, res) => {
2333
const traceHeader = req.header('X-Cloud-Trace-Context');
2434
if (traceHeader && project) {
2535
const [trace] = traceHeader.split('/');
26-
globalLogFields[
27-
'logging.googleapis.com/trace'
28-
] = `projects/${project}/traces/${trace}`;
36+
globalLogFields['logging.googleapis.com/trace'] =
37+
`projects/${project}/traces/${trace}`;
2938
}
3039
}
3140

0 commit comments

Comments
 (0)