You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@yetus.apache.org by Allen Wittenauer <aw...@apache.org> on 2023/05/02 16:57:37 UTC

branch build when no github token?


Some CI systems (e.g., Circle CI) does not automatically provide a Github token.  Would it make sense to switch to branch builds when:

* The build is determined to be from a PR
* The PR pull fails

Obviously a warning should be given to tell the user _why_ it switched. For existing users this change might be unexpected but overall it feels more ‘friendly’ to do as it could hit that “Yetus is fine; your setup is not.”  I know it took _me_ a bit to realize what was wrong.

Re: branch build when no github token?

Posted by Nick Dimiduk <nd...@apache.org>.
Sorry for such a tardy reply.

If the user has specified a PR target for the build, I think it will be
surprising to switch to a branch build. I have also experienced the
frustration of "why doesn't it understand this PR target... oh wait, my
credentials are not present/need elevated." I'd much prefer an error
message that reminds me to check that the credentials are present and have
necessary privileges.

Thanks,
Nick

On Tue, May 2, 2023 at 6:57 PM Allen Wittenauer <aw...@apache.org> wrote:

>
>
> Some CI systems (e.g., Circle CI) does not automatically provide a Github
> token.  Would it make sense to switch to branch builds when:
>
> * The build is determined to be from a PR
> * The PR pull fails
>
> Obviously a warning should be given to tell the user _why_ it switched.
> For existing users this change might be unexpected but overall it feels
> more ‘friendly’ to do as it could hit that “Yetus is fine; your setup is
> not.”  I know it took _me_ a bit to realize what was wrong.