-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from viqueen/issue/LABSET-121-release-labset-org
LABSET-121 : release labset org
- Loading branch information
Showing
5 changed files
with
36 additions
and
6 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
.github/workflows/yarn-build-and-test.yml → .github/workflows/build-and-test.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: typescript-package Build and Test | ||
name: eslint-plugin-license-notice Build and Test | ||
on: | ||
push: | ||
branches: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#! /usr/bin/env bash | ||
|
||
function jiraIssueNumber() { | ||
branch_name=$(git rev-parse --abbrev-ref HEAD); | ||
prefix="noissue"; | ||
if [[ ${branch_name} =~ ^(.+/)?([A-Za-z]+-[0-9]+)(-(.*))?$ ]]; then | ||
prefix=${BASH_REMATCH[2]}; | ||
fi; | ||
echo "${prefix}"; | ||
} | ||
|
||
branch_name=$(git branch | grep '*' | sed 's/* //') | ||
|
||
# skip hook when rebasing | ||
if [ "${branch_name}" != '(no branch)' ] | ||
then | ||
commit_file="$1" | ||
message=$(cat "$commit_file") | ||
issue_ticket_number=$(jiraIssueNumber); | ||
|
||
# skip hook if issue number already in commit message | ||
if [[ ! "${message}" =~ ${issue_ticket_number} ]]; then | ||
echo "${issue_ticket_number}: ${message}" > "${commit_file}" | ||
fi | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "eslint-plugin-license-notice", | ||
"version": "1.0.0", | ||
"name": "@labset/eslint-plugin-license-notice", | ||
"version": "1.1.0", | ||
"description": "eslint plugin to ensure license notice/header is included across your files", | ||
"repository": "[email protected]:viqueen/eslint-plugin-license-notice.git", | ||
"author": "Hasnae R. <>", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters