Skip to content

Commit

Permalink
Update pr-convention.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
alankritdabral authored Dec 29, 2023
1 parent 1c7d39c commit 602ac87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/pr-convention.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
script: |
const suggestion = `Suggested title: ${context.payload.pull_request.title.replace(/^(feat|fix|docs|style|refactor|test|chore)/, 'feat')}`;
await github.rest.issues.createComment({
issue_number: context.payload.pull_request.number, // Use payload.pull_request.number instead of context.issue.number
issue_number: context.payload.pull_request.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: `${steps.check-title.outputs.body}\n\n${suggestion}`
Expand Down

0 comments on commit 602ac87

Please sign in to comment.