bump-formula-pr: enable same-repo (no-fork) Pull Requests#6723
bump-formula-pr: enable same-repo (no-fork) Pull Requests#6723MikeMcQuaid merged 7 commits intoHomebrew:masterfrom
Conversation
MikeMcQuaid
left a comment
There was a problem hiding this comment.
Change makes sense, just thinking about ways to clean code while we do it.
There was a problem hiding this comment.
Maybe this could all be extracted to another function to make use of e.g. early returns?
|
This needs a rebase now #6718 has been merged. |
2da02a5 to
37a1203
Compare
Co-Authored-By: Mike McQuaid <mike@mikemcquaid.com>
Co-Authored-By: Mike McQuaid <mike@mikemcquaid.com>
Just to note this. Should be good to go after that (pending one final review). |
c8482bd to
c7f065b
Compare
|
Rebased the branch and it seems to be working as expected. |
|
Thanks again @maxim-belkin! |
|
I think you meant @maxim-belkin :) |
|
Oops 😉! Edited! |
|
This PR broke current standard workflow with forks. I'll shamelessly paste here the output that @chenrui333 got: It's probably because of this new function: |
|
I see
brew audit /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/babel.rb
Error: Not Found
How is it related to GitHub.check_fork_exists(tap_full_name)?
…On Sat, Nov 23, 2019 at 07:05 Dawid Dziurla ***@***.***> wrote:
This PR broke current standard workflow with forks. I'll shamelessly paste
here the output that @chenrui333 <https://github.com/chenrui333> got:
$ brew bump-formula-pr babel ***@***.***/core/-/core-7.7.4.tgz --sha256=3bb9a1d79c68a0c1c41885b86471d306b99efefabb2def80ea3a511d3476f048 --verbose
==> replace ***@***.***\/core\/\-\/core\-7\.7\.2\.tgz/ with ***@***.***/core/-/core-7.7.4.tgz"
==> replace "e2e9745819df1a040265933785536c2b3317661bc635c63e98497e4882ae6a39" with "3bb9a1d79c68a0c1c41885b86471d306b99efefabb2def80ea3a511d3476f048"
/usr/local/bin/brew audit /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/babel.rb
Error: Not Found
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#6723?email_source=notifications&email_token=ADEEAT5IO5DLOGAYZ6Q66SDQVETBNA5CNFSM4JLZWZAKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEE7UYHQ#issuecomment-557796382>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADEEAT6YRUKVNIOB4EJPLD3QVETBNANCNFSM4JLZWZAA>
.
|
|
The only change that should be noticeable after this PR is that now @dawidd6 and @chenrui333, could you please post here a repro next time you encounter an error? I see that |
|
The repro is actually pretty simple, try to Maybe it has something to do with: brew/Library/Homebrew/utils/github.rb Lines 82 to 99 in a1939cf This function is used in Also the new |
|
Ah, I think I know what the problem is. I’ll look into it later today.
…On Sat, Nov 23, 2019 at 16:14 Dawid Dziurla ***@***.***> wrote:
The repro is actually pretty simple, try to brew bump-formula-pr anything
without --no-fork option passed and the error will appear. Maybe it has
something to do with:
https://github.com/Homebrew/brew/blob/master/Library/Homebrew/utils/github.rb#L82-L99
This function is used in check_fork_exists(repo) function that you
introduced in this PR, but I only have HOMEBREW_GITHUB_API_TOKEN set and
it seems like that function depends on HOMEBREW_GITHUB_API_USERNAME being
set, yet I don't have the need to set it.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#6723?email_source=notifications&email_token=ADEEAT353V52BC2SZAVCYLDQVGTM5A5CNFSM4JLZWZAKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEE762UA#issuecomment-557837648>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADEEAT77KX5PKAZYJKOBBU3QVGTM5ANCNFSM4JLZWZAA>
.
|
brew stylewith your changes locally?brew testswith your changes locally?To build bottles with GitHub actions, we need to create PRs from branches that live in the same tap. Here I add
--no-forkoption that instructsbump-formula-prto create branch inoriginrather than in a forked repo.Tested at maxim-belkin/homebrew-xorg#581