Skip to content

Commit

Permalink
Merge pull request #9 from hugoabernier/main
Browse files Browse the repository at this point in the history
Added workflows and updated schema
  • Loading branch information
hugoabernier committed Jul 27, 2023
2 parents 248add3 + 0c84325 commit 88e90f7
Show file tree
Hide file tree
Showing 20 changed files with 323 additions and 76 deletions.
15 changes: 15 additions & 0 deletions .github/ISSUE_RESPONSES/wrong-author.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
## Wrong or missing author @mentions

Thank you for your submission, but you appear to have forgotten to @mention the sample author(s).

To help increase your chances of getting assistance from the original authors of the sample, you should make sure to @mention the actual authors (and not the repository maintainers).

Make sure to include the `@` character before the GitHub username so that the author(s) get notified.

Please note that the sample authors will not get notified about this issue unless you update this issue accordingly.

You can find the author(s) of each sample in the sample's `README.md`, under **Solution**.

We'll automatically close this issue in 7 days unless you update the issue.

For more information on how to create a good issue, refer to our wiki for more information: [How to Create Good Issues](https://github.com/pnp/powerplatform-samples/wiki/How-to-Create-Good-Issues)
21 changes: 12 additions & 9 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
blank_issues_enabled: false
contact_links:
- name: SharePoint Developer Documentation
url: https://github.com/SharePoint/sp-dev-docs/issues/new
about: 📚 Issue related to the SharePoint Framework or its documentation? Submit an issue here.
- name: SharePoint StackExchange
url: http://sharepoint.stackexchange.com/
about: ⁉️ If you have technical questions about the framework, tag your questions with `#spfx`, `#spfx-webparts`, or `#spfx-tooling` here.
- name: Microsoft Tech Community
url: https://techcommunity.microsoft.com/t5/sharepoint-developer/bd-p/SharePointDev
about: ⁉️ Alternatively, submit your technical questions about the framework in the SharePoint Developer group here
- name: Power Apps Community
url: https://powerusers.microsoft.com/t5/Get-Help-with-Power-Apps/ct-p/PA_General
about: Get help from our passionate Power Apps community members.
- name: Power Automate Community
url: https://powerusers.microsoft.com/t5/Get-Help-with-Power-Automate/ct-p/FL_GeneralDiscussions
about: Ask the community members from the Power Automate community.
- name: Power Pages Community
url: https://powerusers.microsoft.com/t5/Get-Help-with-Power-Pages/ct-p/mpp_gethelp
about: It may be the newest family member, but the Power Pages community is one of the most passionate community there is.
- name: Power Virtual Agents Community
url: https://powerusers.microsoft.com/t5/Get-Help-with-Power-Virtual/ct-p/pva_gethelp
about: Ask questions about Power Virtual Agents in the community.
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/enhancement.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
---
name: "\U0001F4A1 Suggestion"
about: Suggest an enhancement to make one of our web part samples even better
about: Suggest an enhancement to make one of our Power powerplatform samples even better
title: Let's make SAMPLE even better
labels: type:enhancement
assignees: ''

---

Thank you for your suggestion! Use the sections below to submit a suggestion ONLY if it's related to samples in this repo. If you have an issue or question about the SharePoint Framework or its documentation, please submit it at https://aka.ms/spdev-issues
Thank you for your suggestion! Use the sections below to submit a suggestion ONLY if it's related to samples in this repo. If you have an issue or question about the Power Platform or documentation, please submit it at https://powerusers.microsoft.com/ instead.

- Suggestions that do not follow the below template will automatically be closed
- All ideas are welcome - let's build something together!
Expand Down
14 changes: 7 additions & 7 deletions .github/ISSUE_TEMPLATE/question.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
name: ❓ Question
description: Ask a question about one of our web part samples
description: Ask a question about one of our Power Platform samples
labels: ['Needs: Triage :mag:', 'type:question']

body:
- type: markdown
attributes:
value: |
Thank you for asking a question! Use the sections below to submit a question ONLY if it's related to samples in this repo. If you have an issue or question about the SharePoint Framework or its documentation, please submit it at https://aka.ms/spdev-issues
Thank you for asking a question! Use the sections below to submit a question ONLY if it's related to samples in this repo. If you have an issue or question about the Power Platform or documentation, please submit it at https://powerusers.microsoft.com/t5/Power-Apps-Community/ct-p/PowerApps1
- Questions that do not follow the below template will automatically be closed
- Don't use questions to diagnose issues with samples, that's what [bug reports](https://github.com/pnp/sp-dev-fx-webparts/issues/new?assignees=&labels=Needs%3A+Triage+%3Amag%3A%2Ctype%3Abug-suspected&template=bug-report.yml) are for!
- Don't use questions to diagnose issues with samples, that's what [bug reports](https://github.com/pnp/powerplatform-samples/issues/new?assignees=&labels=Needs%3A+Triage+%3Amag%3A%2Ctype%3Abug-suspected&template=bug-report.yml) are for!
- All questions are welcome - let us know what's on your mind!
- This repo is maintained by volunteers. Please be courteous and patient. 🙂
- Remember to include sufficient details and context.
- If you have multiple questions please submit them separately so we can track resolution.
- Screenshots are always helpful (just paste any images right here in the question)
- If you're trying to start a conversation on a topic, consider using [Discussions](https://github.com/pnp/sp-dev-fx-webparts/discussions). We want to close every issue as quickly as possible, but discussions are intended for longer conversations.
- If you're trying to start a conversation on a topic, consider using [Discussions](https://github.com/pnp/powerplatform-samples/discussions). We want to close every issue as quickly as possible, but discussions are intended for longer conversations.
- type: input
id: sample
Expand Down Expand Up @@ -55,18 +55,18 @@ body:
validations:
required: true
name: ❓ Question
description: Ask a question about one of our web part samples
description: Ask a question about one of our Power Platform samples
labels: ['Needs: Triage :mag:', 'type:question']

body:
- type: markdown
attributes:
value: |
Thank you for asking a question! Use the sections below to submit a question ONLY if it's related to samples in this repo. If you have an issue or question about the SharePoint Framework or its documentation, please submit it at https://aka.ms/spdev-issues
Thank you for asking a question! Use the sections below to submit a question ONLY if it's related to samples in this repo. If you have an issue or question about the Power Platform or documentation, please submit it at https://powerusers.microsoft.com
- Questions that do not follow the below template will automatically be closed
- Don't use questions to diagnose issues with samples, that's what [bug reports](https://github.com/pnp/sp-dev-fx-webparts/issues/new?assignees=&labels=Needs%3A+Triage+%3Amag%3A%2Ctype%3Abug-suspected&template=bug-report.yml) are for!
- Don't use questions to diagnose issues with samples, that's what [bug reports](https://github.com/pnp/powerplatform-samples/issues/new?assignees=&labels=Needs%3A+Triage+%3Amag%3A%2Ctype%3Abug-suspected&template=bug-report.yml) are for!
- All questions are welcome - let us know what's on your mind!
- This repo is maintained by volunteers. Please be courteous and patient. 🙂
- Remember to include sufficient details and context.
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/samplerequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ assignees: ''

---

Thank you for making a request! Use the sections below to submit a request ONLY for a new sample. If you have an issue or question about the SharePoint Framework or its documentation, please submit it at https://aka.ms/spdev-issues
Thank you for making a request! Use the sections below to submit a request ONLY for a new sample. If you have an issue or question about the Power Platform or documentation, please submit it at https://powerusers.microsoft.com/ instead.

- Requests that do not follow the below template will automatically be closed
- All requests are welcome - the more the merrier!
Expand Down
46 changes: 39 additions & 7 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,42 @@
## This repo does not accept pull requests
> By submitting this pull request, you agree to the [contribution guidelines](https://github.com/pnp/powerplatform-samples/blob/main/CONTRIBUTING.md)
If you have a sample that you'd like to share, please visit the appropriate repository for the type of simple you'd like to provide and look for the **Contribution Guidance** section.
> If you aren't familiar with how to contribute to open-source repositories using GitHub, or if you find the instructions on this page confusing, sign up for one of our [Sharing is Caring](https://pnp.github.io/sharing-is-caring/#pnp-sic-events) events. It's completely free, and we'll guide you through the process.
The following is a list of repositories for each sample types:
> To submit a pull request with multiple authors, make sure that at least one commit is a co-authored commit by adding a `Co-authored-by:` trailer to the commit's message. E.g.: `Co-authored-by: name <[email protected]>`
- [Power Fx Samples](https://github.com/pnp/powerfx-samples)
- [Power Apps Samples](https://github.com/pnp/powerapps-samples)
- [Power Automate Samples](https://github.com/pnp/powerautomate-samples)
- [Power Virtual Agents Samples](https://github.com/pnp/powerva-samples)
> Put an `x` in all the items that apply (`[x]`, without spaces), make notes next to any that haven't been addressed.
- [ ] Bug fix?
- [ ] New sample?
- [ ] Related issues: fixes #X, partially #Y, mentioned in #Z
- [ ] Needs API permissions?
- [ ] Has other prerequisites? (E.g. requires a list, document library, etc.)

## What's in this Pull Request?

> Please describe the changes in this PR. Sample description or details around bugs which are being fixed.
>
> _(DELETE THIS PARAGRAPH AFTER READING)_
## Checklist

> This checklist is mostly useful as a reminder of small things that can easily be forgotten – it is meant as a helpful tool rather than hoops to jump through.
>
> Put an `x` in all the items that apply ([x], no spaces), make notes next to any that haven't been addressed.
- [ ] My pull request affects only ONE sample.
- [ ] I have updated the README file.
- [ ] My README has at least one static high-resolution screenshot (i.e. not a GIF)
- [ ] My README contains complete setup instructions, including pre-requisites and permissions required

## Submitter Guidance (DELETE AFTER READING)
>
> *Please update this PR information accordingly. We'll use this as part of our release notes in monthly communications.*
>
> *Pull requests that do not follow this template will be automatically rejected.*
>
> *Please target your PR to `main` branch.*
>
> *Remember that this repository is maintained by community members who volunteer their time to help. Be courteous and patient.*
>
> _(DELETE THIS SECTION AFTER READING)_
58 changes: 58 additions & 0 deletions .github/label-actions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# Configuration for Label Actions - https://github.com/dessant/label-actions

# Actions taken when the `incomplete-submission` label is added to issues
status:invalid-issue:
# Post a comment
comment: |+
Thank you for your submission, but there isn't enough detail in the issue for us to review & move forward.
The new issue template includes sections for you to fill out.
Please resubmit your issue and complete the provided sections in the new item template so we can move forward on it refer to our wiki for more information: [How to Create Good Issues](https://github.com/pnp/powerplatform-samples/wiki/How-to-Create-Good-Issues)
# Close the issue
close: true

# Actions taken when the `incomplete-submission` label is added to issues
status:incomplete-submission:
# Post a comment
comment: |+
Thank you for your submission, but there isn't enough detail in the issue for us to review & move forward.
The new issue template includes sections for you to fill out. Please resubmit your issue and complete the provided sections in the new item template so we can move forward on it refer to our wiki for more information: [How to Create Good Issues](https://github.com/pnp/powerplatform-samples/wiki/How-to-Create-Good-Issues)
# Close the issue
close: true

# Actions taken when the `wrong-repo` label is added to issues
status:wrong-repo:
# Post a comment
comment: |+
Thank you for your submission, but this issues list is intended only for issues related to the samples in this repository.
For general issues with the Power Platform, you may want to try to post a question in the [Power Platform community](https://powerusers.microsoft.com/).
# Close the issue
close: true

# Actions taken when the `wrong-author` label is added to issues
status:wrong-author:
# Post a comment
comment: |+
## Wrong or missing contributor @mentions
Thank you for your submission, but you appear to have forgotten to @mention the sample contributor(s).
To help increase your chances of getting assistance from the original contributors of the sample, you should make sure to @mention the actual contributors (and not the repository maintainers).
Please note that the sample contributors will not get notified about this issue unless you update this issue accordingly.
You can find the contributors of each sample in the sample's `README.md`, under the aptly-named **Contributors** section.
We'll automatically close this issue in 7 days unless you update the issue.
For more information on how to create a good issue, refer to our wiki for more information: [How to Create Good Issues](https://github.com/pnp/powerplatform-samples/wiki/How-to-Create-Good-Issues)
# Close the issue
close: false

34 changes: 34 additions & 0 deletions .github/workflows/close-stale-issues.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: "Close stale issues"
on:
schedule:
- cron: "30 1 * * *"
workflow_dispatch:
permissions:
issues: write
jobs:
destale-inator:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v4
name: "Close invalid authors"
with:
days-before-issue-stale: 3
days-before-issue-close: 1
days-before-pr-stale: -1
operations-per-run: 1000
stale-issue-message: "Please note that this issue will be closed within 24 hours because it has been flagged as having invalid authors. [Read the guidance](https://github.com/pnp/powerplatform-samples/wiki/How-to-create-good-issues#mention-authors) and @mention the authors so they can respond to you."
only-issue-labels: "status:wrong-author"
close-issue-message: "Closing this issue due to lack of response. Feel free to open a new issue, but make sure to follow the guidance on [how to create good issues](https://github.com/pnp/powerplatform-samples/wiki/How-to-create-good-issues#mention-authors) and @mention the authors so they can respond to you."
- uses: actions/stale@v4
name: "Close stale issues"
with:
days-before-issue-stale: 90
days-before-issue-close: 7
days-before-pr-stale: -1
stale-issue-label: "status:no-recent-activity"
exempt-all-issue-assignees: true
exempt-issue-labels: "type:sample-request"
remove-issue-stale-when-updated: true
operations-per-run: 1000
stale-issue-message: "This issue has been marked as stale due to no progress in over 90 days. If you are still experiencing this issue, please provide additional information so we can help you resolve it."
close-issue-message: "Closing this issue due to lack of activity. If you are still encountering this issue, please do not hesitate to open a new issue. Make sure to follow the guidance on [how to create good issues](https://github.com/pnp/powerplatform-samples/wiki/How-to-create-good-issues) to increase your chances of getting the help you deserve."
14 changes: 14 additions & 0 deletions .github/workflows/label-actions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: 'Check for incomplete submissions'

on:
issues:
types: [labeled, unlabeled]

jobs:
reaction:
runs-on: ubuntu-latest
steps:
- uses: dessant/label-actions@v2
with:
github-token: ${{ github.token }}
process-only: 'issues'
59 changes: 59 additions & 0 deletions .github/workflows/merge-sample-json.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: Merge sample metadata

on:
push:
branches:
# When someone push to `main` branch
- main
paths:
- 'samples/**/assets/sample.json'

jobs:
build:
name: 'Merge all sample.json files to samples.json'
runs-on: ubuntu-latest
steps:
- name: Checkout main branch
uses: actions/checkout@v2
with:
ref: main
path: main
- name: Checkout gh-pages branch
uses: actions/checkout@v2
with:
ref: gh-pages
path: gh-pages
- name: Checkout Docs branch
uses: actions/checkout@v2
with:
ref: Docs
path: Docs
- name: Join samples
run: |
jq -s '[.[][]]' ./main/samples/**/assets/sample.json > ./Docs/docs/samples.json
- name: Validate JSON
uses: docker://orrosenblatt/validate-json-action:latest
env:
INPUT_SCHEMA: ./main/templates/metadata-schema.json
INPUT_JSONS: ./Docs/docs/samples.json
- name: copy file to gh-pages
uses: canastro/copy-file-action@master
with:
source: "./Docs/docs/samples.json"
target: "./gh-pages/samples.json"
- name: Commit samples.json to gh-pages
uses: EndBug/add-and-commit@v6
with:
cwd: ./gh-pages
branch: gh-pages
add: 'samples.json --force'
push: true
token: ${{ secrets.GITHUB_TOKEN }}
- name: Commit samples.json to Docs
uses: EndBug/add-and-commit@v6
with:
cwd: ./Docs
branch: Docs
add: 'docs/samples.json --force'
push: true
token: ${{ secrets.GITHUB_TOKEN }}
7 changes: 7 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"cSpell.words": [
"CUSTOMCONNECTOR",
"ONPREM",
"POWERAPPS"
]
}
Loading

0 comments on commit 88e90f7

Please sign in to comment.