This action synchronizes the title of Pull Request and the issue title of Jira.
Required The token to be used for creating the pull request. Can be set to the one given for the workflow or another user.
Required The Jira host name.
Required The Jira user email.
Required The Jira API token.
Required The RegExp for Issue Key Tracking (it's value must be included in branch).
Required The Github Repo Name.
Required The Github Repository.
on:
pull_request:
types:
- opened
jobs:
Run:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
- name: Synchronize PR Title
uses: 'J-Ymini/jira-pr-title-sync@v1.1'
with:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
JIRA_HOST_NAME: 'Jira api token'
THE JIRA_USER_EMAIL: 'Jira host name'
TARGET_REGEX: 'Jira user email'
REPO: 'Repository name'
OWNER: 'Repository owner'
PULL_REQUEST_REF: ${{process.env.GITHUB_REF}}