Commit fe0d4fd
### **User description**
[TT-16055] remove redundant codegen:smart (#7495)
<!-- Provide a general summary of your changes in the Title above -->
## Description
Remove redundant `task codgen:smart` from CI, as `task tidy` is already
invoking it.
## Related Issue
https://tyktech.atlassian.net/browse/TT-16055
## Motivation and Context
<!-- Why is this change required? What problem does it solve? -->
## How This Has Been Tested
<!-- Please describe in detail how you tested your changes -->
<!-- Include details of your testing environment, and the tests -->
<!-- you ran to see how your change affects other areas of the code,
etc. -->
<!-- This information is helpful for reviewers and QA. -->
## Screenshots (if appropriate)
## Types of changes
<!-- What types of changes does your code introduce? Put an `x` in all
the boxes that apply: -->
- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to change)
- [ ] Refactoring or add test (improvements in base code or adds test
coverage to functionality)
## Checklist
<!-- Go over all the following points, and put an `x` in all the boxes
that apply -->
<!-- If there are no documentation updates required, mark the item as
checked. -->
<!-- Raise up any additional concerns not covered by the checklist. -->
- [ ] I ensured that the documentation is up to date
- [ ] I explained why this PR updates go.mod in detail with reasoning
why it's required
- [ ] I would like a code coverage CI quality gate exception and have
explained why
<!---TykTechnologies/jira-linter starts here-->
### Ticket Details
<details>
<summary>
<a href="https://tyktech.atlassian.net/browse/TT-16055" title="TT-16055"
target="_blank">TT-16055</a>
</summary>
| | |
|---------|----|
| Status | In Code Review |
| Summary | Upgrade golangcilint to v2 on tyk gateway |
Generated at: 2025-10-31 11:23:08
</details>
<!---TykTechnologies/jira-linter ends here-->
[TT-16055]:
https://tyktech.atlassian.net/browse/TT-16055?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
___
### **PR Type**
Enhancement, Documentation
___
### **Description**
- Centralize BASE_BRANCH logic in Taskfile
- Remove duplicate BASE_BRANCH vars from includes
- Document automatic base-branch detection
- Improve CI/lint/codegen branch targeting
___
### Diagram Walkthrough
```mermaid
flowchart LR
Taskfile["Taskfile.yml (root)"]
Hooks[".taskfiles/hooks.yml"]
Lint[".taskfiles/lint.yml"]
Docs["CONTRIBUTING.md"]
Taskfile -- "defines auto BASE_BRANCH" --> Hooks
Taskfile -- "inherited var" --> Lint
Taskfile -- "documented behavior" --> Docs
```
<details> <summary><h3> File Walkthrough</h3></summary>
<table><thead><tr><th></th><th align="left">Relevant
files</th></tr></thead><tbody><tr><td><strong>Enhancement</strong></td><td><table>
<tr>
<td>
<details>
<summary><strong>hooks.yml</strong><dd><code>Drop redundant BASE_BRANCH
in hooks taskfile</code>
</dd></summary>
<hr>
.taskfiles/hooks.yml
- Remove local BASE_BRANCH var
- Rely on inherited root Taskfile var
</details>
</td>
<td><a
href="https://github.com/TykTechnologies/tyk/pull/7497/files#diff-4c8ab53446d9cfd97f77a7242f379e0951db3fcd68b2e5d0d78ed5b3960cd574">+0/-4</a>
</td>
</tr>
<tr>
<td>
<details>
<summary><strong>lint.yml</strong><dd><code>Clean up BASE_BRANCH in lint
taskfile</code>
</dd></summary>
<hr>
.taskfiles/lint.yml
- Remove local BASE_BRANCH var
- Keep root var inheritance clean
</details>
</td>
<td><a
href="https://github.com/TykTechnologies/tyk/pull/7497/files#diff-363848321486b220d237efdc32336314ea3369c113f64fdfbec6a38ea62faf66">+0/-2</a>
</td>
</tr>
<tr>
<td>
<details>
<summary><strong>Taskfile.yml</strong><dd><code>Implement BASE_BRANCH
auto-detection in root Taskfile</code>
</dd></summary>
<hr>
Taskfile.yml
<ul><li>Add robust BASE_BRANCH auto-detection<br> <li> Handle
merge/release-*/* branch pattern<br> <li> Default to master if
unmatched<br> <li> Provide inline documentation comments</ul>
</details>
</td>
<td><a
href="https://github.com/TykTechnologies/tyk/pull/7497/files#diff-cd2d359855d0301ce190f1ec3b4c572ea690c83747f6df61c9340720e3d2425e">+24/-1</a>
</td>
</tr>
</table></td></tr><tr><td><strong>Documentation</strong></td><td><table>
<tr>
<td>
<details>
<summary><strong>CONTRIBUTING.md</strong><dd><code>Document base branch
detection and overrides</code>
</dd></summary>
<hr>
CONTRIBUTING.md
<ul><li>Add BASE_BRANCH configuration section<br> <li> Explain
auto-detection and override<br> <li> Provide usage examples</ul>
</details>
</td>
<td><a
href="https://github.com/TykTechnologies/tyk/pull/7497/files#diff-eca12c0a30e25b4b46522ebf89465a03ba72a03f540796c979137931d8f92055">+18/-0</a>
</td>
</tr>
</table></td></tr></tr></tbody></table>
</details>
___
Co-authored-by: Jeffy Mathew <jeffy.mathew100@gmail.com>
1 parent d94179c commit fe0d4fd
4 files changed
Lines changed: 42 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | 4 | | |
9 | 5 | | |
10 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
9 | 7 | | |
10 | 8 | | |
11 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
87 | 105 | | |
88 | 106 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
27 | 37 | | |
28 | | - | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
29 | 52 | | |
30 | 53 | | |
31 | 54 | | |
| |||
0 commit comments