JNG-5995 Update eclipse #90
Workflow file for this run
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
name: Add JIRA description to PR | |
on: | |
pull_request: | |
types: [opened, edited, synchronize] | |
jobs: | |
add-jira-description: | |
name: Add JIRA description to PR | |
runs-on: judong | |
timeout-minutes: 3 | |
if: ${{ github.event.pull_request.user.login != 'dependabot[bot]' }} | |
steps: | |
- name: 🛂 Enforce Jira Issue Key in Pull Request Title | |
if: ${{ github.base_ref == 'develop' && (startsWith(github.head_ref, 'feature') || startsWith(github.head_ref, 'bugfix'))}} | |
uses: ryanvade/enforce-pr-title-style-action@v1 | |
with: | |
projectKey: 'JNG' | |
- name: 🏭 jira-description-action | |
uses: cakeinpanic/[email protected] | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
jira-token: ${{ secrets.OSS_JIRA_TOKEN }} | |
jira-base-url: ${{ secrets.JIRA_BASE_URL }} | |
skip-branches: '^(production-release|main|master|release\/v*|increment\/v*)$' | |
jira-project-key: 'JNG' | |
- name: 📢 Send message to discord | |
uses: sarisia/actions-status-discord@v1 | |
if: ${{ always() && job.status == 'failure' }} | |
with: | |
webhook: ${{ secrets.JUDONG_DISCORD_WEBHOOK }} | |
title: "Github action" | |
description: ":x: Please add issue number to PR message! https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" | |