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

feat: Initial setup and logic #1

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 2 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
31 changes: 31 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: 'conventional-pr-labels'
description: "automatically adds labels to pull requests based on Conventional Commits. Works with GitHub automated releases"
author: Alexander Castillo
inputs:
token:
description: 'GitHub token for applying labels, defaults to using secrets.GITHUB_TOKEN'
required: false
default: ${{ github.token }}
type_labels:
description: 'what labels to apply to different conventional commit types'
required: false
default: '{"feat": "feature", "fix": "fix", "breaking": "breaking"}'
type: string
ignored_types:
description: 'Conventional Commit types that should have ignore_label applied'
required: false
default: '["chore"]'
type: string
ignore_label:
description: 'label to apply for ignored commits'
required: false
default: 'ignore-for-release'
type: string

branding:
icon: 'align-justify'
color: 'yellow'

runs:
using: 'node20'
main: 'dist/index.js'
Binary file modified bun.lockb
Binary file not shown.
320 changes: 0 additions & 320 deletions package-lock.json
palexcast marked this conversation as resolved.
Outdated
Show resolved Hide resolved

This file was deleted.

5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@
"test:watch": "bun test --watch"
},
"devDependencies": {
"bun-types": "latest"
"bun-types": "latest",
"js-yaml": "^4.1.0",
"mocha": "^10.2.0",
"sinon": "^16.1.0"
},
"peerDependencies": {
"typescript": "^5.0.0"
Expand Down
Loading