# Open GitHub pull requests from action drafts

Canonical: https://devtune.ai/changelog/github-pull-requests-from-drafts

Published: 2026-11-02T00:00:00.000Z


If your site or docs live in GitHub, approved action drafts can go straight into a pull request for your team to review and merge under your repository's own rules. DevTune only touches `.md` and `.mdx` files inside the folder you map, steers clear of locked pages and never merges.

Install the DevTune.ai GitHub App as an account owner, then map each section of your site to a repository, branch and folder under **Settings › Content repositories** as a project admin. When a draft refreshes an existing page, the Section Editor quotes the live file from your mapped branch so edits match the file in your repo.

Select **Create pull request** on any action with a draft under a mapped folder to open a pull request on a `devtune/action-*` branch. Newer drafts update the same pull request, and **Close pull request** closes it cleanly. Turn on **Automatic pull requests** per source to open or update a pull request whenever a draft finishes, with an in-app notice to the person who started the run and a link back to the Slack thread when confirmed from Slack.

When your team merges the pull request in GitHub, DevTune marks the action live and opens its before/after measurement window in **Results**. If the GitHub App is disconnected or loses access to a mapped repository, account owners receive an in-app and email notice so you can reconnect.

GitHub content pull requests are available on every plan with content drafts. Over API v2 and MCP, your own agents can manage content sources and open or close draft pull requests. Read the [GitHub pull requests docs](https://docs.devtune.ai/integrations/github-pull-requests).
