Skip to content

Commit 5d0584f

Browse files
ci: remove Fail If Draft Pull Request
1 parent dbf7eb1 commit 5d0584f

File tree

1 file changed

+4
-13
lines changed

1 file changed

+4
-13
lines changed

.github/workflows/csharp.yml

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,12 @@ on:
55
branches: [ master ]
66
pull_request:
77
branches: [ master ]
8+
types: [ opened, synchronize, reopened, ready_for_review ]
89

9-
jobs:
10-
failOnDraftPullRequest:
11-
name: Fail If Draft Pull Request
12-
if: github.event.pull_request.draft == true
13-
runs-on: ubuntu-latest
14-
steps:
15-
- name: Fails Draft pull request.
16-
run: |
17-
echo "Draft pull requests should not trigger CI. Please mark the pull request as Ready for review to continue."
18-
exit 1
19-
10+
jobs:
2011
lintCodebase:
21-
name: Lint Codebase
22-
needs: [ failOnDraftPullRequest ]
12+
name: Lint Codebase if Not Draft
13+
if: github.event.pull_request.draft == false
2314
runs-on: ubuntu-latest
2415
steps:
2516
- name: Checkout code

0 commit comments

Comments
 (0)