Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(ci): added issue managements actions #133

Merged
merged 2 commits into from
Jan 19, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions .github/configs/issue-labeler.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Configurations of `github/issue-labeler` action
# regexp patterns had basically been aligned for Conventional Commits and Semantic PR
# Nothing matches, since expecting to add manually
breaking:
- '/(\!)/'

bug:
- '(fix:)'

chore:
- '(chore)'

ci:
- '(ci:|\(ci\))'

deployment:
- '(build:|deploy:)'

deps:
- '(deps|dependencies)'

docs:
- '(docs|document|diagram)'

enhancement:
- '(feat|enhancement)'

security:
- '(security)'

tests:
- '(test)'

# Note that the following labels will have never been added by issue-labeler,
# since only for PRs and will not raise issue
# - dependabot
# - releases
32 changes: 32 additions & 0 deletions .github/workflows/issue-labeler.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Issue Labeler

on:
issues:
types:
- opened
- edited
- reopened
workflow_dispatch:

permissions:
issues: write
contents: read

jobs:
issue-labeler:
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Label Issue
uses: github/issue-labeler@v3.4
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
configuration-path: .github/configs/issue-labeler.yaml
# case if we have multiple configs
enable-versioned-regex: 0
# only checks issue titles
include-title: 1
include-body: 0
# https://github.com/github/issue-labeler
27 changes: 27 additions & 0 deletions .github/workflows/semantic-issue-action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Semantic Issue Title

on:
issues:
types:
- opened
- edited
- reopened
workflow_dispatch:

permissions:
issues: write
contents: read

jobs:
semantic-issue:
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Check Issue Title
uses: hwakabh/semantic-issue-action@v0.3.0
with:
repo: 'hwakabh/random-travelers'
token: ${{ secrets.GITHUB_TOKEN }}
# https://github.com/hwakabh/semantic-issue-action