Skip to content

Latest commit

 

History

History
145 lines (97 loc) · 7.8 KB

CONTRIBUTING.md

File metadata and controls

145 lines (97 loc) · 7.8 KB

Contribution Guidance

If you'd like to contribute to this repository, please read the following guidelines. Contributors are more than welcome to share their learnings with others in this centralized location.

Code of Conduct

This project has adopted the Microsoft Open Source Code of Conduct. For more information, see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

Remember that this repository is maintained by community members who volunteer their time to help. Be courteous and patient.

Question or Problem?

Please do not open GitHub issues for general support questions as the GitHub list should be used for feature requests and bug reports. This way we can more easily track actual issues or bugs from the code and keep the general discussion separate from the actual code.

If you have questions about how to use Power Platform or any of the provided prompts, please visit the Power Platform Community at https://powerusers.microsoft.com/

Typos, Issues, Bugs and contributions

Whenever you are submitting any changes to the community sample repositories, please follow these recommendations.

  • Always fork the repository to your own account before making your modifications
  • Do not combine multiple changes to one pull request. For example, submit any prompts and documentation updates using separate PRs
  • If your pull request shows merge conflicts, make sure to update your local main to be a mirror of what's in the main repo before making your modifications
  • If you are submitting multiple prompts, please create a specific PR for each of them
  • If you are submitting typo or documentation fix, you can combine modifications to single PR where suitable

Sample Naming and Structure Guidelines

When you are submitting a new sample, it has to follow up below guidelines

  • You will need to have a README.md file for your contribution, which is based on the provided template. Please copy this template to your project and update it accordingly. Your README.md must be named exactly README.md -- with capital letters -- as this is the information we use to make your sample public.
  • The sample should include a folder with the localization of your prompt. For example, for a prompt in English you would create a folder called "en-us". Inside that folder you will include a file named prompt.md which is include only the text of your prompt.
  • If you find an existing sample which is similar to yours, please extend the existing one rather than submitting a new similar sample
    • When you update existing prompts, please update also README.md file accordingly with information on provided changes and with your author details
  • When submitting a new prompt, please name the prompt folder accordingly
  • Do not use period/dot in the folder name of the provided sample
  • All folders should be in lower case

Submitting Pull Requests

Here's a high-level process for submitting new prompts or updates to existing ones.

  1. Sign the Contributor License Agreement (see below)
  2. Fork this repository pnp/powerplatform-prompts to your GitHub account
  3. Create a new branch from the main branch for your fork for the contribution
  4. Include your changes to your branch
  5. Commit your changes using descriptive commit message * These are used to track changes on the repositories for monthly communications
  6. Create a pull request in your own fork and target the main branch
  7. Fill up the provided PR template with the requested details

If you feel insecure about that process or are new to GitHub, please consider to attend the Sharing Is Caring sessions from the PnP team in which the Microsoft 365 PnP team provides hands-on guidance for first time contributors.

Before you submit your pull request consider the following guidelines:

  • Search GitHub for an open or closed Pull Request which relates to your submission. You don't want to duplicate effort.

  • Make sure you have a link in your local cloned fork to the pnp/powerplatform-prompts

    # check if you have a remote pointing to the Microsoft repo:
    git remote -v
    
    # if you see a pair of remotes (fetch & pull) that point to https://github.com/pnp/powerplatform-prompts, you're ok... otherwise you need to add one
    
    # add a new remote named "upstream" and point to the Microsoft repo
    git remote add upstream https://github.com/pnp/powerplatform-prompts.git
  • Make your changes in a new git branch:

    git checkout -b YOUR-SOLUTION-NAME main
  • Ensure your fork is updated and not behind the upstream powerplatform-prompts repo. Refer to these resources for more information on syncing your repo:

    • GitHub Help: Syncing a Fork

    • Keep Your Forked Git Repo Updated with Changes from the Original Upstream Repo

    • For a quick cheat sheet:

      # assuming you are in the folder of your locally cloned fork....
      git checkout main
      
      # assuming you have a remote named `upstream` pointing official **powerplatform-prompts** repo
      git fetch upstream
      
      # update your local main to be a mirror of what's in the main repo
      git pull --rebase upstream main
      
      # switch to your branch where you are working, say "YOUR-SOLUTION-NAME"
      git checkout YOUR-SOLUTION-NAME
      
      # update your branch to update it's fork point to the current tip of main & put your changes on top of it
      git rebase main
  • Push your branch to GitHub:

    git push origin YOUR-SOLUTION-NAME

Merging your Existing GitHub Projects with this Repository

If the sample you wish to contribute is stored in your own GitHub repository, you can use the following steps to merge it with this repository:

  • Fork the powerplatform-prompts repository from GitHub

  • Create a local git repository

    md powerplatform-prompts
    cd powerplatform-prompts
    git init
  • Pull your forked copy of powerplatform-prompts into your local repository

    git remote add origin https://github.com/yourgitaccount/powerplatform-prompts.git
    git pull origin main
  • Pull your other project from GitHub into the prompts folder of your local copy of powerplatform-prompts

    git subtree add --prefix=prompts/YOUR-SOLUTION-NAME https://github.com/yourgitaccount/YOUR-SOLUTION-NAME.git main
  • Push the changes up to your forked repository

    git push origin main

Signing the CLA

Before we can accept your pull requests you will be asked to sign electronically Contributor License Agreement (CLA), which is a pre-requisite for any contributions all PnP repositories. This will be one-time process, so for any future contributions you will not be asked to re-sign anything. After the CLA has been signed, our PnP core team members will have a look at your submission for a final verification of the submission. Please do not delete your development branch until the submission has been closed.

You can find Microsoft CLA from the following address - https://cla.microsoft.com.

Thank you for your contribution.

Sharing is caring.