> ## Documentation Index
> Fetch the complete documentation index at: https://docs.devin.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Weekly Changelog from PRs

export const UseCaseHero = ({title, description, prompt, category, features, devinUrl, agent, intent, playbookId, type}) => {
  const encodedPrompt = encodeURIComponent(prompt || '');
  const tag = 'docs-use-case-gallery';
  const utm = 'utm_source=docs&utm_medium=use-case-gallery&utm_campaign=hero-cta';
  const agentParams = (agent ? '&agent=' + agent : '') + (intent ? '&intent=' + intent : '') + (playbookId ? '&playbookId=' + playbookId : '');
  const devinHref = type === 'schedule' ? 'https://app.devin.ai/settings/schedules/create?' + utm + agentParams + (prompt ? '&prompt=' + encodedPrompt : '') : type === 'review' ? 'https://app.devin.ai/review?' + utm : agent === 'ada' ? 'https://app.devin.ai/search?' + utm + '&noSubmit=true' + (prompt ? '&prompt=' + encodedPrompt : '') : devinUrl ? devinUrl.includes('?') ? devinUrl + '&' + utm + agentParams : devinUrl + '?' + utm + agentParams : prompt ? 'https://app.devin.ai/?tags=' + tag + '&' + utm + agentParams + '&prompt=' + encodedPrompt : 'https://app.devin.ai/?' + utm + agentParams;
  const buttonLabel = type === 'schedule' ? 'Schedule in Devin ↗' : type === 'review' ? 'Set Up Devin Review ↗' : agent === 'advanced' ? 'Try in Devin ↗' : agent === 'dana' ? 'Try in Dana ↗' : agent === 'ada' ? 'Try in Ask Devin ↗' : 'Try in Devin ↗';
  const featureList = features ? features.split(',').map(f => f.trim()) : [];
  return <div className="uc-hero">
      <div className="uc-hero-inner">
        <div className="uc-hero-left">
          <h1 className="uc-hero-title">{title}</h1>
          <p className="uc-hero-desc">{description}</p>
          <div>
            <a href={devinHref} target="_blank" rel="noopener noreferrer" className="try-in-devin-btn">
              {buttonLabel}
            </a>
          </div>
        </div>
        <div className="uc-hero-meta">
          <div className="uc-meta-item">
            <span className="uc-meta-label">Author</span>
            <span className="uc-meta-value">Cognition</span>
          </div>
          <div className="uc-meta-item">
            <span className="uc-meta-label">Category</span>
            <span className="uc-meta-value">{category}</span>
          </div>
          {featureList.length > 0 && <div className="uc-meta-item">
              <span className="uc-meta-label">Features</span>
              <span className="uc-meta-value">{featureList.join(', ')}</span>
            </div>}
        </div>
      </div>
    </div>;
};

export const PromptBlock = ({children, type, agent, intent, playbookId}) => {
  var utm = 'utm_source=docs&utm_medium=use-case-gallery&utm_campaign=prompt-block';
  var tag = 'docs-use-case-gallery';
  var agentParams = (agent ? '&agent=' + agent : '') + (intent ? '&intent=' + intent : '') + (playbookId ? '&playbookId=' + playbookId : '');
  var label = type === 'schedule' ? 'Schedule in Devin' : type === 'playbook' ? 'Create Playbook' : type === 'knowledge' ? 'Add to Knowledge' : agent === 'advanced' ? 'Try in Devin' : agent === 'dana' ? 'Try in Dana' : agent === 'ada' ? 'Try in Ask Devin' : 'Try in Devin';
  var buildUrl = function (text) {
    var encoded = encodeURIComponent(text);
    if (type === 'schedule') return 'https://app.devin.ai/settings/schedules/create?' + utm + agentParams + '&prompt=' + encoded;
    if (type === 'playbook') return 'https://app.devin.ai/settings/playbooks/create?' + utm + '&body=' + encoded;
    if (type === 'knowledge') return 'https://app.devin.ai/knowledge?' + utm + '&body=' + encoded;
    if (agent === 'ada') return 'https://app.devin.ai/search?' + utm + '&noSubmit=true&prompt=' + encoded;
    return 'https://app.devin.ai/?tags=' + tag + '&' + utm + agentParams + '&prompt=' + encoded;
  };
  const ref = React.useRef(null);
  const [href, setHref] = React.useState('#');
  React.useEffect(() => {
    if (!ref.current) return;
    var codeEl = ref.current.querySelector('pre code');
    if (codeEl) {
      var text = codeEl.textContent.trim();
      if (text) setHref(buildUrl(text));
    }
    var header = ref.current.querySelector('[data-component-part="code-block-header"]');
    if (header && !header.querySelector('.prompt-block-devin-link')) {
      var link = document.createElement('a');
      link.href = href;
      link.target = '_blank';
      link.rel = 'noopener noreferrer';
      link.className = 'prompt-block-devin-link';
      link.style.cssText = 'display:inline-flex;align-items:center;gap:6px;text-decoration:none;color:#fff;font-size:11px;font-weight:500;padding:4px 10px;border-radius:6px;white-space:nowrap;background:#317CFF;transition:background 0.2s;margin-left:8px;';
      link.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"/><polyline points="15 3 21 3 21 9"/><line x1="10" y1="14" x2="21" y2="3"/></svg> ' + label;
      link.onmouseenter = function () {
        link.style.background = '#2968D9';
      };
      link.onmouseleave = function () {
        link.style.background = '#317CFF';
      };
      header.appendChild(link);
    }
    var existingLink = ref.current.querySelector('.prompt-block-devin-link');
    if (existingLink && href !== '#') existingLink.href = href;
  });
  return <div className="prompt-block" ref={ref}>{children}</div>;
};

