Skip to content

Commit

Permalink
fix: fix naming
Browse files Browse the repository at this point in the history
  • Loading branch information
MathieuVeber committed Jun 5, 2024
1 parent 498cb3a commit e7658e6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
workflow_call:
inputs:
project-id:
description: The issue will be assigned to that project.
description: The pull request will be assigned to that project.
required: true
type: number
reviewers:
Expand Down Expand Up @@ -68,7 +68,7 @@ jobs:
script: |
const owner = "${{github.repository_owner}}";
const repo = "${{github.event.repository.name}}";
const issue_number = ${{github.event_name == 'issue' && github.event.issue.number || github.event.pull_request.number}};
const issue_number = ${{github.event.pull_request.number}};
const assignees = ["${{github.actor}}"];
console.log(`@${owner}/${repo}#${issue_number}: Assigning to ${assignees}`);
Expand Down Expand Up @@ -101,8 +101,8 @@ jobs:
script: |
const owner = "${{github.repository_owner}}";
const repo = "${{github.event.repository.name}}";
const issue_number = ${{github.event.issue.number}};
const title = "${{github.event.issue.title}}";
const issue_number = ${{github.event.pull_request.number}};
const title = "${{github.event.pull_request.title}}";
const regex = /^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test)(?:\((\w+)\))?(!)?: (.+)$/;
console.log(`Checking title "${title}"`);
Expand Down

0 comments on commit e7658e6

Please sign in to comment.