Skip to content

Commit

Permalink
Enable testing from public forks (#743)
Browse files Browse the repository at this point in the history
* Enable testing from public forks

Requires a label `safe-to-test` is added to PRs by a maintainer

* Add CONTRIBUTING.md to explain new label and add note in PR template
  • Loading branch information
cchalstrom-stripe authored Sep 26, 2022
1 parent 67f938c commit ca5ef93
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<!-- If this branch is in-progress, start the title with [wip] -->
<!-- Please note that a maintainer must add the `safe-for-testing` label to your pull request before GitHub actions will run and test your change. -->

## Summary
<!-- What does the code do? What have you changed? If this is a visual change consider including a screenshot/gif. -->
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/test_schema.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
name: Test JSON schema
on: push
on:
push:
pull_request_target:
types: [labeled]
jobs:
test-schema:
runs-on: ubuntu-latest
if: contains(github.event.pull_request.labels.*.name, 'safe-to-test')
steps:
- uses: actions/checkout@v3
- name: Test schema
Expand Down
7 changes: 7 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Contributing
Welcome, and thank you for your interest in contributing to Stripe Apps!

## Submitting changes
[Create a new fork of stripe-apps](https://github.com/stripe/stripe-apps/fork) to begin contributing. Develop your changes on a branch in your new fork and then [open a new pull request](https://github.com/stripe/stripe-apps/compare). A maintainer will review your pull request and merge it, or request changes if necessary.

Note: a reviewer must add the `safe-for-testing` label to your pull request before GitHub actions will run and test your changes.

0 comments on commit ca5ef93

Please sign in to comment.