<UseCaseHero title="Weekly Changelog from PRs" description="Compile released PRs into a categorized changelog, post it to Slack, and open a PR to update your docs." prompt="Gather all PRs merged to the release branch this week across our frontend, backend, and mobile repos. Generate a changelog grouped by Features, Bug Fixes, and Improvements. Post it to #releases in Slack and open a PR against the docs repo to update CHANGELOG.md." category="Automations" features="Schedules, Integrations" type="schedule" />

<div className="uc-detail-wrapper">
  <Tip>Don't want to set this up manually? Paste a link to this page into a Devin session and ask it to set everything up for you.</Tip>

  <Steps>
    <Step title="Connect Slack">
      Devin posts the changelog to Slack and opens a PR against your docs repo, so you'll need the Slack integration connected.

      Go to **Settings > Connections > Slack** and connect your workspace. Devin will be able to post messages to any channel it's invited to. Add Devin to the channel you want changelogs posted in (e.g., `#releases`). See the [Slack integration guide](/integrations/slack) for details.
    </Step>

    <Step title="Create the weekly schedule">
      Navigate to **Schedules** in the left sidebar of [app.devin.ai](https://app.devin.ai/?utm_source=docs\&utm_medium=use-case-gallery), or use the **Schedule Devin** option in the input box context menu on the home page. Click **Create schedule** and configure:

      * **Frequency:** Weekly — e.g., every Friday at 4:00 PM UTC
      * **Repositories:** Select the repos Devin should scan for merged PRs
      * **Slack channel:** Select a channel (e.g., `#releases`) so your team sees the changelog when it's ready
      * **Prompt:** Be specific about repos, grouping logic, tone, and output format — and tell Devin to match the style of existing entries in your changelog so the output is consistent week over week

      <PromptBlock type="schedule">
        ```txt Weekly changelog prompt theme={null}
        Gather all PRs merged to the release branch this week across these
        repos:
        - acme/frontend
        - acme/backend
        - acme/mobile

        Only include PRs that made it to the release branch — ignore PRs
        merged to main that haven't been released yet.

        Generate a changelog grouped into these sections, in this order:
        1. **New Features** — PRs with a `feat:` prefix or `feature` label
        2. **Bug Fixes** — PRs with a `fix:` prefix or `bug` label
        3. **Improvements** — performance, refactors, DX improvements
           (anything that isn't a feature, fix, or chore)

        Skip PRs labeled `internal` or `chore`.

        For each entry:
        - Lead with a short, user-facing title (not the raw PR title)
        - Follow with a one-sentence summary of what changed and why
        - Include the PR number and author handle
        - Keep the tone concise and factual — no marketing language

        Read the existing entries in CHANGELOG.md in the acme/docs repo
        and match their heading style, bullet format, and level of detail
        exactly.

        Post the result to #releases in Slack and open a PR against the
        acme/docs repo to prepend the new section to CHANGELOG.md.
        ```
      </PromptBlock>

      Devin scans each repo for PRs merged in the past 7 days, reads their titles, descriptions, and labels to categorize them, then generates output like this:

      ```markdown theme={null}
      # Changelog — Week of Feb 14, 2026

      ## New Features
      - **User profile avatars** — Upload custom avatars from the settings page (#412, @alice)
      - **CSV export for analytics** — Export any dashboard chart as CSV (#398, @bob)

      ## Bug Fixes
      - **Date picker timezone** — Fixed UTC offset in booking flow (#419, @carol)
      - **iOS nav overlap** — Resolved navbar covering content on Safari (#421, @dave)

      ## Improvements
      - **API rate limiting** — Per-key rate limits on webhook endpoints (#210, @bob)
      - **Search performance** — Full-text search 3x faster on large datasets (#405, @alice)
      ```
    </Step>

    <Step title="Tailor it to your audience">
      The same schedule can produce different outputs depending on who reads the changelog. Add [Knowledge](/product-guides/knowledge) entries to teach Devin your team's conventions, or adjust the prompt for different audiences.

      **For internal engineering teams** — include PR numbers, author handles, and links to the PRs. Mention infrastructure changes and internal tooling updates.

      **For user-facing release notes** — strip technical details, rewrite in plain language, and skip internal changes entirely:

      <PromptBlock>
        ```txt User-facing release notes theme={null}
        Rewrite this week's changelog for customers. Only include PRs that
        made it to the release branch. Remove anything internal. Use
        non-technical language — focus on what users can now do, not how
        it was built. Post to #product-updates in Slack instead of #releases.
        ```
      </PromptBlock>
    </Step>
  </Steps>
</div>
