Automate your workflow

Default pipelines for pull requests

Automate your workflow by first assigning a default pipeline for submitted pull requests when you're creating the PR. This will automatically tell the ZenHub Board which pipeline the pull request should be moved to when submitted. This workflow is great to automate small tasks and save time keeping your tasks up-to-date without having to worry about spending time after your work is done.default-pr-pipeline

Connect an Issue to a GitHub pull request

Whether the pull request is open or merged, you're able to connect an issue to it. To get started, use the Connect with an issue button below the conflicts confirmation section. You'll be able to connect to any issue that lives in your ZenHub Board, including those that are cross-repo (as long as the repos are merged into the same Board).connecting-issue-to-pr

Once connected, an audit trail in both the pull request and issue will be created to provide visability to your team. Your issue will now also be pulled to the same pipeline as the pull request.

Leveraging this connection alongside the default pipeline for pull requests means you're able to automate task updates! The pull request will be nested on the issue on the Board.connected issues and prs

If a connected issue is closed, don't worry – the pull request won't automatically merge. It'll stay where it is on the Board, and will disconnect from the closed issue. Similarly, if a PR is merged but its issue is not closed, they will remain connected (and the PR will reflect the new merged state).

You can connect as many pull requests to an issue as needed. As the pull request gets merged, the icon on the Board will update next to the pull request name, indicating it is now closed. However, only one issue can be connected to a pull request.connecting-multiple-prs

As issues are closed, the connection with the pull request will disconnect. By closing an issue, the work completed in the pull request may not yet be completed. As issues moved to the closed pipeline are updated as closed automatically, this is to ensure no pull request gets auto-merged without deliberate action to do so.

Closing issues on the Board

Automate the closing of issues on the Board by simply dragging the issue into the Closed pipeline.closed-issue-to-closed-pipeline

Dragging and dropping issues into and out of the Closed pipeline will automatically open and close the issue. You can also automate this movement by changing the pipeline to and from the Closed pipeline on the sidebar dropdown for pipelines on the issue page.