Repo rename is not happening as expected

Open
#1,141 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 2 days

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
javascript
Domain
devops

Research direction

Start by tracing how Safe Settings handles a repository rename when the repository name and a file name change in the same pull request; the issue names no source files or tests. Check the force_create: false path and how file changes are associated with repository names. Done means the existing repository is renamed instead of treated as a new repository.

Written by the indexing model from the issue text.

Description

bug

If user wants to rename repo, if he update repo name and file name in same PR, safe settings treats it as new repository, do not rename existing repository

If force_create: false, then safe settings just logs info force_create is set to false, skipping repo creation
Safe Settings should track file level changes like file rename as per repo name, and rename existing repository
Error output, if available

NA


Context

Are you using the hosted instance of probot/settings or running your own?

Own Setup

If running your own instance, are you using it with github.com or GitHub Enterprise?

GitHub Enterprise, using self hosted Safe Settings in AKS cluster

Version of probot/settings
Version of GitHub Enterprise
Dominant language
JavaScript
Stars
942
Forks
238
PR merge metrics
No merged PRs in 30d

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from github-community-projects/safe-settings

All issues in github-community-projects/safe-settings

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.