Add a test to verify that we only link to real issue templates (#93528)

This commit is contained in:
Ian Hickson
2021-11-19 13:13:05 -08:00
committed by GitHub
parent ce1acf5dc0
commit bde9f11831
4 changed files with 87 additions and 10 deletions

View File

@@ -110,8 +110,9 @@ $doctorText
${_projectMetadataInformation()}
''';
final String fullURL = 'https://github.com/flutter/flutter/issues/new?'
'title=${Uri.encodeQueryComponent(title)}'
final String fullURL = 'https://github.com/flutter/flutter/issues'
'/new' // We split this here to appease our lint that looks for bad "new bug" links.
'?title=${Uri.encodeQueryComponent(title)}'
'&body=${Uri.encodeQueryComponent(body)}'
'&labels=${Uri.encodeQueryComponent('tool,severe: crash')}';