Scheduled change of repository visibility from private to public #208940
🏷️ Discussion TypeProduct Feedback BodyProblemPeople are mortal. Many developers write code "for themselves" or keep their personal projects in private repositories. If a person passes away suddenly, their work may remain locked in a private repository forever and never become accessible to anyone. Currently, GitHub allows you to manually change repository visibility at any time, but there is no way to schedule this change in advance. This means that if the owner is no longer able to perform this action, the repository stays private indefinitely. Proposed SolutionAdd a feature that allows repository owners to schedule a future date when a private repository will automatically become public. This could be implemented as an additional option under "Settings > Danger Zone > Change repository visibility", where the user can select "Make public on a specific date". Use Cases
Additional ContextThis feature would be especially valuable for long-term archival and legacy planning, ensuring that valuable code is not lost simply because no one has the ability to change its visibility. |
Replies: 3 comments
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
|
@Vasiliy-Makogon there's no scheduled visibility change today. What works now:
Docs:
If this solves it, please mark it as the answer so others can find it. |
|
For the non-legacy use cases (timed release, a company open-sourcing after a set period), there's a DIY version that works today: a scheduled Actions workflow that flips the visibility on your target date. name: go-public
on:
schedule:
- cron: "0 9 1 6 *" # adjust to your target date
jobs:
publish:
runs-on: ubuntu-latest
steps:
- run: gh repo edit OWNER/REPO --visibility public
env:
GH_TOKEN: ${{ secrets.VISIBILITY_PAT }}Three caveats:
|
For the non-legacy use cases (timed release, a company open-sourcing after a set period), there's a DIY version that works today: a scheduled Actions workflow that flips the visibility on your target date.
Three caveats:
GITHUB_TOKENcan't change visibility.on.scheduleonly supports cron, not one-time dates. Point the cron at your target date and delete o…