Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
centreon-widget-hostgroup-monitoring
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
centreon
centreon-widget-hostgroup-monitoring
Commits
fea3442b
Unverified
Commit
fea3442b
authored
3 years ago
by
sc979
Committed by
GitHub
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
enh(chore): automate dependabot ticket creation (#52)
parent
0ae07a29
No related branches found
Branches containing commit
No related tags found
Tags containing commit
Loading
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.github/workflows/dependabot_jira.yml
+54
-0
54 additions, 0 deletions
.github/workflows/dependabot_jira.yml
with
54 additions
and
0 deletions
.github/workflows/dependabot_jira.yml
0 → 100644
+
54
−
0
View file @
fea3442b
name
:
Create Dependabot Ticket on Jira
on
:
pull_request
:
types
:
[
opened
]
branches
:
[
develop
,
dev-2*
]
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"
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
:
Login to Jira
uses
:
atlassian/gajira-login@v2.0.0
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
id
:
create
uses
:
atlassian/gajira-create@v2.0.1
with
:
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 }}
description
:
|
{panel:title=Dependency to upgrade}
${{ 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 }}
fields
:
'
{
"customfield_10880":
"Internal",
"customfield_10881":
"dependabot",
"customfield_10866":
"${{
env.CURRENT_DATE
}}"
}'
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment