File tree Expand file tree Collapse file tree 3 files changed +24
-1
lines changed
Expand file tree Collapse file tree 3 files changed +24
-1
lines changed Original file line number Diff line number Diff line change 1+ name : PR Assistant
2+
3+ on :
4+ pull_request :
5+ types : [opened, edited, synchronize]
6+
7+ permissions :
8+ pull-requests : write
9+ issues : write
10+ contents : write
11+
12+ jobs :
13+ pr-assistant :
14+ runs-on : ubuntu-latest
15+ steps :
16+ - uses : codex-team/action-pr-assistant@master
17+ with :
18+ check : description
19+ mode : draft
Original file line number Diff line number Diff line change 11{
22 "name" : " hawk.api" ,
3- "version" : " 1.2.29 " ,
3+ "version" : " 1.2.31 " ,
44 "main" : " index.ts" ,
55 "license" : " BUSL-1.1" ,
66 "scripts" : {
Original file line number Diff line number Diff line change @@ -575,6 +575,10 @@ module.exports = {
575575 const releasesFactory = factories . releasesFactory ;
576576 const releaseDoc = await releasesFactory . findByProjectAndRelease ( project . _id , release ) ;
577577
578+ if ( ! releaseDoc ) {
579+ throw new UserInputError ( `Release "${ release } " not found for project (id: ${ project . _id } )` ) ;
580+ }
581+
578582 let enrichedFiles = Array . isArray ( releaseDoc . files ) ? releaseDoc . files : [ ] ;
579583
580584 // If there are files to enrich, try to get their metadata
You can’t perform that action at this time.
0 commit comments