Skip to content

Conversation

@ssam18
Copy link
Contributor

@ssam18 ssam18 commented Nov 12, 2025

I noticed minUsagePadding was defined as a var even though it's never changed anywhere. Since it's a fixed value, using const makes more sense and prevents accidental modifications.

This is just a small cleanup - no functional changes.

Fixes #2323

@CLAassistant
Copy link

CLAassistant commented Nov 12, 2025

CLA assistant check
All committers have signed the CLA.

@marckhouzam
Copy link
Collaborator

The linter failure is unrelated. I will open a PR to fix it. However I do not have permissions to force a merge for this PR until CI passes. I'll reach out for a rebase when the issue is fixed.

@ssam18
Copy link
Contributor Author

ssam18 commented Nov 14, 2025

sure @marckhouzam
Thanks

@marckhouzam
Copy link
Collaborator

The fix has been merged #2327.
@ssam18 if you can rebase your PR on top of main and I'll get it merged.

@ssam18 ssam18 force-pushed the refactor/minUsagePadding-constant branch from 0ef8e18 to 0a59262 Compare November 17, 2025 22:42
@ssam18
Copy link
Contributor Author

ssam18 commented Nov 17, 2025

Hi @marckhouzam! I've rebased the PR on top of the latest main branch. The linter fix from #2327 is now included, and the branch should be ready to merge. Thanks for your patience

Copy link
Collaborator

@marckhouzam marckhouzam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@marckhouzam marckhouzam merged commit fc81d20 into spf13:main Nov 18, 2025
21 checks passed
arthurzam pushed a commit to gentoo-golang-dist/forgejo-runner that referenced this pull request Jan 18, 2026
This PR contains the following updates:

| Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) |
|---|---|---|---|
| [github.com/spf13/cobra](https://github.com/spf13/cobra) | `v1.10.1` -> `v1.10.2` | ![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fspf13%2fcobra/v1.10.2?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fspf13%2fcobra/v1.10.1/v1.10.2?slim=true) |

---

### Release Notes

<details>
<summary>spf13/cobra (github.com/spf13/cobra)</summary>

### [`v1.10.2`](https://github.com/spf13/cobra/releases/tag/v1.10.2)

[Compare Source](spf13/cobra@v1.10.1...v1.10.2)

#### 🔧 Dependencies

- chore: Migrate from `gopkg.in/yaml.v3` to `go.yaml.in/yaml/v3` by [@&#8203;dims](https://github.com/dims) in [#&#8203;2336](spf13/cobra#2336) - the `gopkg.in/yaml.v3` package has been deprecated for some time: this should significantly cleanup dependency/supply-chains for consumers of `spf13/cobra`

#### 📈 CI/CD

- Fix linter and allow CI to pass by [@&#8203;marckhouzam](https://github.com/marckhouzam) in [#&#8203;2327](spf13/cobra#2327)
- fix: actions/setup-go v6 by [@&#8203;jpmcb](https://github.com/jpmcb) in [#&#8203;2337](spf13/cobra#2337)

#### 🔥✍🏼 Docs

- Add documentation for repeated flags functionality by [@&#8203;rvergis](https://github.com/rvergis) in [#&#8203;2316](spf13/cobra#2316)

#### 🍂 Refactors

- refactor: replace several vars with consts by [@&#8203;htoyoda18](https://github.com/htoyoda18) in [#&#8203;2328](spf13/cobra#2328)
- refactor: change minUsagePadding from var to const by [@&#8203;ssam18](https://github.com/ssam18) in [#&#8203;2325](spf13/cobra#2325)

#### 🤗 New Contributors

- [@&#8203;rvergis](https://github.com/rvergis) made their first contribution in [#&#8203;2316](spf13/cobra#2316)
- [@&#8203;htoyoda18](https://github.com/htoyoda18) made their first contribution in [#&#8203;2328](spf13/cobra#2328)
- [@&#8203;ssam18](https://github.com/ssam18) made their first contribution in [#&#8203;2325](spf13/cobra#2325)
- [@&#8203;dims](https://github.com/dims) made their first contribution in [#&#8203;2336](spf13/cobra#2336)

**Full Changelog**: <spf13/cobra@v1.10.1...v1.10.2>

Thank you to our amazing contributors!!!!! 🐍 🚀

</details>

---

### Configuration

📅 **Schedule**: Branch creation - Between 12:00 AM and 03:59 AM ( * 0-3 * * * ) (UTC), Automerge - Between 12:00 AM and 03:59 AM ( * 0-3 * * * ) (UTC).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0Mi43OC4xIiwidXBkYXRlZEluVmVyIjoiNDIuNzguMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiS2luZC9EZXBlbmRlbmN5VXBkYXRlIiwicnVuLWVuZC10by1lbmQtdGVzdHMiXX0=-->

Reviewed-on: https://code.forgejo.org/forgejo/runner/pulls/1279
Reviewed-by: Michael Kriese <michael.kriese@gmx.de>
Co-authored-by: Renovate Bot <bot@kriese.eu>
Co-committed-by: Renovate Bot <bot@kriese.eu>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants