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

fix: Set username/email to machine user by default #1627

Merged
merged 3 commits into from
May 11, 2023

Conversation

mrickard
Copy link
Member

@mrickard mrickard commented May 8, 2023

Proposed Release Notes

Changed post-release create-docs-pr job to use the machine user username/email, and removed the fork syntax from the docs PR.

Links

NR-96240

Details

@codecov
Copy link

codecov bot commented May 8, 2023

Codecov Report

Merging #1627 (1492e36) into main (67f39d8) will increase coverage by 0.03%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main    #1627      +/-   ##
==========================================
+ Coverage   96.52%   96.55%   +0.03%     
==========================================
  Files         200      200              
  Lines       39039    39043       +4     
  Branches       24       24              
==========================================
+ Hits        37681    37699      +18     
+ Misses       1358     1344      -14     
Flag Coverage Δ
esm-unit-tests-14.x 47.80% <ø> (ø)
esm-unit-tests-16.x 92.11% <ø> (ø)
esm-unit-tests-18.x 92.11% <ø> (ø)
integration-tests-14.x 78.96% <ø> (-0.02%) ⬇️
integration-tests-16.x 79.06% <ø> (-0.02%) ⬇️
integration-tests-18.x 79.07% <ø> (+<0.01%) ⬆️
unit-tests-14.x 90.65% <ø> (+0.03%) ⬆️
unit-tests-16.x 90.71% <ø> (+0.03%) ⬆️
unit-tests-18.x 90.70% <ø> (+0.03%) ⬆️
versioned-tests-14.x 75.28% <ø> (-0.01%) ⬇️
versioned-tests-16.x 76.57% <ø> (-0.02%) ⬇️
versioned-tests-18.x 76.57% <ø> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

see 1 file with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@bizob2828 bizob2828 self-assigned this May 9, 2023
Copy link
Member

@bizob2828 bizob2828 left a comment

Choose a reason for hiding this comment

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

a tiny comment about no longer being able to support running this locally

@@ -281,7 +284,7 @@ async function createPR(username, version, branch, dryRun, repoOwner) {
const github = new Github(repoOwner, 'docs-website')
const title = `Node.js Agent ${version} Release Notes`
const prOptions = {
head: `${username}:${branch}`,
head: `${branch}`,
Copy link
Member

Choose a reason for hiding this comment

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

this won't work when we run locally but it seems like repoOwner and username were redundant in this case right?

Copy link
Member Author

Choose a reason for hiding this comment

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

I've updated this to run locally, though it's using repoOwner for the fork instead of username.

…e main repo. Otherwise, if run locally, it should be to a fork.

Signed-off-by: mrickard <[email protected]>
@mrickard mrickard requested a review from bizob2828 May 9, 2023 20:16
Copy link
Member

@bizob2828 bizob2828 left a comment

Choose a reason for hiding this comment

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

I cannot run this locally when i specify repo-path. it tries to clone with a github token. it should not try to clone if repot-path is set or at least that was legacy behavior. I don't think we want to clone the repo every time

.github/workflows/post-release.yml Show resolved Hide resolved
@mrickard
Copy link
Member Author

@bizob2828 I've updated so that the docs repo won't be cloned if it already exists locally on repo-path. Mind taking another look?

@mrickard mrickard requested a review from bizob2828 May 11, 2023 18:56
Copy link
Member

@bizob2828 bizob2828 left a comment

Choose a reason for hiding this comment

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

Verified local run still works. We can check if automate works I guess on next release

@bizob2828 bizob2828 merged commit 3870a1f into newrelic:main May 11, 2023
@github-actions github-actions bot mentioned this pull request May 15, 2023
@bizob2828 bizob2828 added the dev:automation Indicates CI automation label May 15, 2023
@mrickard mrickard deleted the NR-96240/fix-PR-settings-and-user branch April 29, 2024 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dev:automation Indicates CI automation
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants