Skip to content
This repository has been archived by the owner on Feb 15, 2023. It is now read-only.

Commit

Permalink
enh(chore): issueType, feature_team and issue description
Browse files Browse the repository at this point in the history
  • Loading branch information
sc979 committed Oct 18, 2021
1 parent e10a8d9 commit 01e7c8d
Showing 1 changed file with 19 additions and 8 deletions.
27 changes: 19 additions & 8 deletions .github/workflows/dependabot_jira.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ name: Create Dependabot Ticket on Jira
on:
pull_request:
types: [ opened, reopened ]
branches: [ develop, dev-2* ]
branches: [ develop ]

env:
JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }}
JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }}
JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }}
JIRA_PROJECT_KEY: "MON"
JIRA_ISSUE_TYPE: "Vulnerability"
JIRA_ISSUE_TYPE: "Technical"

jobs:
create_ticket:
Expand All @@ -36,19 +36,30 @@ jobs:
project: ${{ env.JIRA_PROJECT_KEY }}
issuetype: ${{ env.JIRA_ISSUE_TYPE }}
summary: |
[Dependency to upgrade on : centreon/${{ github.event.repository.name }}] - ${{ github.event.pull_request.title }}
[${{ github.event.repository.name }}] - ${{ github.event.pull_request.title }}
description: |
{panel:title=Dependency to upgrade}
${{ github.event.pull_request.title }}
{panel:title=Recommandation}
${{ github.event.pull_request.title }}
{panel}
More details are available in the *PR n°${{ github.event.pull_request.number }}*
The link is: ${{ github.event.pull_request.html_url }}
Github link is: ${{ github.event.pull_request.html_url }}
{panel:title=CVSS details}
More details are available on snyk
{panel}
*Github Advisory*
fields:
'{
"customfield_10880": "Internal",
"customfield_10881": "dependabot",
"customfield_10866": "${{ env.CURRENT_DATE }}"
"customfield_10881": "Dependabot",
"customfield_10866": "${{ env.CURRENT_DATE }}",
"labels": ["Dependabot"],
"priority": {"name": "Highest"},
"components":[{"name": "centreon-gorgone"}]
}'

0 comments on commit 01e7c8d

Please sign in to comment.