Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sly777/pr_title_jira_linker
Linking JIRA Issue ID to PR title - Github Action
https://github.com/sly777/pr_title_jira_linker
Last synced: 13 days ago
JSON representation
Linking JIRA Issue ID to PR title - Github Action
- Host: GitHub
- URL: https://github.com/sly777/pr_title_jira_linker
- Owner: Sly777
- License: mit
- Created: 2022-12-15T17:18:48.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-03-14T09:10:18.000Z (almost 2 years ago)
- Last Synced: 2024-12-17T19:03:42.822Z (16 days ago)
- Language: TypeScript
- Size: 513 KB
- Stars: 1
- Watchers: 2
- Forks: 2
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# JIRA Linker on PR Title and Branch
## Example Usage
```
- name: PR Title Jira Linker
uses: Sly777/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
```## Full Example with branch name information
```
- name: PR Title Jira Linker
uses: Sly777/[email protected]
id: prtitlecheck
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}- uses: marocchino/sticky-pull-request-comment@v2
if: always() && (steps.prtitlecheck.outputs.errortype == 'jiraonbranch')
with:
header: prbranchissue
message: |
We require branch names must have JIRA ticket ID if it's not ignored branch. Please update your branch name with ticket ID or use ignore branch patternCurrent Branch name: ${{ steps.prtitlecheck.outputs.branchname }}
Branch Ignore Pattern: '^(master|main|dev|develop|development|release|(nojira-.*))$'- if: ${{ steps.prtitlecheck.outputs.errortype == null }}
uses: marocchino/sticky-pull-request-comment@v2
with:
header: prbranchissue
delete: true
```