Skip to content

Commit

Permalink
ci: fix workflow permission, only run if PR is open (#24)
Browse files Browse the repository at this point in the history
Release-As: 0.1.1
  • Loading branch information
shinebayar-g authored Dec 17, 2024
1 parent 0e07244 commit 75893e6
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,19 @@ on:
pull_request_target:
types:
- opened
- edited
- synchronize
- reopened
- edited

permissions:
pull-requests: read
contents: read
pull-requests: write

jobs:
validate:
name: Validate PR title
runs-on: ubuntu-24.04
if: github.event.pull_request.state == 'open'
steps:
- uses: amannn/action-semantic-pull-request@v5
id: lint_pr_title
Expand All @@ -25,6 +27,7 @@ jobs:
fix
feat
chore
ci
requireScope: false


Expand Down
2 changes: 1 addition & 1 deletion biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
"files": {
"ignoreUnknown": false,
"ignore": ["node_modules/**/*", "dist/**/*", "packages/cli/files/**/*"],
"ignore": ["node_modules/**/*", "dist/**/*", "packages/cli/files/**/*", "package.json"],
"maxSize": 100000000
},
"formatter": {
Expand Down
5 changes: 5 additions & 0 deletions release-please-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@
"type": "chore",
"hidden": false,
"section": "Chores"
},
{
"type": "ci",
"hidden": false,
"section": "Chores"
}
],
"packages": {
Expand Down

0 comments on commit 75893e6

Please sign in to comment.