Project completion
Once you have completed your project in OpenSAFELY, there are a number of tasks to complete to align with our open working principles.
Please read and complete the tasks below.
Update all READMEs🔗
As of the 24th October 2022 we have changed how we managed repo READMEs. You can ignore this section if you created your repo after that date.
If you created your repo before this date then you will have the older README format, which expected you to update the file as your project progressed. We have now moved to keeping that information in your project on the Jobs site.
The current README template has the updated version for new repos.
To update your repository's README to match this new README:
- Copy the content from the template repository's latest README (typically just the first section).
- Manually edit those changed sections into your research repository's README.
-
You will need to replace the placeholder string in the README's "View on OpenSAFELY" URL to point to your repository:
-
${GITHUB_REPOSITORY_NAME}
is the name of your repo.
Warning
Each branch in your repository has a separate README, each of which will need updating.
Tidy up your repo🔗
You should ensure your repo is as tidy as possible once you have completed your project. Consider the following:
License🔗
- Check the
LICENSE
file exists, and that it allows modification and distribution without cost. We recommend the MIT Licence (example).
Tests🔗
Try to ensure your automated tests (on the repo's Actions tab) are green. It's not essential, but it is a better look to be able to demonstrate your code is minimally runnable.
Contents🔗
Review your GitHub repository to make it simpler for people to explore:
- Merge or close all open Pull Requests (unless they are ongoing work in progress).
- Ensure that all branches are merged or deleted apart from the
main
ormaster
branch. Old branches may contain draft work or previous ideas that are no longer needed. Note that deleting them does not delete the files permanently, they will still be in the repository history if you need to revisit them later. You may need to leave one or two branches open if they are ongoing work in progress (try to make sure they are named clearly). - Delete any files that were not used/experimental and not used in final analysis, e.g. old versions of study definitions. Again they will still be in the repository history if you need them later.
- Are there old issues that can be closed? Some issues may have been fixed, or may be no longer relevant.
GitHub Release🔗
Consider making a GitHub Release, and linking to that: refer to GitHub's documentation on releases). A Release is a coherent snapshot of the code as it existed at a given point in time, along with a title and a description. By default, releases are displayed on your repo home page. For example, you might make separate releases of the code to accompany a preprint and the final versions of the paper.
Consider obtaining a DOI for your releases, and using that for referencing your code.
Update project status🔗
Update the status of the project on the Jobs site if relevant.
Update project workspaces🔗
Ensure each Workspace in your project on the Jobs site has a purpose and update if necessary.
Request the repo is made public🔗
If your repository is private, you can request it is made public via the jobs site. Click the "Change repo visibility" button on the workspace page of any workspace connected to it. You will be prompted to check various bits of metadata associated with the repository, its branches, connected workspaces, and the project. Once you have completed this page it will be checked by the OpenSAFELY team before being made public.
Info
You will be prompted to make it public sooner, if you first ran the code against an OpenSAFELY database more than 12 months ago.
Make your outputs on the jobs site public🔗
Once you have approval from NHSE to publish your work, consider making all outputs released to the project workspace on the jobs site "published". See the publication instructions.
Add your publication to the OpenSAFELY website🔗
Refer to our guidance on adding a publication to the OpenSAFELY website.