Skip to content

Latest commit

 

History

History
70 lines (56 loc) · 6.76 KB

CONTRIBUTING.md

File metadata and controls

70 lines (56 loc) · 6.76 KB

How to Contribute

We'd love to accept your patches and contributions to this project. There are just a few small guidelines you need to follow.

Contributor License Agreement

Contributions to this project must be accompanied by a signed Contributor Agreement. You (or your employer) retain the copyright to your contribution, this simply gives us permission to use and redistribute your contributions as part of the project.

Checklist before contributing

When adding your contribution using a Pull Request, you will be asked the following questions:

  1. Confirm that you have the right to submit the code that is being contributed. Please consider the origin of your code and confirm you have the appropriate rights to make the submission subject to the Apache 2.0 license that applies to everything in this repository of custom steps. If so, follow the instructions for the Contributor Agreement (which is based on the industry-standard Developer Certificate of Origin (DCO))
  2. Confirm that your contribution does not include any personally identifiable information (PII), for example, in any examples used in your README file.
  3. Confirm your contribution does not include any encryption or other export-controlled technology.

Guidelines for contributions

  1. Make sure your custom step contribution is provided as a .step file and embeds all the macro definitions it relies on.
    • This to make it very easy to install in a user's environment: Simply download the .step file from this repository and then upload it to a SAS Content folder to have it show up in the Steps panel in SAS Studio. No further steps/configuration required.
    • Once you have added a custom step from this repository to your SAS Viya environment, see (FAQ) How to share macro definitions across multiple Custom Steps for more information on how you could separate the macro definitions into separate files and store them in SAS autocall libraries.
  2. Store your contribution in its own subfolder and follow the same structure as in the _template folder
  3. Recommendations to use in the Program part (code generation) of a custom step can be found in SAS coding best practices.
  4. Recommendations to use in the UI part of a custom step can be found in UI Guidelines
  5. All submissions, including submissions by project members, require review. We use GitHub pull requests for this purpose. Consult GitHub Help for more information on using pull requests in general. The next section will go through the detailed steps from start to finish.

Steps to perform when contributing a Custom Step

High-level the procedure is as follows: Create a Fork of the public repository under your own GitHub account, create a dedicated folder in the forked repository to contain your contribution including documentation, then issue a Pull request which makes your contribution available for review by the maintainers of the public repository, and answer the questions being asked. When accepted, the maintainer will merge into the public repository.

There are multiple tools that can be used to do all of this. A list of tasks to perform using a combination of GitHub webUI and GitHub Desktop is shown below:

Task Link to recording (animated gif, no sound)
1. (GitHub webUI) Login to GitHub using your own account (a personal GitHub account should work just fine) no recording
2. (GitHub webUI) Issue a Fork request on the public SAS Studio Custom Steps repository Link to recording
3. (GitHub Desktop) Clone your Fork to a local repository (on your local harddisk) Link to recording
4. (Local directory) Create a dedicated folder for your contribution by simply copying the _template folder and name it appropriately, and replace the .step file with your .step file Link to recording
5. (Local directory) Update the README.md file in that dedicated folder to reflect your custom step and replace the screenshots in the img subdirectory with screenshots of the UI of your custom step See recording for #4
6. (GitHub Desktop) Commit the changed files and push them back to your Forked repository (aka. origin remote repository) See recording for #4
7. (GitHub webUI) Sync your Forked repository before issuing a pull request ) Link to recording
8. (GitHub Desktop/GitHub webUI) From the Forked repository, initiate a Pull request to make your contribution available for review by the maintainers of the parent repository Link to recording
9. (GitHub webUI) As part of the Pull request you will be shown a message in the GitHub webUI that asks you to answer the questions outlined in "Checklist before contributing" shown above, and also attach a signed version of the Contributor Agreement.
Note: Attach your signed agreement to the pull request message in the webUI as shown in the recording, do not put it in your forked repo.
See recording for #8
10. (GitHub webUI) Respond to questions/requests from maintainers How to view your pull request?

Note for task #8: This can be done directly from the GitHub webUI or initiated from the GitHub Desktop application. The latter will open a browser tab showing the Pull request page in the GitHub webUI.

After you have submitted the pull request the following will happen:

  • GitHub will notify the maintainers of the parent repository of a contribution/update
  • The maintainers will review the request, ask additional questions if needed, and then if everything is okay perform a merge request
  • Once the merge request has finished successfully, your contribution is available in the public repository and you (the contributor) will automatically be notified by GitHub