Skip to content

Commit

Permalink
fix PR error
Browse files Browse the repository at this point in the history
  • Loading branch information
binni979 committed Jul 9, 2024
1 parent 7fc59e5 commit bfd28e6
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/banner.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,21 +72,21 @@ jobs:
uses: actions/github-script@v6
with:
script: |
const pullRequest = await github.pulls.create({
owner: context.repo.owner,
repo: context.repo.repo,
title: `Updating banner for #${{ github.event.issue.number }}`,
head: 'staging',
base: 'main',
body: `This pull request updates the banner for issue #${{ github.event.issue.number }}.`,
const { data: pullRequest } = await github.pulls.create({
owner: context.repo.owner,
repo: context.repo.repo,
title: `Updating banner for #${{ github.event.issue.number }}`,
head: 'staging',
base: 'main',
body: `This pull request updates the banner for issue #${{ github.event.issue.number }}.`,
});
return { number: pullRequest.number };
core.setOutput('pr_number', pullRequest.number);
- name: Add Reviewer to Pull Request
uses: actions/github-script@v6
with:
script: |
const prNumber = core.getInput('create_pr').number;
const prNumber = core.getInput('pr_number');
await github.pulls.requestReviewers({
owner: context.repo.owner,
repo: context.repo.repo,
Expand Down

0 comments on commit bfd28e6

Please sign in to comment.