This repository has been archived by the owner on Jul 15, 2024. It is now read-only.
build(deps-dev): bump @babel/traverse from 7.18.2 to 7.23.7 in /packages/ui-context #2
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: Create Dependabot Ticket on Jira | |
on: | |
pull_request: | |
types: [ opened, reopened ] | |
branches: [ develop ] | |
permissions: | |
pull-requests: read | |
env: | |
JIRA_PROJECT_KEY: "MON" | |
JIRA_ISSUE_TYPE: "Technical" | |
COMPONENT_NAME: "${{ github.event.pull_request.base.repo.name }}" | |
jobs: | |
create_ticket: | |
name: Create Jira ticket on dependaBot PR | |
if: github.event.pull_request.user.id == 49699333 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Get current date | |
id: date | |
run: echo "CURRENT_DATE=$(date +'%Y-%m-%dT%H:%M:%S')" >> $GITHUB_ENV | |
- name: Check components name | |
id: name | |
if: ${{ env.COMPONENT_NAME == 'centreon'}} | |
run: echo "COMPONENT_NAME=centreon-web" >> $GITHUB_ENV | |
- name: debug | |
id: debug | |
run: echo "component is ${{ env.COMPONENT_NAME }}." | |
- name: Login to Jira | |
uses: atlassian/[email protected] | |
id: login | |
env: | |
JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }} | |
JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }} | |
JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }} | |
- name: Create Jira Issue | |
uses: atlassian/[email protected] | |
id: create | |
env: | |
JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }} | |
JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }} | |
JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }} | |
with: | |
project: ${{ env.JIRA_PROJECT_KEY }} | |
issuetype: ${{ env.JIRA_ISSUE_TYPE }} | |
summary: | | |
[${{ github.event.repository.name }}] - ${{ github.event.pull_request.title }} | |
description: | | |
{panel:title=Recommandation} | |
${{ github.event.pull_request.title }} | |
{panel} | |
More details are available in the *PR n°${{ github.event.pull_request.number }}* | |
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 }}", | |
"labels": ["Dependabot"], | |
"priority": {"name": "Highest"}, | |
"components":[{"name": "${{ env.COMPONENT_NAME }}"}] | |
}' |