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: set assignees for dependency upgrade PRs #1692

Merged
merged 3 commits into from
Mar 17, 2022

Conversation

Chriscbr
Copy link
Contributor

Following the documentation of https://github.com/marketplace/actions/create-pull-request


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@Chriscbr Chriscbr requested a review from a team March 17, 2022 01:48
@mergify mergify bot added the contribution/core ⚙️ used by automation label Mar 17, 2022
@codecov-commenter
Copy link

codecov-commenter commented Mar 17, 2022

Codecov Report

Merging #1692 (f9e5489) into main (d90284c) will increase coverage by 1.56%.
The diff coverage is 91.17%.

@@            Coverage Diff             @@
##             main    #1692      +/-   ##
==========================================
+ Coverage   88.06%   89.62%   +1.56%     
==========================================
  Files         132      151      +19     
  Lines        5109     6157    +1048     
  Branches     1207     1582     +375     
==========================================
+ Hits         4499     5518    +1019     
- Misses        610      637      +27     
- Partials        0        2       +2     
Impacted Files Coverage Δ
src/cdk/consts.ts 100.00% <ø> (+36.36%) ⬆️
src/dev-env.ts 83.33% <0.00%> (ø)
src/java/index.ts 100.00% <ø> (ø)
src/python/index.ts 100.00% <ø> (ø)
src/release/index.ts 100.00% <ø> (ø)
src/release/tag-version.ts 86.66% <ø> (ø)
src/release/update-changelog.ts 100.00% <ø> (ø)
src/sample-file.ts 93.75% <ø> (+0.13%) ⬆️
src/semver.ts 20.00% <ø> (ø)
src/source-code.ts 96.15% <ø> (+0.69%) ⬆️
... and 182 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 06123c9...f9e5489. Read the comment docs.

Signed-off-by: github-actions <github-actions@github.com>
@@ -367,6 +367,8 @@ export class UpgradeDependencies extends Component {
branch: branchName,
title: title,
labels: this.options.workflowOptions?.labels?.join(",") || undefined,
assignees:
this.options.workflowOptions?.assignees?.join(",") || undefined,
Copy link
Contributor

Choose a reason for hiding this comment

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

Just calling out that I found it odd that we were using || here but I guess that is because [].join(",") === "" and we want that to be undefined also. If there's more to it let me know, cuz it seems like we gravitate towards ?? more.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah I believe it's to handle the empty array case, but you're right we usually prefer ??

@mergify mergify bot merged commit d240a69 into main Mar 17, 2022
@mergify mergify bot deleted the rybickic/upgrade-assignees branch March 17, 2022 20:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contribution/core ⚙️ used by automation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants