Skip to content

Commit

Permalink
ci: initial setup (#16)
Browse files Browse the repository at this point in the history
Check all PR titles for conventional commits conformity.

Automatically add labels to PRs based on file changes.

Configure dependabot version updates for GitHub Actions ecosystem.
  • Loading branch information
kirillmorozov authored Mar 10, 2024
1 parent 7035212 commit 9b15fa5
Show file tree
Hide file tree
Showing 3 changed files with 70 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
commit-message:
prefix: "ci"
schedule:
interval: "weekly"
day: "sunday"
24 changes: 24 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
ci:
- .github/workflows/*

docs:
- "**/*.md"

Alacritty:
- alacritty/**/*

Helix:
- helix/**/*

Neovim:
- neovim/**/*

Vim:
- vim/**/*

Wezterm:
- wezterm/**/*

zsh:
- zsh/**/*
36 changes: 36 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
name: PR
on:
- pull_request

jobs:
labels:
name: Labels
runs-on: ubuntu-latest
permissions:
pull-requests: write
contents: read
steps:
- name: Add labels based on changes
uses: actions/[email protected]
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"

title:
name: Title
runs-on: ubuntu-latest
permissions:
pull-requests: read
steps:
- name: Check title
uses: amannn/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
scopes: |
alacritty
helix
neovim
vim
wezterm
zsh

0 comments on commit 9b15fa5

Please sign in to comment.