I haven't used any of these policies before, but I wonder if one of them
prevents GoCD from seeing changes.

https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/defining-the-mergeability-of-pull-requests/about-protected-branches

I am curious about the responses to Chad's questions.

-- Sriram

On Sat, Apr 2, 2022 at 1:00 PM Chad Wilson <[email protected]> wrote:

> Hiya
>
> I'm not sure exactly how you have GoCD set up, but I don't think GoCD has
> any way to be aware of custom git server-side policy constructs such as
> "blocking merges", merge policy or "protected branches". So I don't think
> it is possible for GoCD to behave differently based on whatever policy
> GitHub is enforcing unless perhaps you are relying on webhook integration
> <https://api.gocd.org/current/#hosting-on-github-or-github-enterprise> to
> trigger builds on GoCD, and GitHub is not making these webhook calls in
> these cases.
>
> If new commits are added to a branch, and GoCD is polling those branches
> it should trigger a build within ~ a minute assuming you don't have
> contention due to too many materials, or Github rate limits etc.
>
> If there is no other explanation in the above, it sounds like you might
> need to do some deeper investigation to see what is going on. If you
> manually trigger the pipeline, does the new commit get found? Do you see
> the new commits in the Materials view? What if you manually refresh the
> material here? What's the configuration of the pipeline in question?
>
> -Chad
>
> On Sat, Apr 2, 2022 at 10:26 AM Sifu Tian <[email protected]>
> wrote:
>
>> Hi all,
>>
>> I have a scenario that I am curious about.
>>
>> Whenever we have a code freeze, we turn on a merge block that won't allow
>> changes to be merged into our main branch in Github.
>>
>> There are occasions where we merge a change into our main branch that
>> needs to go in as an admin, but we still have a merge block on.
>>
>> I noticed that GoCD does not pick up the new change that has been merged
>> if a merge block is on.
>>
>> Is this a bug or is there something I need to configure to continue to
>> trigger a pipeline if there is a merge block but force merge into the main
>> branch.
>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "go-cd" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/go-cd/45b9a45f-a6ec-4907-a1f0-ed16779a117cn%40googlegroups.com
>> <https://groups.google.com/d/msgid/go-cd/45b9a45f-a6ec-4907-a1f0-ed16779a117cn%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
> --
> You received this message because you are subscribed to the Google Groups
> "go-cd" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/go-cd/CAA1RwH8VSk7MS24yoO94aLqucbBkgySrCiq8gAaYnwqAUJmhsA%40mail.gmail.com
> <https://groups.google.com/d/msgid/go-cd/CAA1RwH8VSk7MS24yoO94aLqucbBkgySrCiq8gAaYnwqAUJmhsA%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"go-cd" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/CANiY96bE6u%2BU9RQtvGw-OZaqBTQ%3Dk799M483%2B_MbuRzpRaB6Zw%40mail.gmail.com.

Reply via email to