Skip to content

Commit

Permalink
feat: remove [ and ] from the issue key regex (#13)
Browse files Browse the repository at this point in the history
* feat: remove `[` and `]` from the regex

* ci: remove brackets from all tests
  • Loading branch information
EricRibeiro authored Aug 22, 2023
1 parent f4daf38 commit 905c4d0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions .circleci/test-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ workflows:
name: Manually set commit message for test
command: |
git add .
git commit -m "test: ${CIRCLE_JOB} [CFJ-2]"
git commit -m "test: ${CIRCLE_JOB} CFJ-2"
- jira/notify:
pipeline_id: "<< pipeline.id >>"
pipeline_number: "<< pipeline.number >>"
Expand All @@ -87,7 +87,7 @@ workflows:
name: Manually set commit message for test
command: |
git add .
git commit -m "test: ${CIRCLE_JOB} [CFJ-2]"
git commit -m "test: ${CIRCLE_JOB} CFJ-2"
- jira/notify:
pipeline_id: "<< pipeline.id >>"
pipeline_number: "<< pipeline.number >>"
Expand All @@ -99,9 +99,9 @@ workflows:
- run:
name: Override CIRCLE_BRANCH
command: |
echo "CIRCLE_BRANCH=feat/[CFJ-2]" >> $BASH_ENV
echo "CIRCLE_BRANCH=feat/CFJ-2" >> $BASH_ENV
git commit --allow-empty -m "test: ${CIRCLE_JOB}"
- jira/notify:
pipeline_id: "<< pipeline.id >>"
pipeline_number: "<< pipeline.number >>"
Expand All @@ -115,7 +115,7 @@ workflows:
name: Give Tag
command: |
git commit --allow-empty -m "test: ${CIRCLE_JOB}"
git tag -a v1.0.0 -m "Jira: [CFJ-2]"
git tag -a v1.0.0 -m "Jira: CFJ-2"
- jira/notify:
pipeline_id: "<< pipeline.id >>"
pipeline_number: "<< pipeline.number >>"
Expand All @@ -141,4 +141,4 @@ workflows:
- test-deploy
context: orb-publisher
github_token: GHI_TOKEN
filters: *release-filters
filters: *release-filters
2 changes: 1 addition & 1 deletion src/commands/notify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ parameters:
default: "${JIRA_SERVICE_ID}"
issue_regexp:
description: Override the default project key regexp if your project keys follow a different format. Your key must be in the [1] capture group.
default: \[([A-Z]{2,30}-[0-9]+)\]
default: ([A-Z]{2,30}-[0-9]+)
type: string
pipeline_id:
description: Pass in the pipeline id via CircleCI pipeline parameters. This must be specified manually. Refer to usage example.
Expand Down

0 comments on commit 905c4d0

Please sign in to comment.