Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

url-helper.ts now leverages well-known environment variables. #1941

Merged
merged 11 commits into from
Oct 18, 2024
Merged

Conversation

jww3
Copy link
Contributor

@jww3 jww3 commented Oct 11, 2024

url-helper.ts had unnecessary complexity which could cause it to incorrectly infer common URLs.

This fix leverages well-known environment variables for the purposes of determining common URLs.

jww3 and others added 2 commits October 17, 2024 13:49
Co-authored-by: Erez Testiler <easyt@github.com>
@jww3 jww3 marked this pull request as ready for review October 17, 2024 12:05
@jww3 jww3 requested a review from a team as a code owner October 17, 2024 12:05
joshmgross
joshmgross previously approved these changes Oct 17, 2024
Copy link
Member

@joshmgross joshmgross left a comment

Choose a reason for hiding this comment

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

Comments are not blocking, but please take a look 😄

@jww3 jww3 merged commit 163217d into main Oct 18, 2024
12 checks passed
@jww3 jww3 deleted the api-url-fix branch October 18, 2024 08:07
renovate bot added a commit to andrei-picus-tink/auto-renovate that referenced this pull request Oct 24, 2024
| datasource  | package          | from   | to     |
| ----------- | ---------------- | ------ | ------ |
| github-tags | actions/checkout | v4.1.7 | v4.2.2 |


## [vv4.2.2](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v422)

-   `url-helper.ts` now leverages well-known environment variables by [@jww3](https://github.com/jww3) in actions/checkout#1941
-   Expand unit test coverage for `isGhes` by [@jww3](https://github.com/jww3) in actions/checkout#1946


## [vv4.2.1](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v421)

-   Check out other refs/\* by commit if provided, fall back to ref by [@orhantoy](https://github.com/orhantoy) in actions/checkout#1924


## [vv4.2.0](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v420)

-   Add Ref and Commit outputs by [@lucacome](https://github.com/lucacome) in actions/checkout#1180
-   Dependency updates by [@dependabot-](https://github.com/dependabot-) actions/checkout#1777, actions/checkout#1872
renovate bot added a commit to andrei-picus-tink/auto-renovate that referenced this pull request Dec 16, 2024
| datasource  | package          | from   | to     |
| ----------- | ---------------- | ------ | ------ |
| github-tags | actions/checkout | v4.1.7 | v4.2.2 |


## [vv4.2.2](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v422)

-   `url-helper.ts` now leverages well-known environment variables by [@jww3](https://github.com/jww3) in actions/checkout#1941
-   Expand unit test coverage for `isGhes` by [@jww3](https://github.com/jww3) in actions/checkout#1946


## [vv4.2.1](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v421)

-   Check out other refs/\* by commit if provided, fall back to ref by [@orhantoy](https://github.com/orhantoy) in actions/checkout#1924


## [vv4.2.0](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v420)

-   Add Ref and Commit outputs by [@lucacome](https://github.com/lucacome) in actions/checkout#1180
-   Dependency updates by [@dependabot-](https://github.com/dependabot-) actions/checkout#1777, actions/checkout#1872
renovate bot added a commit to andrei-picus-tink/auto-renovate that referenced this pull request Dec 16, 2024
| datasource  | package          | from   | to     |
| ----------- | ---------------- | ------ | ------ |
| github-tags | actions/checkout | v4.1.7 | v4.2.2 |


## [vv4.2.2](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v422)

-   `url-helper.ts` now leverages well-known environment variables by [@jww3](https://github.com/jww3) in actions/checkout#1941
-   Expand unit test coverage for `isGhes` by [@jww3](https://github.com/jww3) in actions/checkout#1946


## [vv4.2.1](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v421)

-   Check out other refs/\* by commit if provided, fall back to ref by [@orhantoy](https://github.com/orhantoy) in actions/checkout#1924


## [vv4.2.0](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v420)

-   Add Ref and Commit outputs by [@lucacome](https://github.com/lucacome) in actions/checkout#1180
-   Dependency updates by [@dependabot-](https://github.com/dependabot-) actions/checkout#1777, actions/checkout#1872
renovate bot added a commit to andrei-picus-tink/auto-renovate that referenced this pull request Dec 16, 2024
| datasource  | package          | from   | to     |
| ----------- | ---------------- | ------ | ------ |
| github-tags | actions/checkout | v4.1.7 | v4.2.2 |


## [vv4.2.2](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v422)

-   `url-helper.ts` now leverages well-known environment variables by [@jww3](https://github.com/jww3) in actions/checkout#1941
-   Expand unit test coverage for `isGhes` by [@jww3](https://github.com/jww3) in actions/checkout#1946


## [vv4.2.1](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v421)

-   Check out other refs/\* by commit if provided, fall back to ref by [@orhantoy](https://github.com/orhantoy) in actions/checkout#1924


## [vv4.2.0](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v420)

-   Add Ref and Commit outputs by [@lucacome](https://github.com/lucacome) in actions/checkout#1180
-   Dependency updates by [@dependabot-](https://github.com/dependabot-) actions/checkout#1777, actions/checkout#1872
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants