Skip to content

Set status using checks #102

Closed
Closed

Description

@gr2m

Instead of setting a status directly, the new version of WIP will use the new checks API with custom actions. Check runs have two benefits

  1. A custom UI:
    image
    The "details" link in the pull request checks list links to that UI. In there we can explain why the pull request was set to "pending". That will come in handy when introducing configuration (⚙ Configuration #96)
  2. Custom actions:
    We can use a custom action to manually override the "pending" status. That will become helpful when WIP is configured to look for terms in commit messages. Once the pull request is considered ready, the author does not need to clean up the commits, they can just override the status to "ready". That should help us address Question: how do you make a PR that included WIP in a commit no longer a WIP #53

Unfortunately the custom actions are only visible to users with write access to the repository. In order to allow an author of a pull request without write access to the repository to override the status we’d need to manually explain that they need to add an HTML comment to the pull request body which looks something like this

@wip ready for review

Checks will also require to add read/write permission to check runs

Activity

  1. self-assigned this
    on Jul 1, 2018
  2. tomkerkhove commented on Jul 1, 2018

    @tomkerkhove

    Love it - Certainly the capability that you can override it in case things are not correct but you need to move on.

    Are there plans to provide a "reason" why it is being overriden?

  3. tomkerkhove commented on Jul 1, 2018

    @tomkerkhove

    Small word of feedback - Maybe make the used configuration collapsable similar to how Travis CI does this?

    Example:
    image

  4. gr2m commented on Jul 1, 2018

    @gr2m
    CollaboratorAuthor

    Maybe make the used configuration collapsable similar to how Travis CI does this?

    Oh I didn't know I can do this! Yeah I might do this if it becomes too much, good to know it’s possible

  5. gr2m commented on Jul 1, 2018

    @gr2m
    CollaboratorAuthor

    Are there plans to provide a "reason" why it is being overriden?

    No, I don’t see a need for it. What would be use cases for you?

    Note that an important aspect of the WIP app is to be used as a reference implementation of a GitHub App, now including marketplace and configuration features. I try to strike a good balance between usefulness and code complexity

  6. tomkerkhove commented on Jul 2, 2018

    @tomkerkhove

    In that case it might be less interesting but given somebody is overriding the tool so he can merge in it might be interesting to know why he is doing that.

    But given what you said I can see that it's not worth the effort.

  7. gr2m commented on Oct 14, 2018

    @gr2m
    CollaboratorAuthor

    Checks are here 🎉

    I’ve pushed it to the beta version of the WIP app and would love all your help testing it, please see my update in the 🤖📯 Updates issue.

    Thank you all for your patience and help 🙏

  8. gr2m commented on Oct 23, 2018

    @gr2m
    CollaboratorAuthor

    🎉 This issue has been resolved in version 3.1.0 🎉

    The release is available on GitHub release

    Your semantic-release bot 📦🚀

  9. gr2m commented on Oct 24, 2018

    @gr2m
    CollaboratorAuthor

    Here we go! Sign up for any plan to get the checks https://github.com/marketplace/wip. If you used WIP before, make sure to accept the new permissions

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions