A machine-readable guide to this site for AI agents and language models is available at/llms.txt(https://dev.acquia.com/llms.txt on the production site).
This is the third post in a multi-part series on using GitHub for Government. In previous posts, we've discussed the basics of GitHub, as well as what the public can see and do with GitHub. In this post we'll look at what Drupal code should and shouldn't be in a public repository, and in future posts, we'll discuss users and permissions on organizational accounts and developer workflows.
What code can be safely made public and what code should be made public are not always the same thing. What custom code should or should not be made public depends on what your agency's objectives are in releasing your source code. These objectives usually include one or more of the bullets below. (If you know you're expected to open source your code, but you're not sure which of these objectives is driving the decision, I recommend finding out. This can help you avoid a lot of headache and confusion down the road.)
Possible objectives for releasing source code to the public:
The following lists of bullet points describe the different types of code that power Drupal-based web applications. These are things you can release. With your agency's particular objectives above in mind, hopefully this will help clarify what you should release in your own particular situation.
These are the different types of projects that make up most of a Drupal application, and the different types of projects that people contribute on drupal.org. If your objective is reuse, these are the most important things to share:
These are things developers do not release on drupal.org, but they may be valuable to others to serve as an example or starting point for similar projects.
Do NOT release:
In the next post in this series on GitHub for Government, we'll discuss users and permissions on organizational accounts.