Skip to content

Latest commit

 

History

History
115 lines (71 loc) · 7.51 KB

CONTRIBUTING.md

File metadata and controls

115 lines (71 loc) · 7.51 KB

Contributing to Govdirectory

🙇‍♀️ Thank you for contributing!

We love issues and pull requests from everyone. If you're not comfortable with those features of GitHub, you can also just start a discussion.

Direction

When contributing, it might be helpful to know what we want this tool to be. We have defined our vision as:

Our vision is a world where people are empowered to engage with their government to ensure responsive, inclusive, participatory and representative decision-making at all levels.

and we also have set a mission to:

We will enable a community powered directory where the online presence of every public organization is easily findable, queryable and trustworthy.

We hope that will help you contribute meaningfully. To get an insight in how the website is already being used, see our Matomo analytics. As a more detailed help, and to see what we already have planned, checkout our roadmap and milestones.

Problems, suggestions and questions in issues

Please help development by reporting problems, suggesting changes and asking questions. To do this, you can create a GitHub issue for this project in the GitHub Issues for the website.

In particular, we use the tags good first issue so that you can see where you can start and help wanted where we still need input.

You don't need to change any of our code or documentation to be a contributor!

Weekly collab hour

Every Friday at 15.00 CEST we have an open session in Jitsi where we hack and work on the data together. Everyone is welcome and it's open for questions.

Documentation and code in pull requests

If you want to add to the documentation or code of one of our projects you should make a pull request.

If you never used GitHub, get up to speed with one of the great free interactive courses in the GitHub learning lab on working with GitHub and working with MarkDown, the syntax this project's documentation is in.

This project is licensed CC-0, which essentially means that the project, along with your contributions is in the public domain in whatever jurisdiction possible, and everyone can do whatever they want with it.

1. Make your changes

In this project we use branches for changes and don't usually commit direct to the main branch. When you've forked this repository, please make sure to create a feature branch.

  • Create a fork of the repository

  • Create or Use an existing feature branch to commit changes

  • Add your changes in commits with a useful commit message. Include document choices or decisions you make in the commit message, this will enable everyone to be informed of your choices in the future.

  • If adding code, add and update the relevant documentation and tests before you submit your pull request.

  • Make sure to write tests that show the behavior of the newly added or changed code.

Standards to follow

These are the standards that Govdirectory uses. We encourage you to submit your contribution even if you are not sure it is fully compliant. We will work with you to make your contribution aligned before it is merged.

For icons, we are using the libraries Maki and Temaki for a consistent style. If you can't find a usable icon in those sets, try to emulate their style or find other icons similar to it.

For static bitmap images, we prefer using the .webp file format to optimize and compress images efficiently. Please consider converting new images to the .webp format using tools like TinyPNG or similar. This helps ensure that static images are optimized for website usage from the start, contributing to a faster and more efficient browsing experience.

While we haven't committed to be fully compliant with the Standard for Public Code we would appreciate if contributions brings Govdirectory closer to meeting it rather than make it deviate further.

2. Pull request

When submitting the pull request, please accompany it with a description of the problem you are trying to solve and the issue numbers that this pull request fixes.

3. Improve

Tests

Tests must pass before your code will be merged. You can run them locally and find them in scripts/tests.

Reviews

All contributions have to be reviewed by someone. Currently, all reviewing maintainers are volunteers, and will review as fast as we can, but it might take up to a week before you get a reply.

It could be that your contribution can be merged immediately by a maintainer. However, usually, a new pull request needs some improvements before it can be merged. Other contributors (or helper robots) might have feedback. If this is the case the reviewing maintainer will help you improve your documentation and code.

If your documentation and code have passed human review, it is merged.

For reviewers: check that contributions conforms to the standards, over all architecture and other documented decisions, as well as that they are in scope of the project. Also check that new or modified queries yield expected results and that it renders well on the website.

Improving data on Wikidata

You can also help the project by improving data about public agencies on Wikidata. Here is what we know that we need right now:

  1. Add all public agencies. You can start with the ones in you country. Public agencies are notable so you don't need to worry about that. Please add sources and/or external identifiers so that it is possible to verify their existence.
  2. Make sure it's possible to differentiate active agencies in contrast to historic agencies in a query.
  3. Add basic properties like country (P17) and which administrative level they are on (state, regional, local etc.). How this is modeled may vary by country. If possible add what type of agency it is (like environmental protection or taxes).
  4. Add the online platforms you can find for them. Common ones are YouTube channel (P2397), Facebook (P2013), Twitter (P2002), Instagram (P2003) and LinkedIn (P4264). These are also the one that is shown with icons in the directory. But others that they are active on (that have properties in Wikidata) are also good to add and they will show on the institution page.

Add a country in the interface

If the data of a country is of high quality it can be added to the directory. The guide Add a country gives instructions for how that is done.

Feedback

You can also help by telling us how you would like to use a resource like this.