Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchdawson1982 committed Sep 9, 2024
1 parent 63c3023 commit 0e6db94
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/dependabot-create-issue.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Create issue for dependabot pr
on:
pull_request:
branches:
- dependabot/**
types: [opened, reopened]


jobs:
create_issue:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
steps:
- uses: actions/checkout@v2
if: github.event.pull_request.user.login == 'dependabot[bot]'

- name: Open issue if Dependabot PR
if: github.event.pull_request.user.login == 'dependabot[bot]'
env:
pr_title: ${{github.event.pull_request.title}}
pr_number: ${{github.event.pull_request.number}}
pr_url: ${{github.event.pull_request.url}}
run: |
project="Data Catalogue"
label="Dependabot Issue,dependencies"
title="Dependabot PR $pr_title opened"
body="Dependabot has opened PR #$pr_number url - $pr_url
Link: $pr_url"
gh issue create --project "$project" --title "$title" --body "$body" --label "$label"

0 comments on commit 0e6db94

Please sign in to comment.