Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Staging #807

Merged
merged 16 commits into from
Jul 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .github/auto_assign.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Set to true to add reviewers to pull requests
addReviewers: true

# Set to true to add assignees to pull requests
addAssignees: false

# A number of reviewers added to the pull request
# Set 0 to add all the reviewers (default: 0)
numberOfReviewers: 1

# Set to true to add reviewers from different groups to pull requests
useReviewGroups: true

# A list of reviewers, split into different groups, to be added to pull requests (GitHub user name)
reviewGroups:
backend:
- zigouras
frontend:
- CodeWritingCow

# Set to true to add assignees from different groups to pull requests
useAssigneeGroups: false

# A list of keywords to be skipped the process that add reviewers if pull requests include it
skipKeywords:
- wip
21 changes: 18 additions & 3 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,39 @@ updates:
schedule:
interval: 'daily'
target-branch: 'staging'
open-pull-requests-limit: 1
commit-message:
prefix: 'deps'
open-pull-requests-limit: 10
groups:
all-actions:
applies-to: version-updates
patterns:
- '*'

- package-ecosystem: 'npm'
directory: '/'
schedule:
interval: 'weekly'
target-branch: 'staging'
open-pull-requests-limit: 1
commit-message:
prefix: 'deps'
open-pull-requests-limit: 10
groups:
all-npm:
applies-to: version-updates
patterns:
- '*'

- package-ecosystem: 'pip'
directory: '/data/src'
schedule:
interval: 'weekly'
target-branch: 'staging'
open-pull-requests-limit: 1
commit-message:
prefix: 'deps'
open-pull-requests-limit: 10
groups:
all-pip:
applies-to: version-updates
patterns:
- '*'
10 changes: 10 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
backend:
- changed-files:
- any-glob-to-any-file: 'data/**'

frontend:
- changed-files:
- any-glob-to-any-file:
- 'src/**'
- '*'
- '!(data)/**'
11 changes: 11 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name-template: 'v$NEXT_MAJOR_VERSION.$NEXT_MINOR_VERSION.$NEXT_PATCH_VERSION'
tag-template: 'v$NEXT_MAJOR_VERSION.$NEXT_MINOR_VERSION.$NEXT_PATCH_VERSION'
categories:
- title: '🚀 Features'
labels: [feature]
- title: '🐛 Bug Fixes'
labels: [bug]
- title: '📝 Documentation'
labels: [documentation]
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
version-resolver: semver
17 changes: 17 additions & 0 deletions .github/workflows/flag-stale-prs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Flag Stale PRs

on:
schedule:
- cron: '0 0 * * *' # Runs every day at midnight

jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v9
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
days-before-stale: 7
stale-pr-message: 'This PR has been marked as stale because it has been open for 7 days with no activity.'
stale-pr-label: 'stale'
only-labels: 'backend, frontend'
27 changes: 27 additions & 0 deletions .github/workflows/label-and-assign.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Label and Assign Reviewers

on: [pull_request_target]

jobs:
label:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Label PR
uses: actions/labeler@v5
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}

assign-reviewers:
runs-on: ubuntu-latest
needs: label
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Assign Reviewers
uses: kentaro-m/auto-assign-action@v2.0.0
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
configuration-path: '.github/auto_assign.yml'
20 changes: 20 additions & 0 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Release Drafter

on:
push:
branches:
- main
pull_request:
types: [closed]

jobs:
update_release_draft:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Update Release Draft
uses: release-drafter/release-drafter@v6
with:
config-name: .github/release-drafter.yml
27 changes: 27 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Release

on:
push:
branches:
- main

jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '18'

- name: Install dependencies
run: npm ci

- name: Semantic Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release
25 changes: 25 additions & 0 deletions .releaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"branches": [
"main"
],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/changelog",
"@semantic-release/npm",
"@semantic-release/github",
[
"@semantic-release/git",
{
"assets": [
"CHANGELOG.md",
"package.json",
"package-lock.json",
"data/src/Pipfile",
"data/src/Pipfile.lock"
],
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}
]
]
}
4 changes: 2 additions & 2 deletions data/src/Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ name = "pypi"
[packages]
jupyter = "*"
requests = "*"
pandas = "==2.1.4"
pandas = "==2.2.2"
geopandas = "==1.0.1"
shapely = "*"
matplotlib = "*"
Expand All @@ -21,7 +21,7 @@ psycopg2-binary = "*"
geoalchemy2 = "*"
mapbox = "*"
google-cloud-storage = "*"
pydantic = "==1.10.12"
pydantic = "==2.8.2"
data-diff = {extras = ["postgresql"], version = "*"}
future = "*"
slack-sdk = "*"
Expand Down
Loading
Loading