Skip to content

Commit

Permalink
feat: ci improvements (#67)
Browse files Browse the repository at this point in the history
* feat: added pr-labeler action and improved CI run security

* chore: added missing pr-labeler.yml

* feat: added dependabot configuration
  • Loading branch information
leonsteinhaeuser committed Jun 26, 2023
1 parent ed887fa commit 26f9aeb
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 10 deletions.
14 changes: 14 additions & 0 deletions .github/dependabot.yml
@@ -0,0 +1,14 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: github-actions
directory: "/"
schedule:
interval: "monthly"
labels:
- dep/gh-actions
- dependabot
7 changes: 7 additions & 0 deletions .github/pr-labeler.yml
@@ -0,0 +1,7 @@
# source: https://github.com/TimonVS/pr-labeler-action
feature: ['feature/*', 'feat/*']
enhancement: ['enhancement/*', 'enhance/*', "enh/*"]
fix: ['fix/*', 'bugfix/*', "bug-fix/*"]
documentation: ['docs/*', 'doc/*', 'documentation/*']
chore: ['chore/*', 'ch/*']
refactor: ['refactor/*', 'ref/*']
34 changes: 24 additions & 10 deletions .github/workflows/pr_size.yml
@@ -1,22 +1,36 @@
name: PR Size Label
name: Pull Request automations

on: pull_request

jobs:
size-label:
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- name: Add size label
uses: "pascalgn/size-label-action@v0.4.3"
uses: "pascalgn/size-label-action@v0.5.0"
env:
GITHUB_TOKEN: "${{ secrets.PROJECT_PERMISSIONS_TOKEN }}"
IGNORED: ".gitignore\n*.md\n*.json\n*.sql\n*.yaml\n*.yml"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
IGNORED: ".gitignore\n*.md\n*.MD\n*.json\n*.sql\n*.yaml\n*.yml\n.dockerignore\ngo.mod\ngo.sum\nLICENSE"
with:
sizes: >
{
"0": "XS",
"100": "S",
"500": "M",
"1000": "L",
"1500": "XL",
"2500": "XXL"
}
"50": "S",
"100": "M",
"200": "L",
"500": "XL",
"1000": "XXL"
}
pr-labeler:
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- uses: TimonVS/pr-labeler-action@v4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 26f9aeb

Please sign in to comment.