Skip to content

Commit

Permalink
Distinct direct and indirect dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Borewit committed Mar 28, 2023
1 parent 24578b3 commit 174a035
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 6 deletions.
19 changes: 13 additions & 6 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,22 @@
name-template: 'v$RESOLVED_VERSION'
tag-template: 'v$RESOLVED_VERSION'
categories:
- title: ':rocket: Enhancements'
- title: 🚀 Enhancements
labels:
- 'enhancement'
- title: ':bug: Bug Fixes'
- enhancement
- title: 🎨 Improvements
labels:
- 'bug'
- title: ':arrow_up: Dependencies'
- improvement
- title: 🐛 Bug Fixes
labels:
- 'dependencies'
- bug
- title: 🔧 Under the hood
labels:
- debt
- dev-dependencies
- title: ⬆️ Dependencies
labels:
- dependencies
exclude-labels:
- 'DevOps'
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
Expand Down
22 changes: 22 additions & 0 deletions .github/workflows/post-dependabot-prs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Dependabot Pull Request
on: pull_request_target
jobs:
build:
runs-on: ubuntu-latest
if: ${{ github.event.pull_request.user.login == 'dependabot[bot]' }}
steps:
- name: Fetch Dependabot metadata
id: dependabot-metadata
uses: dependabot/fetch-metadata@v1
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
- name: Add dev-dependencies label
uses: actions-ecosystem/action-add-labels@v1
if: ${{ steps.dependabot-metadata.outputs.dependency-type == 'direct:development' }}
with:
labels: dev-dependencies
- name: Remove dependencies label
uses: actions-ecosystem/action-remove-labels@v1
if: ${{ steps.dependabot-metadata.outputs.dependency-type == 'direct:development' }}
with:
labels: dependencies

0 comments on commit 174a035

Please sign in to comment.