This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add cruft for automated template sychronization (#125)
- Loading branch information
Showing
11 changed files
with
157 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"template": "https://github.com/PrefectHQ/prefect-collection-template", | ||
"commit": "ff7c2498c022e0722e9ed99a09e7bc58d22b94d9", | ||
"checkout": null, | ||
"context": { | ||
"cookiecutter": { | ||
"full_name": "Prefect Technologies, Inc.", | ||
"email": "help@prefect.io", | ||
"github_organization": "PrefectHQ", | ||
"collection_name": "prefect-aws", | ||
"collection_slug": "prefect_aws", | ||
"collection_short_description": "Prefect integrations for interacting with AWS.", | ||
"_copy_without_render": [ | ||
".github/workflows/*.yml" | ||
], | ||
"_template": "https://github.com/PrefectHQ/prefect-collection-template" | ||
} | ||
}, | ||
"directory": null | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,32 @@ | ||
<!-- Thanks for contributing to prefect-aws! 🎉--> | ||
<!-- | ||
Thanks for opening a pull request to prefect-aws 🎉! | ||
## Summary | ||
<!-- A brief summary explaining the purpose of this PR --> | ||
We've got a few requests to help us review contributions: | ||
## Relevant Issue(s) | ||
<!-- If this PR addresses any open issues, please let us know which one here --> | ||
- Make sure that your title neatly summarizes the proposed changes. | ||
- Provide a short overview of the change and the value it adds. | ||
- Share an example to help us understand the change in user experience. | ||
- Run `pre-commit install && pre-commit run --all` for linting. | ||
## Checklist | ||
- [ ] Summarized PR's changes in the **Unreleased** section of the [CHANGELOG.md](https://github.com/PrefectHQ/prefect-aws/blob/main/CHANGELOG.md) | ||
Happy engineering! | ||
--> | ||
|
||
<!-- Include an overview here --> | ||
|
||
<!-- Link to issue --> | ||
Closes # | ||
|
||
### Example | ||
<!-- | ||
Share an example of the change in action. | ||
A code blurb is best. Changes to features should include an example that is executable by a new user. | ||
--> | ||
|
||
### Checklist | ||
<!-- These boxes may be checked after opening the pull request. --> | ||
|
||
- [ ] This pull request references any related issue by including "Closes #<ISSUE_NUMBER>" | ||
- If no issue exists and your change is not a small fix, please [create an issue](https://github.com/PrefectHQ/prefect-aws/issues/new/choose) first. | ||
- [ ] This pull request includes tests or only affects documentation. | ||
- [ ] Summarized PR's changes in [CHANGELOG.md](https://github.com/PrefectHQ/prefect-aws/blob/main/CHANGELOG.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Add issues to integrations board | ||
|
||
on: | ||
issues: | ||
types: | ||
- opened | ||
|
||
jobs: | ||
|
||
add-to-project: | ||
name: Add issue to project | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: tibdex/github-app-token@v1 | ||
id: generate-token | ||
name: Generate GitHub token | ||
with: | ||
app_id: ${{ secrets.SYNC_APP_ID }} | ||
private_key: ${{ secrets.SYNC_APP_PRIVATE_KEY }} | ||
|
||
- uses: actions/add-to-project@v0.3.0 | ||
with: | ||
project-url: ${{ secrets.ADD_TO_PROJECT_URL }} | ||
github-token: ${{ steps.generate-token.outputs.token }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: Template Synchronization | ||
on: | ||
schedule: | ||
- cron: "0 0 * * *" | ||
workflow_dispatch: | ||
|
||
jobs: | ||
submit-update-pr: | ||
name: Submit update PR | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.9 | ||
|
||
- name: Install cruft | ||
run: pip install "cookiecutter>=1.7.3,<2.0.0" cruft | ||
|
||
- name: Perform updates | ||
run: cruft update -y | ||
|
||
- uses: tibdex/github-app-token@v1 | ||
id: generate-token | ||
name: Generate GitHub token | ||
with: | ||
app_id: ${{ secrets.SYNC_APP_ID }} | ||
private_key: ${{ secrets.SYNC_APP_PRIVATE_KEY }} | ||
|
||
- name: Submit PR | ||
uses: peter-evans/create-pull-request@v4 | ||
with: | ||
commit-message: Updating collection with changes to prefect-collection-template | ||
token: ${{ steps.generate-token.outputs.token }} | ||
branch: sync-with-template | ||
delete-branch: true | ||
title: Sync Collection with changes to prefect-collection-template | ||
body: | | ||
Automated PR created to propagate changes from prefect-collection-template to this collection | ||
Feel free to make any necessary changes to this PR before merging. | ||
labels: | | ||
template sync | ||
automated pr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,14 @@ | ||
# Things to always exclude | ||
global-exclude .git* | ||
global-exclude .ipynb_checkpoints | ||
global-exclude *.py[co] | ||
global-exclude __pycache__/** | ||
|
||
# Top-level Config | ||
include versioneer.py | ||
include prefect_aws/_version.py | ||
include LICENSE | ||
include MANIFEST.in | ||
include setup.cfg | ||
include requirements.txt | ||
include requirements-dev.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,3 +16,4 @@ interrogate | |
coverage | ||
types-boto3 >= 1.0.2 | ||
boto3-stubs >= 1.24.39 | ||
pillow |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters