Skip to content

Commit

Permalink
Modified to support multiple project keys (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
kamesh-09 authored Mar 10, 2024
1 parent 4cac317 commit ca20147
Show file tree
Hide file tree
Showing 3 changed files with 330 additions and 106 deletions.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ By default, this action will allow any valid Issue Key so long as it *could* be

A specific Project Key to always check for

### `projectKeys`

Multiple Project Keys to always check for

### `separator`

A specific separator to use. Defaults to a space character.
Expand All @@ -65,6 +69,9 @@ A specific separator to use. Defaults to a space character.

Allows the Jira Project Key, Issue # and separator to be anywhere in the title. Defaults to false.


Note that `projectKey` and `projectKeys` works same under the hood. You can pass either one of them depending on the usecase.

## Example Usage

```
Expand All @@ -81,6 +88,18 @@ Allows the Jira Project Key, Issue # and separator to be anywhere in the title.
projectKey: 'AB'
```

## Example Usage with a multiple Project Keys

```
- name: Enforce Jira Issue Key in Pull Request Title
uses: ryanvade/enforce-pr-title-style-action@v2
with:
projectKeys: |
'AB'
'CD'
'EF'
```

## Example Usage with a specific Project Key and a separator

```
Expand Down
Loading

0 comments on commit ca20147

Please sign in to comment.