Skip to content

Feature Request: Support automerge #649

Closed

Description

@mallyvai

Activity

  1. kpfleming commented on Jan 5, 2021

    @kpfleming
    Contributor

    As is often the case, this new GitHub feature is not exposed via the API (neither REST nor GraphQL). Once it is available in one of the APIs, then the Go client library for that API will need to have the new setting added... and after that, this provider can be updated. It's unfortunately a long cycle.

  2. entropitor commented on Feb 17, 2021

    @entropitor

    The API is actually already setting the value to false when you call it 😭 Is it still not there, or just not documented?

    (If you have a repository resource and you change anything else, and the toggle was true, it will be false after apply)

  3. emmekappa commented on Mar 17, 2021

    @emmekappa
  4. majormoses commented on Mar 18, 2021

    @majormoses
    Contributor

    The next step is getting an issue and merged functionality into https://github.com/google/go-github so we can get ready to consume it.

  5. jcudit commented on Mar 22, 2021

    @jcudit
    Contributor

    🤔 does go-github leverage the GraphQL API? If not, we'd be able to use our GraphQL client to toggle this configuration directly.

  6. majormoses commented on Mar 23, 2021

    @majormoses
    Contributor

    Oh I completely forgot we dont rely as heavily on that library anymore.

  7. RTodorov commented on Apr 8, 2021

    @RTodorov

    @jcudit apparently there is a lib for the graphql API already added to the project: github.com/shurcooL/githubv4

    I noticed that the graphql lib (v4) is not used in the repository logic just yet. If one wants to suggest a PR for adding the auto-merge using v4, would that be ok?

  8. s4nji commented on Apr 8, 2021

    @s4nji

    It's now exposed through a GraphQL mutation

    Github thread: https://github.community/t/enabling-auto-merge-on-a-pr-using-the-api/150797/5

    GraphQL doc reference: https://docs.github.com/en/graphql/reference/mutations#enablepullrequestautomerge

    This seems to just enable/disable automerge on specific PR; for this to work you have to allow automerge at repository level, and after a brief look at the graphql explorer, it does not seem to be exposed via the v4 API yet.

  9. jcudit commented on Apr 27, 2021

    @jcudit
    Contributor

    @RTodorov yes! PRs are welcome in general. However, as pointed out above, the v4 mutation does not apply to the repository level. We will need to wait on better support.

  10. mungojam commented on Aug 19, 2021

    @mungojam

    It's now available on the GitHub REST API and the GraphQL one

  11. Richard-de-Vries commented on Sep 1, 2021

    @Richard-de-Vries

    Hello,
    I'd like to have this functionality as well so i'm opening an issue with the go-github (and possibly implementing it as well). I hope this is okay 😄

  12. Richard-de-Vries commented on Sep 1, 2021

    @Richard-de-Vries

    Okay, i've added the option to the library. Now in the upcoming release we can make use of this property.

  13. lauraseidler commented on Sep 14, 2021

    @lauraseidler
    Contributor

    This is great news - I'd also love to see this land as soon as possible, and could also provide a PR. If I'm seeing this correctly, this would need:

    1. Bumping go-github to the now released v39
    2. Implementing allow_auto_merge on github_repository

    Not sure if it makes sense to do these in one PR, probably better to update first, and then implement separately? @jcudit any pointers?

  14. jcudit commented on Sep 28, 2021

    @jcudit
    Contributor

    Lets focus on getting v39 added to the project first. Aiming to land in the next release.

  15. usmonster commented on Oct 13, 2021

    @usmonster
    Contributor

    In case it wasn't seen, #923 is waiting to be reviewed & hopefully merged. 👀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: Featurer/repository

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions