Skip to content

Rely on previously-defined constant#6801

Merged
landongrindheim merged 3 commits intomainfrom
rely-on-previously-defined-constant
Mar 9, 2023
Merged

Rely on previously-defined constant#6801
landongrindheim merged 3 commits intomainfrom
rely-on-previously-defined-constant

Conversation

@landongrindheim
Copy link
Copy Markdown
Contributor

The DEFAULT_GITHUB_REDIRECTION_SERVICE has been the default argument for PullRequestCreator, but I think it can also serve the same purpose in PullRequestCreator::MessageBuilder.

@landongrindheim landongrindheim force-pushed the rely-on-previously-defined-constant branch from 48e8995 to 0ef723f Compare March 7, 2023 21:45
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This should not make it into the default branch. It's pointing to a branch which holds the expected output of this branch's concerns. I'm open to input re: whether it should remain as part of commit history.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

☝️ was a proof-of-concept wherein I updated the redirect URL in the smoke-tests repo. This is the resulting build result 👇
image


I'll be removing that ref now.

@Nishnha
Copy link
Copy Markdown
Member

Nishnha commented Mar 8, 2023

DEFAULT_GITHUB_REDIRECTION_SERVICE is defined as github.com in the PullRequestCreator, but the redirect URL that's being replaced in this PR is github-redirect.dependabot.com.

What's the difference between the two URLs?

https://github.com/dependabot/dependabot-core/blob/main/common/lib/dependabot/pull_request_creator.rb#L26

@Nishnha
Copy link
Copy Markdown
Member

Nishnha commented Mar 8, 2023

DEFAULT_GITHUB_REDIRECTION_SERVICE is defined as github.com in the PullRequestCreator, but the redirect URL that's being replaced in this PR is github-redirect.dependabot.com.

What's the difference between the two URLs?

https://github.com/dependabot/dependabot-core/blob/main/common/lib/dependabot/pull_request_creator.rb#L26

Ah, looks like github-redirect.dependabot.com is an outdated URL. It was updated in #4441

Copy link
Copy Markdown
Member

@Nishnha Nishnha left a comment

Choose a reason for hiding this comment

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

Thanks for showing that e2e tests are passing on the use-redirect-dot-github branch.

This LGTM

The DEFAULT_GITHUB_REDIRECTION_SERVICE has been the default argument for
PullRequestCreator, but I think it can also serve the same purpose in
PullRequestCreator::MessageBuilder.
This commit is pointing to a branch which should be short-lived. It is
a proof-of-concept to show smoke tests passing under new conditions, and
is not meant to be the final state of the workflow.
This was meant to be temporary, as a proof-of-concept which could show
that tests were passing once the new endpoint was used.
@landongrindheim landongrindheim force-pushed the rely-on-previously-defined-constant branch from 812e87f to b90d2d9 Compare March 9, 2023 14:50
@landongrindheim landongrindheim merged commit e2dd887 into main Mar 9, 2023
@landongrindheim landongrindheim deleted the rely-on-previously-defined-constant branch March 9, 2023 19:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants