Skip to content
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

feat: Display link to the hub in pull request message when available #616

Merged
merged 2 commits into from
Sep 20, 2024

Conversation

o-kopysov
Copy link
Collaborator

Pull Request

Description

Added the link to the hub link (when available) at the end of the pull request message.

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Code cleanup/refactoring
  • Documentation update
  • This change requires a documentation update
  • CI system update
  • Test Coverage update

Testing

Tested locally using unit tests.

Checklist:

  • My code follows the style guidelines of this project
  • My code meets the required code coverage for lines (90% and above)
  • My code meets the required code coverage for branches (80% and above)
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

Signed-off-by: Oleg Kopysov <o.kopysov@samsung.com>
@o-kopysov o-kopysov added the enhancement New feature or request label Sep 19, 2024
@o-kopysov o-kopysov added this to the v2.0.1 milestone Sep 19, 2024
@o-kopysov o-kopysov self-assigned this Sep 19, 2024
@codecov-commenter
Copy link

codecov-commenter commented Sep 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.94%. Comparing base (b63cb7a) to head (ff734eb).

Additional details and impacted files
@@             Coverage Diff              @@
##               main     #616      +/-   ##
============================================
+ Coverage     93.88%   93.94%   +0.05%     
- Complexity      622      624       +2     
============================================
  Files            52       52              
  Lines          2126     2130       +4     
  Branches        247      248       +1     
============================================
+ Hits           1996     2001       +5     
+ Misses           57       56       -1     
  Partials         73       73              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

m-rudyk
m-rudyk previously approved these changes Sep 19, 2024
Copy link
Collaborator

@m-rudyk m-rudyk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved, please check single comment

Comment on lines 326 to 330
+ (!StringUtils.isBlank(webhookConfig.getHubLink())
? ("\n\n###### <p align='right'>Check the validation details on the [website]("
+ webhookConfig.getHubLink()
+ ")</p>")
: ""));
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Too much embeddedness, hard to read; this needs to be stored in a separate value.
Same below

tdrozdovsky
tdrozdovsky previously approved these changes Sep 19, 2024
Signed-off-by: Oleg Kopysov <o.kopysov@samsung.com>
Copy link
Collaborator

@t-naumenko t-naumenko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Collaborator

@m-rudyk m-rudyk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved.

@o-kopysov o-kopysov merged commit 4fff427 into main Sep 20, 2024
10 checks passed
@o-kopysov o-kopysov deleted the hub-link branch September 20, 2024 06:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants