René's URL Explorer Experiment


Title: Clean up stale Bitbucket steps when switching to pre-commit by Copilot · Pull Request #1293 · usethis-python/usethis-python · GitHub

Open Graph Title: Clean up stale Bitbucket steps when switching to pre-commit by Copilot · Pull Request #1293 · usethis-python/usethis-python

X Title: Clean up stale Bitbucket steps when switching to pre-commit by Copilot · Pull Request #1293 · usethis-python/usethis-python

Description: Plan to Fix Stale Bitbucket Steps Issue Problem: Tool.update_bitbucket_steps() returns early when is_pre_commit_used() is true (line 683-684), which prevents cleanup of previously-added Bitbucket steps. This leaves stale steps in bitbucket-pipelines.yml after switching to pre-commit. Solution: Before returning early when pre-commit is used, remove any managed Bitbucket steps for this tool. Checklist: Write test case that reproduces the stale steps issue Create test that adds Bitbucket steps for a tool Enable pre-commit and re-run update_bitbucket_steps() Verify that stale steps are removed Fix the bug in Tool.update_bitbucket_steps() Call remove_bitbucket_steps() when pre-commit is used before returning Ensure this only runs when Bitbucket is actually used Add check for self.is_used() to prevent removing steps for unused tools Add test to verify steps are NOT removed when tool is not used Run broader test suite to ensure no regressions (119 passed, 1 skipped) Request code review Run CodeQL security checker Security Summary No security vulnerabilities were discovered during analysis. Original prompt This section details on the original issue you should resolve Test and fix issue with stael Per copilot review of #1286 Tool.update_bitbucket_steps() returns early when pre-commit is used, which prevents cleanup of any previously-added Bitbucket steps for this tool. This can leave stale per-tool CI steps in bitbucket-pipelines.yml after a project switches to running QA via pre-commit (or after use_ci_bitbucket() is re-run), causing duplicated CI work. Consider removing this tool’s managed Bitbucket steps when is_pre_commit_used() is true (or otherwise ensuring stale steps are cleaned up) before returning. Tests should be written for this case, and the bug fixed. Comments on the Issue (you are @copilot in this section) Fixes #1292 ✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Open Graph Description: Plan to Fix Stale Bitbucket Steps Issue Problem: Tool.update_bitbucket_steps() returns early when is_pre_commit_used() is true (line 683-684), which prevents cleanup of previously-added Bitbucket s...

X Description: Plan to Fix Stale Bitbucket Steps Issue Problem: Tool.update_bitbucket_steps() returns early when is_pre_commit_used() is true (line 683-684), which prevents cleanup of previously-added Bitbucket s...

Opengraph URL: https://github.com/usethis-python/usethis-python/pull/1293

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:a7cb016f-1a55-feee-595d-7c36b73093a3
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8F3E:3C2F84:58A21:6EF2E:6A4D8A65
html-safe-nonce9882649ad3444b5700eb979143de9e3ecd16ac8a2db98ea0197725b2af3d4b76
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RjNFOjNDMkY4NDo1OEEyMTo2RUYyRTo2QTREOEE2NSIsInZpc2l0b3JfaWQiOiIyNzQxMzI4MTUzMzY4NDMxMjA1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac274f6a23a3baf887987b65dc7c99c7510b38edc5d5d539c2bb1769efff85a4a3
hovercard-subject-tagpull_request:3265978661
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/usethis-python/usethis-python/pull/1293/files
twitter:imagehttps://avatars.githubusercontent.com/in/1143301?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/in/1143301?s=400&v=4
og:image:altPlan to Fix Stale Bitbucket Steps Issue Problem: Tool.update_bitbucket_steps() returns early when is_pre_commit_used() is true (line 683-684), which prevents cleanup of previously-added Bitbucket s...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None9f8758a3953dfe943439713a6fa4f90d542a3431f10e861ca03dd7f39009f320
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/usethis-python/usethis-python git https://github.com/usethis-python/usethis-python.git
octolytics-dimension-user_id216362695
octolytics-dimension-user_loginusethis-python
octolytics-dimension-repository_id842189705
octolytics-dimension-repository_nwousethis-python/usethis-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id842189705
octolytics-dimension-repository_network_root_nwousethis-python/usethis-python
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasebffd5484f01713a661b03469b77678f72b6574ed
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/usethis-python/usethis-python/pull/1293/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fusethis-python%2Fusethis-python%2Fpull%2F1293%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fusethis-python%2Fusethis-python%2Fpull%2F1293%2Ffiles
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=usethis-python%2Fusethis-python
Reloadhttps://github.com/usethis-python/usethis-python/pull/1293/files
Reloadhttps://github.com/usethis-python/usethis-python/pull/1293/files
Reloadhttps://github.com/usethis-python/usethis-python/pull/1293/files
Please reload this pagehttps://github.com/usethis-python/usethis-python/pull/1293/files
usethis-python https://github.com/usethis-python
usethis-pythonhttps://github.com/usethis-python/usethis-python
Notifications https://github.com/login?return_to=%2Fusethis-python%2Fusethis-python
Fork 5 https://github.com/login?return_to=%2Fusethis-python%2Fusethis-python
Star 19 https://github.com/login?return_to=%2Fusethis-python%2Fusethis-python
Code https://github.com/usethis-python/usethis-python
Issues 163 https://github.com/usethis-python/usethis-python/issues
Pull requests 4 https://github.com/usethis-python/usethis-python/pulls
Actions https://github.com/usethis-python/usethis-python/actions
Security and quality 0 https://github.com/usethis-python/usethis-python/security
Insights https://github.com/usethis-python/usethis-python/pulse
Code https://github.com/usethis-python/usethis-python
Issues https://github.com/usethis-python/usethis-python/issues
Pull requests https://github.com/usethis-python/usethis-python/pulls
Actions https://github.com/usethis-python/usethis-python/actions
Security and quality https://github.com/usethis-python/usethis-python/security
Insights https://github.com/usethis-python/usethis-python/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fusethis-python%2Fusethis-python%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fusethis-python%2Fusethis-python%2Fissues%2Fnew%2Fchoose
Copilothttps://github.com/apps/copilot-swe-agent
mainhttps://github.com/usethis-python/usethis-python/tree/main
copilot/fix-stale-bitbucket-stepshttps://github.com/usethis-python/usethis-python/tree/copilot/fix-stale-bitbucket-steps
Conversation 3 https://github.com/usethis-python/usethis-python/pull/1293
Commits 3 https://github.com/usethis-python/usethis-python/pull/1293/commits
Checks 17 https://github.com/usethis-python/usethis-python/pull/1293/checks
Files changed https://github.com/usethis-python/usethis-python/pull/1293/files
Please reload this pagehttps://github.com/usethis-python/usethis-python/pull/1293/files
Clean up stale Bitbucket steps when switching to pre-commit https://github.com/usethis-python/usethis-python/pull/1293/files#top
Show all changes 3 commits https://github.com/usethis-python/usethis-python/pull/1293/files
fa86420 Initial plan Copilot Feb 10, 2026 https://github.com/usethis-python/usethis-python/pull/1293/commits/fa864206ea0770fabaa39a88cdbaabfe77103a50
2fd0fc7 Add test and fix for stale Bitbucket steps when pre-commit is enabled Copilot Feb 10, 2026 https://github.com/usethis-python/usethis-python/pull/1293/commits/2fd0fc7e1d085e649e69dafd8cadb513c88f9a36
54dab02 Fix: only remove stale Bitbucket steps when tool is actually used Copilot Feb 10, 2026 https://github.com/usethis-python/usethis-python/pull/1293/commits/54dab0294fcb2797761b2bb070fb15cc11c7da4d
Clear filters https://github.com/usethis-python/usethis-python/pull/1293/files
Please reload this pagehttps://github.com/usethis-python/usethis-python/pull/1293/files
Please reload this pagehttps://github.com/usethis-python/usethis-python/pull/1293/files
base.py https://github.com/usethis-python/usethis-python/pull/1293/files#diff-5d6bc423e5b313d5aeba5e063fcde573c808a3df7738ed68bb94d82b92a005d7
test_ruff.py https://github.com/usethis-python/usethis-python/pull/1293/files#diff-81cd43314ec01b082164964df1e010cfde9e2d023172cb0a1c1d080988827317
src/usethis/_tool/base.pyhttps://github.com/usethis-python/usethis-python/pull/1293/files#diff-5d6bc423e5b313d5aeba5e063fcde573c808a3df7738ed68bb94d82b92a005d7
View file https://github.com/usethis-python/usethis-python/blob/54dab0294fcb2797761b2bb070fb15cc11c7da4d/src/usethis/_tool/base.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/usethis-python/usethis-python/pull/1293/{{ revealButtonHref }}
https://github.com/usethis-python/usethis-python/pull/1293/files#diff-5d6bc423e5b313d5aeba5e063fcde573c808a3df7738ed68bb94d82b92a005d7
https://github.com/usethis-python/usethis-python/pull/1293/files#diff-5d6bc423e5b313d5aeba5e063fcde573c808a3df7738ed68bb94d82b92a005d7
tests/usethis/_tool/impl/test_ruff.pyhttps://github.com/usethis-python/usethis-python/pull/1293/files#diff-81cd43314ec01b082164964df1e010cfde9e2d023172cb0a1c1d080988827317
View file https://github.com/usethis-python/usethis-python/blob/54dab0294fcb2797761b2bb070fb15cc11c7da4d/tests/usethis/_tool/impl/test_ruff.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/usethis-python/usethis-python/pull/1293/{{ revealButtonHref }}
https://github.com/usethis-python/usethis-python/pull/1293/files#diff-81cd43314ec01b082164964df1e010cfde9e2d023172cb0a1c1d080988827317
Please reload this pagehttps://github.com/usethis-python/usethis-python/pull/1293/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.