Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: hashedBranchLength option #8502

Merged
merged 10 commits into from
Feb 3, 2021

Conversation

Turbo87
Copy link
Contributor

@Turbo87 Turbo87 commented Feb 2, 2021

Changes:

As suggested in #5390, this PR implements a hashedBranchLength option, which causes the branch name to include a hash of additionalBranchPrefix and branchTopic, cut off at the right length.

Context:

As the linked issue describes, this option is introduced to fix compatibility with systems that impose a maximum branch name length on the developers. More details on this are described in the issue.

Closes #5390

This is an alternative proposal to #8496 and closes #8496, if merged.

Documentation (please check one with an [x])

  • I have updated the documentation, or
  • No documentation update is required

How I've tested my work (please tick one)

I have verified these changes via:

  • Code inspection only, or
  • Newly added unit tests, or
  • Unit tests + ran on a real repository

docs/usage/configuration-options.md Outdated Show resolved Hide resolved
docs/usage/configuration-options.md Outdated Show resolved Hide resolved
lib/config/definitions.ts Outdated Show resolved Hide resolved
lib/workers/repository/updates/branch-name.ts Outdated Show resolved Hide resolved
lib/workers/repository/updates/branch-name.ts Outdated Show resolved Hide resolved
@Turbo87
Copy link
Contributor Author

Turbo87 commented Feb 2, 2021

thanks for the review. I think I've addressed all of the feedback now. let me know what you think :)

docs/usage/configuration-options.md Outdated Show resolved Hide resolved
lib/workers/repository/updates/branch-name.ts Outdated Show resolved Hide resolved
lib/workers/repository/updates/branch-name.ts Outdated Show resolved Hide resolved
@Turbo87 Turbo87 requested a review from rarkins February 3, 2021 10:24
@rarkins rarkins changed the title feat: Implement maxBranchLength option feat: Implement hashedBranchLength option Feb 3, 2021
@Turbo87
Copy link
Contributor Author

Turbo87 commented Feb 3, 2021

anything left for me to do to get this merged? 😅

@rarkins rarkins changed the title feat: Implement hashedBranchLength option feat: hashedBranchLength option Feb 3, 2021
@rarkins rarkins merged commit ee178df into renovatebot:master Feb 3, 2021
@Turbo87
Copy link
Contributor Author

Turbo87 commented Feb 3, 2021

thanks! ❤️

@Turbo87 Turbo87 deleted the max-branch-name-length branch February 3, 2021 14:59
@renovate-release
Copy link
Collaborator

🎉 This PR is included in version 24.37.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

sluggify and/or truncate branch names to reduce branchName length
3 participants