File tree 1 file changed +15
-2
lines changed
crates/forge_analyzer/src
1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -1001,11 +1001,24 @@ impl FunctionAnalyzer<'_> {
1001
1001
fn resolve_jira_api_type ( url : & str ) -> Option < IntrinsicName > {
1002
1002
// Pattern matching to classify, eg: api.[asApp | asUser]().requestJira(route`/rest/api/3/myself`);
1003
1003
match url {
1004
+ // JSM requests
1004
1005
url if url. starts_with ( "/rest/servicedeskapi/" ) => {
1005
1006
Some ( IntrinsicName :: RequestJiraServiceManagement )
1006
1007
}
1007
- url if url. starts_with ( "/rest/agile/" ) => Some ( IntrinsicName :: RequestJiraSoftware ) ,
1008
- // Accept Jira API v2.0 or v3.0
1008
+ // Jira Software requests from https://developer.atlassian.com/cloud/jira/software/rest/intro/#introduction
1009
+ url if url. starts_with ( "/rest/agile/" )
1010
+ || url. starts_with ( "/rest/devinfo/" )
1011
+ || url. starts_with ( "/rest/featureflags/" )
1012
+ || url. starts_with ( "/rest/deployments/" )
1013
+ || url. starts_with ( "/rest/builds" )
1014
+ || url. starts_with ( "/rest/remotelinks/" )
1015
+ || url. starts_with ( "/rest/security/" )
1016
+ || url. starts_with ( "/rest/operations/" )
1017
+ || url. starts_with ( "/rest/devopscomponents/" ) =>
1018
+ {
1019
+ Some ( IntrinsicName :: RequestJiraSoftware )
1020
+ }
1021
+ // Jira requests, accept Jira API v2.0 or v3.0
1009
1022
url if url. starts_with ( "/rest/api/2/" ) || url. starts_with ( "/rest/api/3/" ) => {
1010
1023
Some ( IntrinsicName :: RequestJira )
1011
1024
}
You can’t perform that action at this time.
0 commit comments