Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: npm/template-oss
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v4.23.0
Choose a base ref
...
head repository: npm/template-oss
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v4.23.1
Choose a head ref
  • 2 commits
  • 13 files changed
  • 2 contributors

Commits on Jul 17, 2024

  1. fix: Use include-workspace-root for /main in Post Dependabot (#462)

    <!-- What / Why -->
    <!-- Describe the request in detail. What it does and why it's being
    changed. -->
    
    `steps.metadata.outputs.directory` is set to `/main`, not `/`, when
    `package.json` is at the root of the repository. I suspect adding
    `target-branch` to `dependabot.yml` (#330) added a `main` segment to
    Dependabot PR branch names, which changed the value of
    `steps.metadata.outputs.directory`.
    
    By fixing this issue, we shouldn't need to routinely use stafftools to
    fix up template-oss Dependabot PRs. 🤞🏼
    
    I couldn't quickly find a `bump @npmcli/template-oss` Dependabot PR for
    a workspace to inspect `steps.metadata.outputs.directory` and fix
    workspaces support. If that's important, we may want to either enable
    Dependabot for `npm/cli` or create a separate `template-oss-test` repo.
    It's not clear if Dependabot will create a PR for
    `workspace/test-workspace` upon our next release.
    
    ### Example Dependabot PR branch names
    
    The first PR updates just `@npmcli/template-oss`. The second updates
    multiple dependencies including `@npmcli/template-oss`.
    
    PR | branch name | segments | steps.metadata.outputs.directory
    -|-|-|-
    npm/agent#110 |
    `dependabot/npm_and_yarn/main/npmcli/template-oss-4.23.0` | 5 | `/main`
    npm/statusboard#877 |
    `dependabot/npm_and_yarn/main/dependency-updates-4de8b5bfcf` | 4 | `/`
    
    ## References
    <!-- Examples:
      Related to #0
      Depends on #0
      Blocked by #0
      Fixes #0
      Closes #0
    -->
    
    Failed "Post Dependabot" run:
    https://github.com/npm/agent/actions/runs/9963674341/job/27530225303
    
    Fix manually tested here:
    npm/agent@ef85b08
    
    
    [branchNameToDirectoryName](https://github.com/dependabot/fetch-metadata/blob/ffa2dc8ffecf17d26f6a81b83f9ef5edd33ba93a/src/dependabot/update_metadata.ts#L31)
    
    Bug report: dependabot/fetch-metadata#540
    hashtagchris authored Jul 17, 2024
    Configuration menu
    Copy the full SHA
    ca47705 View commit details
    Browse the repository at this point in the history
  2. chore: release 4.23.1 (#463)

    🤖 I have created a release *beep* *boop*
    ---
    
    
    ##
    [4.23.1](v4.23.0...v4.23.1)
    (2024-07-17)
    
    ### Bug Fixes
    
    *
    [`ca47705`](ca47705)
    [#462](#462) Use
    `include-workspace-root` for `/main` in Post Dependabot (#462)
    (@hashtagchris)
    
    ---
    This PR was generated with [Release
    Please](https://github.com/googleapis/release-please). See
    [documentation](https://github.com/googleapis/release-please#release-please).
    
    Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
    github-actions[bot] authored Jul 17, 2024
    Configuration menu
    Copy the full SHA
    4ef5cf6 View commit details
    Browse the repository at this point in the history
Loading