Skip to content

Commit d546a31

Browse files
Skip PR line counter workflow on draft PRs (#170)
* Initial plan * Add conditional to skip draft PRs in line counter workflow Co-authored-by: functionstackx <47992694+functionstackx@users.noreply.github.com> * Use != true for draft check and add ready_for_review trigger Co-authored-by: functionstackx <47992694+functionstackx@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: functionstackx <47992694+functionstackx@users.noreply.github.com>
1 parent e1e1a83 commit d546a31

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/pr-line-counter.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@ name: PR Line Counter
22

33
on:
44
pull_request:
5-
types: [opened, synchronize, reopened]
5+
types: [opened, synchronize, reopened, ready_for_review]
66

77
jobs:
88
count-lines:
9+
if: github.event.pull_request.draft != true
910
runs-on: ubuntu-latest
1011
permissions:
1112
contents: read

0 commit comments

Comments
 (0)