-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(Cross): [IOAPPX-213] Remove pivotal from danger and changelog scripts #5422
Conversation
Affected stories
|
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #5422 +/- ##
==========================================
- Coverage 48.20% 47.29% -0.91%
==========================================
Files 1417 1460 +43
Lines 30539 31314 +775
Branches 7503 7606 +103
==========================================
+ Hits 14722 14811 +89
- Misses 15749 16445 +696
+ Partials 68 58 -10
... and 69 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
## Short description This PR fixes a regression introduced by [this PR](#5422) which prevents danger from displaying the proper message for PR without ticket numbers ([example](#5296 (comment))) or wrong ticket numbers ([example](#4384 (comment))). Please notice that the whole script might be simplified drastically, thus we could refactor it in the future but the scope of these PRs is to remove the support for `pivotal`. ## List of changes proposed in this pull request - Implements a check to verify if the result of `getJiraIdFromPrTitle` returns an empty array. If so, it is now explicitly returned, and subsequently utilized in `commentPrWithTicketsInfo` to send the appropriate message; - If a ticket number is detected in the PR title, `getTicketsFromTitle` now directly returns the result of `getJiraTickets`. This adjustment aligns with the approach previously utilized [here](https://github.com/pagopa/io-app/pull/2935/files#diff-8ec5aa024b8a7cf5ead4ccf7f60297c3cdca64e13a74216867bc74914829a435R44), beside the mapping to a generic ticket type which is not needed anymore. ## How to test Static checks but you can also check the history of the `pagopa-github-bot` message. As you can see I tested this without a ticket number, with a wrong ticket number, with multiple ticket numbers and also with the actual ticket number. --------- Co-authored-by: Cristiano Tofani <[email protected]> Co-authored-by: Fabio Bombardi <[email protected]>
## Short description This PR fixes a regression introduced by [this PR](#5422) which prevents danger from displaying the proper message for PR without ticket numbers ([example](#5296 (comment))) or wrong ticket numbers ([example](#4384 (comment))). Please notice that the whole script might be simplified drastically, thus we could refactor it in the future but the scope of these PRs is to remove the support for `pivotal`. ## List of changes proposed in this pull request - Implements a check to verify if the result of `getJiraIdFromPrTitle` returns an empty array. If so, it is now explicitly returned, and subsequently utilized in `commentPrWithTicketsInfo` to send the appropriate message; - If a ticket number is detected in the PR title, `getTicketsFromTitle` now directly returns the result of `getJiraTickets`. This adjustment aligns with the approach previously utilized [here](https://github.com/pagopa/io-app/pull/2935/files#diff-8ec5aa024b8a7cf5ead4ccf7f60297c3cdca64e13a74216867bc74914829a435R44), beside the mapping to a generic ticket type which is not needed anymore. ## How to test Static checks but you can also check the history of the `pagopa-github-bot` message. As you can see I tested this without a ticket number, with a wrong ticket number, with multiple ticket numbers and also with the actual ticket number. --------- Co-authored-by: Cristiano Tofani <[email protected]> Co-authored-by: Fabio Bombardi <[email protected]>
## Short description This PR fixes a regression introduced by [this PR](#5422) which prevents danger from displaying the proper message for PR without ticket numbers ([example](#5296 (comment))) or wrong ticket numbers ([example](#4384 (comment))). Please notice that the whole script might be simplified drastically, thus we could refactor it in the future but the scope of these PRs is to remove the support for `pivotal`. ## List of changes proposed in this pull request - Implements a check to verify if the result of `getJiraIdFromPrTitle` returns an empty array. If so, it is now explicitly returned, and subsequently utilized in `commentPrWithTicketsInfo` to send the appropriate message; - If a ticket number is detected in the PR title, `getTicketsFromTitle` now directly returns the result of `getJiraTickets`. This adjustment aligns with the approach previously utilized [here](https://github.com/pagopa/io-app/pull/2935/files#diff-8ec5aa024b8a7cf5ead4ccf7f60297c3cdca64e13a74216867bc74914829a435R44), beside the mapping to a generic ticket type which is not needed anymore. ## How to test Static checks but you can also check the history of the `pagopa-github-bot` message. As you can see I tested this without a ticket number, with a wrong ticket number, with multiple ticket numbers and also with the actual ticket number. --------- Co-authored-by: Cristiano Tofani <[email protected]> Co-authored-by: Fabio Bombardi <[email protected]>
Short description
This PR addresses the removal of Pivotal Tracker integration from our danger and changelog scripts, as it has been replaced by Jira.
List of changes proposed in this pull request
danger-plugin-digitalcitizenship
andpivotaljs
, with the former being a plugin with custom rules over Danger;IOAPPX
board;How to test
Static checks and tests. I also made a few tests by editing this PR title and running Danger to check its behavior, as you can tell by this messages history.
The changelog can be generated locally by testing any release command or the script directly.