Skip to content

Commit

Permalink
Standardize revert information for easier collection (flutter#3530)
Browse files Browse the repository at this point in the history
Make sure each field is of the form $description: $value.
This will make it easier to parse the information for discord notification.

*List which issues are fixed by this PR. You must list at least one issue.*

*If you had to change anything in the [flutter/tests] repo, include a link to the migration guide as per the [breaking change policy].*
  • Loading branch information
ricardoamador authored Mar 5, 2024
1 parent 7eae6dc commit fb9d34c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions auto_submit/lib/service/revert_issue_body_formatter.dart
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,14 @@ class RevertIssueBodyFormatter {
revertPrTitle = 'Reverts "$prToRevertTitle (#$prToRevertNumber)"';

// create the reverts Link for the body. Looks like Reverts flutter/cocoon#123 but will render as a link.
revertPrLink = 'Reverts ${slug.fullName}#$prToRevertNumber';
revertPrLink = '${slug.fullName}#$prToRevertNumber';

prToRevertBody ??= 'No description provided.';

// Create the body for the revert issue.
revertPrBody = '''
<!-- start_original_pr_link -->
$revertPrLink
Reverts: $revertPrLink
<!-- end_original_pr_link -->
<!-- start_initiating_author -->
Initiated by: $initiatingAuthor
Expand All @@ -63,7 +63,6 @@ Reviewed By: ${SetBase.setToString(prToRevertReviewers)}
<!-- start_revert_body -->
This change reverts the following previous change:
Original Description:
$prToRevertBody
<!-- end_revert_body -->
''';
Expand Down

0 comments on commit fb9d34c

Please sign in to comment.