Thanks for your interest in this project.
Eclipse 4diac is a Open Source Framework for Industrial Automation & Control. It is a reference implementation for the IEC 61499 standard. IEC 61499 defines a domain specific modeling language for developing distributed industrial control solutions. IEC 61499 extends IEC 61131-1 by improving the encapsulation of software components for increased re-usability, providing a vendor independent format, and simplifying support for controller to controller communication. Its distribution functionality and the inherent support for dynamic reconfiguration provide the required infrastructure for Industrie 4.0 and industrial IoT applications.
The project issues and source code are maintained in multiple GitHub repositories. Be sure to search for existing issues before you create another one. Remember that contributions are always welcome!
Create an Eclipse account if you don't already have one. See the "Eclipse Foundation Account" section in the Eclipse Committer Handbook.
All contributors, who are not committers on this Eclipse project, must electronically sign the Eclipse Contributor Agreement (ECA) via their Eclipse account. For more information, please see the Eclipse Committer Handbook.
To verify the Eclipse Contributor Agreement, GitHub contributions must use the same email address like your Eclipse account. If your GitHub account was registered with a different address, you can add your Eclipse email address to the account instead.
Also add your GitHub account name to your Eclipse account to enable automated management of access rights for Eclipse project members. You can do this by logging into your Eclipse account, choosing "Edit Profile" and add your GitHub account name in the social media links section.
If you are a committer in any of the Eclipse projects, you should receive an email containing an invite to join that project's GitHub organisation within 2 hours. You should accept the invite to maintain committer status in the GitHub organisation.
It is also recommended to add SSH public keys to your GitHub account.
The Eclipse 4diac documentation is written with AsciiDoc, which is a kind of markdown text format dedicated for documentation. You can edit the documentation with any text editor.
The AsciiDoctor Eclipse extension enables your Eclipse IDE to conviniently edit AsciiDoc files. For that you need to perform the following setup steps:
- download Eclipse for Commiters for your plattform.
- via the Eclipse Marketplace within Eclipse install Asciidoctor Editor
The recommended way for contributions is to create a fork of the main project repository and to create changes only in that fork (see Fork and pull model in the GitHub documentation). Then you can create a pull request (PR) to have your changes merged from the fork into the main project repository.
The workflow can be separated into two parts:
- Creating and managing a fork
- Creating a PR from the fork and specifics of that process in the
eclipse-platform
organization
If you are familiar with how to create and manage a fork, you can skip that part.
Use the Fork button (top right) on the GitHub repository page and choose Create a new fork to create a forked repository under your GitHub account. Whenever changes are pushed to the main project repository, you can click Sync fork in the forked repository to get the latest source code from the main project repository.
Then you have two options:
-
Clone the main project repository and add the forked repository as an additional remote
With this option, you can easily retrieve the most recent changes from the main project repository by simply pulling the
main
branch, as your default remote repository will be the main project repository.Clone the main repository to your Eclipse workspace or, if you use the Eclipse installer as explained in Creating an Development Environment, the repository is already cloned that way. The repository URL can be found by clicking the <> Code button on the top right of the <> Code tab within the GitHub page for the main project repository. When you clone the repository, it will automatically be the added as the "origin" remote to your local clone.
You then have to add your fork as an additional remote to push your changes to a branch of that fork. To this end, add the forked repository as an additional remote called "fork" (or whatever you like):
- Go to your fork on GitHub.
- Click the <> Code button on the top right of the <> Code tab copy the URL .
- Add the URL as the "fork" remote to your local clone.
Whenever the
main
branch of the main project repository changes, pulling themain
branch of your local clone will give you the current state. In case you have created a branch and committed changes to it, you can rebase it onto the updatedmain
branch. -
Clone the forked repository and add the main repository as an additional remote
With this option, you can easily create new branches for committed changes in your fork, as the default remote repository will be your forked repository.
Clone the forked repository to your Eclipse workspace or, if you use the Eclipse installer as explained in Creating an Development Environment, you have to change the URL for the repository during the setup. The repository URL can be found by clicking the <> Code button on the top right of the <> Code tab within the GitHub page for the forked repository. When you clone the forked repository, it will automatically be added as the "origin" remote to your local clone.
You then have to add the main project repository as an additional remote. To this end, add the main project repository as an additional remote called "upstream":
- Go to the main project repository on GitHub.
- Click the <> Code button on the top right of the <> Code tab copy the URL.
- Add the URL as the "upstream" remote to your local clone.
Whenever the
main
branch of the main project repository changes, you have to synchronize themain
branch of your fork. Go to the GitHub page of your forked repository and click Sync fork. You can then pull themain
branch of your local clone to retrieve the current state. In case you have created a branch and committed changes to it, you can rebase it onto the updatedmain
branch.
When you have set up your fork of a repository that you want to contribute change to, and if you have prepared a local clone for it, you can perform changes, commit them, and propose them via a pull request as follows.
-
Create a branch for the changes you want to make. Set up that branch starting from your local
main
branch and set the remote to your forked repository. -
Change code as needed to fix the issue.
-
Commit code changes to the local branch of your fork. Make multiple commits if necessary as history can be retained, but note that you will usually be asked to combine your changes to a single commit per pull request. So keep changes as small as possible and try to split them up.
-
Once the fix is ready, push the branch to your forked repository (not to the original upstream project repository).
-
Open the forked repository page in your browser, switch to the branch where the fix is developed. Click the Contribute button to start the Open Pull Request workflow.
-
On the new page verify the target branch is the correct one to merge your commits. It should be the
main
branch of the main project repository. Also verify that the list of commits contains the changes you intend to merge. If everything is fine, click on Create pull request button at the bottom right. -
If you are a committer, you can add reviewers if you want certain people to review a change. If you leave this empty, anyone from the project team will review.
-
If you push more commits to the same branch in your fork, they automatically get added to the pull request (and trigger a new round of builds and reviews). You can also amend your previous commits and force push them to your branch.
- Note that you will usually be asked to squash your commits to a single one before a PR will be merged (there is one possible exception to this, read further).
- Also note that when you bump versions in the Manifest/POM files, you could provide 2 separate commits in the same PR: one with the functional changes (i.e. in the code) and one with the version bump (i.e. in the Manifest/POM files). This is not a rule but, if necessary, it would help cherry-picking commits when merging your PR.
-
Reviewers can review the pull request on the GitHub website or fetch the PR using the Fetch GitHub PR menu entry in the Git Repositories view inside the Eclipse IDE.
-
Every PR is automatically verified to check that contributors have a valid Eclipse Contributor Agreement (ECA).
-
Once the PR is approved, it can be merged by a committer. Select what fits best given these criteria:
- Rebase and Merge (retains all commits separately; useful when developing a feature consisting of multiple independent commits)
- Squash and Merge (all commits in the PR get squashed into a single commit; useful to avoid separate "fix comments" commits)
-
After the PR is merged, the source branch used for the PR can be deleted.
-
Your fork is now out-of-date with the main (upstream) project repository. In case the "origin" remote of your local clone is the forked repository, you should get it back up to date. You can either use the Sync Fork function on GitHub to update the fork and pull the
main
branch to your local clone, or you can update the fork via git locally:- Pull the latest changes from "upstream" (the main project repository) into your local repository.
- Push those changes from your local repository to the "origin" (your fork). If you return to your fork on GitHub, you will see that the main branch is up-to-date with the main project repository.
-
Your fork is now ready for your next contribution.
<issue title> #<issue number>
Short description/summary as to why this change is being made
Fixes https://github.com/<Full URL to issues/issue #>
Example:
Improve the Documentation of how to use Adapter Interfaces #321
Adpater interfaces are a powerful feature in IEC 61499.
Eclipse 4diac IDE was one of the first IDEs to support
Adapters Interfaces in all FB Types and Subapplications.
This change extends the existing documentation of adapter
interfaces to show how Adapter Interfaces in 4diac IDE are
developed and how they are used in the different FB Types and in
Subapplications.
Fixes https://github.com/eclipse-4diac/4diac-documentation/issues/321
Contact the project developers via the project's "dev" mailing list.