Skip to content

Commit

Permalink
Merge pull request #16 from zeoflow/draft-release-pr-first
Browse files Browse the repository at this point in the history
Fixed first pr that appears in the Draft Release
  • Loading branch information
teogor authored Oct 8, 2020
2 parents b73c0fb + 3f67f32 commit ff699d7
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
8 changes: 8 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1 +1,9 @@
version: 2
updates:
- package-ecosystem: "pip"
directory: "/null"
schedule:
interval: "monthly"
target-branch: "null"
labels:
- "@null-dependencies"
9 changes: 4 additions & 5 deletions .zeobot/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -144,15 +144,15 @@ draft_release:
labels:
- '@security'
- '@priority-critical'
- '@dependency-update'
- '@enhancement'
- '@feature'
- '@priority-high'
- '@feature'
- '@maintenance'
# patch - version category
patch:
# these labels will influence the next version
labels:
- '@dependency-update'
- '@enhancement'
- '@priority-medium'
- '@priority-low'
- '@priority-very-low'
Expand All @@ -166,7 +166,6 @@ draft_release:
- title: 'Security'
labels:
- '@security'
- '@bug-fix'
- title: 'Enhancement'
labels:
- '@enhancement'
Expand All @@ -190,4 +189,4 @@ draft_release:

########################
# Configuration Ends #
########################
########################
2 changes: 1 addition & 1 deletion src/apps/draft-release/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class DraftRelease {
if (pullObject.merged_at) {
if (!lastRelease) {
pullRequestsList.push(pullObject)
} else if (new Date(pullObject.merged_at) >= new Date(lastRelease.created_at)) {
} else if (new Date(pullObject.merged_at) > new Date(lastRelease.created_at)) {
pullRequestsList.push(pullObject)
}
}
Expand Down

0 comments on commit ff699d7

Please sign in to comment.