Skip to content

Commit

Permalink
Staging (#807)
Browse files Browse the repository at this point in the history
* deps: bump pydantic from 1.10.12 to 2.8.2 in /data/src

* deps: bump @typescript-eslint/parser from 7.3.1 to 7.16.1 (#799)

* deps: bump slack-sdk from 3.28.0 to 3.31.0 in /data/src (#800)

* deps: bump framer-motion from 10.18.0 to 11.3.8 (#804)

* deps: bump pandas from 2.1.4 to 2.2.2 in /data/src (#805)

* deps: bump postcss from 8.4.29 to 8.4.39 (#806)

* clean up CONTRIBUTING.md

* set up semantic release and release drafter

* add auto labeleing and auto assigning for PRs

* chore: update dependabot target branch for testing (#797)

* chore: group all dependabot updates into single PRs

* fix labeling permissions on repo for autolabeling
  • Loading branch information
nlebovits authored Jul 19, 2024
1 parent 744474d commit fb93130
Show file tree
Hide file tree
Showing 14 changed files with 9,299 additions and 3,986 deletions.
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/[email protected]
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

0 comments on commit fb93130

Please sign in to comment.