Skip to content

Commit 482478f

Browse files
fix: bot yml fixed for draft pr
Signed-off-by: tech0priyanshu <priyanshuyadv101106@gmail.com>
1 parent 2ffeae5 commit 482478f

File tree

5 files changed

+9
-4
lines changed

5 files changed

+9
-4
lines changed

.github/workflows/bot-verified-commits.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: PythonBot - Verify PR Commits
22

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

77
permissions:
88
contents: read
@@ -16,6 +16,7 @@ concurrency:
1616
jobs:
1717
verify-commits:
1818
runs-on: ubuntu-latest
19+
if: github.event.pull_request.draft == false
1920

2021
steps:
2122
- name: Harden the runner (Audit all outbound calls)

.github/workflows/merge-conflict-bot.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: PythonBot - Check Merge Conflicts
22

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

77
permissions:
88
contents: read
@@ -15,6 +15,7 @@ concurrency:
1515
jobs:
1616
check-conflicts:
1717
runs-on: ubuntu-latest
18+
if: github.event.pull_request.draft == false
1819

1920
steps:
2021
- name: Harden the runner (Audit all outbound calls)

.github/workflows/pr-check-changelog.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,15 @@ name: 'PR Changelog Check'
33
on:
44
workflow_dispatch:
55
pull_request:
6-
types: [opened, reopened, edited, synchronize]
6+
types: [opened, reopened, edited, synchronize, ready_for_review]
77

88
permissions:
99
contents: read
1010

1111
jobs:
1212
changelog-check:
1313
runs-on: ubuntu-latest
14+
if: github.event_name == 'workflow_dispatch' || github.event.pull_request.draft == false
1415
steps:
1516
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
1617
with:

.github/workflows/pr-check-title.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77
- reopened
88
- edited
99
- synchronize
10+
- ready_for_review
1011

1112
defaults:
1213
run:
@@ -25,7 +26,7 @@ jobs:
2526
title-check:
2627
name: Title Check
2728
runs-on: ubuntu-latest
28-
if: ${{ !github.event.pull_request.base.repo.fork }}
29+
if: ${{ !github.event.pull_request.base.repo.fork && github.event.pull_request.draft == false }}
2930
permissions:
3031
checks: write
3132
statuses: write

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ This changelog is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.
88

99
### Added
1010
- Added __str__() to CustomFixedFee and updated examples and tests accordingly.
11+
- Added fix bots should not trigger when a PR is in draft
1112
- Added a github template for good first issues
1213
- Added `.github/workflows/bot-assignment-check.yml` to limit non-maintainers to 2 concurrent issue assignments.
1314
- Added all missing fields to __str__() method and updated `test_tokem_info.py`

0 commit comments

Comments
 (0)