Skip to content

Commit

Permalink
Release 1.1.1 (#7)
Browse files Browse the repository at this point in the history
* fix: setting max length of branch correctly
* chore: Bump version
* chore: Update CHANGELOG
  • Loading branch information
m4rii0 authored Apr 26, 2022
1 parent ddc62ed commit 6659185
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.1.1] - 2022-04-26

### Fixed

- Max length of branch is now configured as 60 characters.

## [1.1.0] - 2022-04-26

### Improved
Expand Down
7 changes: 4 additions & 3 deletions src/helper.user.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// ==UserScript==
// @name Github helper
// @namespace https://github.com/m4rii0
// @version 1.1.0
// @version 1.1.1
// @description Github helper to speed up your work
// @author m4rii0
// @match https://github.com/*
Expand Down Expand Up @@ -105,7 +105,6 @@
title = title
.trim()
.toLowerCase()
.substring(0, 60)
.replaceAll(' ', '-')
.replace(/[^\w\-]+/, '');

Expand All @@ -117,7 +116,9 @@

kind = kind.replace('kind/', '');
const prefix = getBranchPrefix(kind);
return `${prefix}/GH-${issueId}-${title}`;

let branchName = `${prefix}/GH-${issueId}-${title}`;
return branchName.substring(0, 60);
}


Expand Down

0 comments on commit 6659185

Please sign in to comment.