Welcome to new site for BeagleBoard.org GSoC 2024 projects!

Contribution#

GSoC site uses OpenBeagle Continous Integration (CI) / Continous Development (CD) which is a continuous method of software development, where you continuously build, test, deploy, and monitor iterative code changes. which means you don’t have to setup anything on your local machine to update anything on the site. To contribute to this site, you can follow the simple steps provided below.

Note

OpenBeagle is a self hosted instance of open source program called GitLab.

Fork the project#

Go to gsoc.beagleboard.io repo on OpenBeagle and click on fork button create a fork on your personal OpenBeagle profile.

../_images/fork-button.png

After clicking on the fork button, you’ll be taken to a page like shown below where you have to,

  1. Select your profile from the dropdown.

  2. Click on fork project button to initiate the forking process.

../_images/fork-project.png

Select file to edit#

After successfully forking the project you have to,

  1. Make sure you are on the forked repo on your profile, it should be https://openbeagle.org/<user-name>/gsoc.beagleboard.io where <user-name> should be replaced with your OpenBeagle username.

  2. Select any file you want to edit from the files & folders view of the repo page.

../_images/repo-file-folders.png

After selecting the file you have to click on edit button and then choose either of the options from drop-down,

  1. Open in Web IDE, choose this if you want to work on multiple files.

  2. Edit single file, choose this if you want to make some small edits in a single file.

../_images/edit-button.png

Note

Choosing Web IDE will load a Visual Studio Code Server instance which is a feature rich source code editor. Depending on the internent connection your machine will take some to load the editor and it can be a bit heavy for some machines to handle. Once fully loaded it should run smoothly but, if that is not the case then please consider using single file editor option. Considering majority of the users will be using Web IDE option, we are using the Web IDE for the rest of this guide.

Start editing#

If you select to open your file in Web IDE you’ll see a familar interface. The GitLab Web IDE is actually a rich Visual Studio Code Server hosted on OpenBeagle.

../_images/ide.png

Tip

We use reStructuredText (RST) for all of our documentation projects including this GSoC site and main docs site. If you are new to reStructuredText you can checkout our reStructuredText cheatsheet to get yourself familiar with reStructuredText.

Why not use Markdown for documentation?

Because reStructuredText stands out against Markdown as,

  1. It’s more fully-featured.

  2. It’s much more standardized and uniform.

  3. It has built-in support for extensions.

For more detailed comparison you can checkout this article on reStructuredText vs. Markdown for technical documentation

Now you have to select a file and start editing. Below image shows some,

  1. Edits made to the ideas/index.rst highlighted with green bar on left side of code editor window near line numbers.

  2. Source control button indicating (1) file updated in the repo.

../_images/make-edits.png

Tip

Just like you do on your normal Visual Studio Code desktop application, to commit your changes you can either click on Source control ( ) button or press CTRL + SHIFT + G to see all the edited fils.

After swithing to source control you have to,

  1. Add a commit message in the input feild.

  2. Click on Commit to main button or click on drop down button to choose Commit to new branch.

../_images/commit-changes.png

After clicking Commit to 'main' button you’ll be prompted with a window (shown below) with three options,

  1. Create new branch

  2. Cancel

  3. Continue

Click on Continue button if you want to commit to main (default branch) if it’s a single edit or commit. Click on Create new branch if you want to create a new branch and want to keep your main branch clean. Advantage of creating a new branch is that assigned reviewer for a pull request / merge request can also add commits to your newly created branch which is not possible for your main branch because it’s a protected branch by default.

../_images/commit-branch.png

When all done right, the lower right side of the Web IDE you’ll a prompt showing Success! Your changes have been committed message with two button,

  1. Got to Project

  2. Continue working

../_images/commit-success.png

If you click on Go to Project button, you’ll see the commit successfully applied as shown in the red box in the image below and the green tick shows on the right side indicates that the CI build was also successful.

../_images/commit.png

Congratulations!!

You have made a valuable contribution to an OpenBeagle project!

Create a pull request#

After making your changes and commiting them to your forked repo, you are set to create a new pull request / merge request so that those changes can be merged to upstream repo. To start your new PR click on the dedicated button to create a new merge request and fill out all the details. The image below shows all the feilds you have to update,

  1. Provided a good title that reflects your work.

  2. Add a detailed description of the work you have done. Add pictures whenever seems useful.

  3. (Optional) you can assign it to yourself if you’ll be working on further updates or assign it to someone else who might want to work on the comments we may provide on your work.

  4. Add lorforlinux or jkridner as reviewer for PRs with site content update or add your mentor as reviewer if it’s related to project work / proposal.

  5. If you want your commits to be shows as a single commit then you can choose the sqash commits ... check box.

  6. Check if all your commits are shown in the bottom of the screen and if everything looks okay then click on Create merge request button.

Tip

If you are still working on some updates, you may also choose Mark as draft checkbox (below title) which indicates that you are seeking feedback before making your commits suitable to merge.

../_images/merge-request.png

Now wait for the review and if comments/requests are raised then you can continue working on the project until everything looks perfect and your changes are merged in upstream.