Skip to content

Commit 17254cf

Browse files
committed
adjust getting PR number
1 parent f1688cb commit 17254cf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/pre-commit.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,13 @@ jobs:
6060
with:
6161
version: ${{ vars.NUSHELL_VERSION || '*' }}
6262
- name: Get PR title
63+
# working-directory: project-repo
6364
shell: nu {0}
6465
id: get-title
6566
env:
6667
GH_REPO: ${{ github.repository }}
6768
GH_TOKEN: ${{ github.token }}
68-
PR_NUMBER: ${{ github.event_path.pr_number }}
69+
PR_NUMBER: ${{ github.event.pull_request.number }}
6970
run: |-
7071
let pr_title = (
7172
(^gh pr view $env.PR_NUMBER --repo $env.GH_REPO --json "title")

0 commit comments

Comments
 (0)