Skip to content

Commit

Permalink
Merge pull request #932 from CodeForPhilly/staging
Browse files Browse the repository at this point in the history
Staging
  • Loading branch information
nlebovits authored Oct 2, 2024
2 parents 53b8271 + 550b56f commit 5905e6e
Show file tree
Hide file tree
Showing 9 changed files with 214 additions and 317 deletions.
138 changes: 0 additions & 138 deletions .all-contributorsrc

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ jobs:
days-before-issue-stale: 30
stale-issue-message: 'This issue has been marked as stale because it has been open for 30 days with no activity.'
stale-issue-label: 'stale'
days-before-close: -1
51 changes: 51 additions & 0 deletions .github/workflows/weekly-pr-to-main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Open PR from Staging to Main

on:
schedule:
- cron: '0 0 * * 0' # Runs every Sunday at midnight
workflow_dispatch: # Allows manual triggering
inputs:
branch:
description: 'The branch to create the PR from'
required: true
default: 'staging'

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

- name: Set up Git
run: |
git config user.name "GitHub Actions"
git config user.email "[email protected]"
- name: Check if staging is ahead of main
id: check_diff
run: |
git fetch origin main
git fetch origin staging
if git rev-list --count main..staging > 0; then
echo "::set-output name=staging_ahead::true"
else
echo "::set-output name=staging_ahead::false"
shell: bash

- name: Open PR if staging is ahead
if: steps.check_diff.outputs.staging_ahead == 'true'
uses: peter-evans/create-pull-request@v7
with:
token: ${{ secrets.GITHUB_TOKEN }}
base: main
branch: staging
title: 'Weekly PR from Staging to Main'
body: 'Automated PR to merge staging into main. This PR was generated as part of the weekly process.'
labels: 'automated-pr'
commit-message: '[create-pull-request] Merge staging into main'
draft: false

- name: Skip PR if no changes
if: steps.check_diff.outputs.staging_ahead == 'false'
run: echo "No changes to merge from staging to main."
10 changes: 10 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,16 @@ repos:
language: system
files: ^data/src/Pipfile$

# Radon MI and Halstead checks
- id: radon-check
name: Radon Maintainability and Halstead Checks
entry: |
bash -c 'radon mi -s {} | grep -E " - [CDEF] \(" && echo "Radon MI grade below B detected!" && exit 1 || echo "All MI grades are B or above."
radon hal {} -s | awk "/effort/ { if (\$3 > 2000) print FILENAME \": High Halstead effort:\" \$3 }"'
language: system
files: \.py$
exclude: ^data/src/awkde/

- repo: https://github.com/jendrikseipp/vulture
rev: 'v2.3' # or any later Vulture version
hooks:
Expand Down
34 changes: 0 additions & 34 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,40 +78,6 @@ Please see the documents in our [docs](/docs) folder for background on the proje

### Point of Contact

<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
<!-- prettier-ignore-start -->
<!-- markdownlint-disable -->
<table>
<tbody>
<tr>
<td align="center" valign="top" width="14.28%"><a href="https://github.com/nlebovits"><img src="https://avatars.githubusercontent.com/u/111617674?v=4?s=100" width="100px;" alt="Nissim Lebovits"/><br /><sub><b>Nissim Lebovits</b></sub></a><br /><a href="#doc-nlebovits" title="Documentation">📖</a> <a href="#code-nlebovits" title="Code">💻</a> <a href="#content-nlebovits" title="Content">🖋</a> <a href="#data-nlebovits" title="Data">🔣</a> <a href="#fundingFinding-nlebovits" title="Funding Finding">🔍</a> <a href="#maintenance-nlebovits" title="Maintenance">🚧</a> <a href="#projectManagement-nlebovits" title="Project Management">📆</a> <a href="#research-nlebovits" title="Research">🔬</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://kedgard-cordero.netlify.app"><img src="https://avatars.githubusercontent.com/u/97119018?v=4?s=100" width="100px;" alt="Kedgard Cordero"/><br /><sub><b>Kedgard Cordero</b></sub></a><br /><a href="#code-Kenny4297" title="Code">💻</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://github.com/brandonfcohen1"><img src="https://avatars.githubusercontent.com/u/2308834?v=4?s=100" width="100px;" alt="Brandon Cohen"/><br /><sub><b>Brandon Cohen</b></sub></a><br /><a href="#code-brandonfcohen1" title="Code">💻</a> <a href="#doc-brandonfcohen1" title="Documentation">📖</a> <a href="#infra-brandonfcohen1" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://github.com/jroper-scottlogic"><img src="https://avatars.githubusercontent.com/u/125047199?v=4?s=100" width="100px;" alt="Jack Roper"/><br /><sub><b>Jack Roper</b></sub></a><br /><a href="#code-jroper-scottlogic" title="Code">💻</a></td>
<td align="center" valign="top" width="14.28%"><a href="http://coroflot.com/willonabike"><img src="https://avatars.githubusercontent.com/u/1652510?v=4?s=100" width="100px;" alt="Will"/><br /><sub><b>Will</b></sub></a><br /><a href="#research-willonabike" title="Research">🔬</a> <a href="#design-willonabike" title="Design">🎨</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://github.com/thansidwell"><img src="https://avatars.githubusercontent.com/u/1965986?v=4?s=100" width="100px;" alt="Nathaniel Sidwell"/><br /><sub><b>Nathaniel Sidwell</b></sub></a><br /><a href="#design-thansidwell" title="Design">🎨</a> <a href="#research-thansidwell" title="Research">🔬</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://github.com/marvieqa"><img src="https://avatars.githubusercontent.com/u/102739972?v=4?s=100" width="100px;" alt="Marvie Mulder"/><br /><sub><b>Marvie Mulder</b></sub></a><br /><a href="#a11y-marvieqa" title="Accessibility">️️️️♿️</a></td>
</tr>
<tr>
<td align="center" valign="top" width="14.28%"><a href="http://markandrewgoetz.com"><img src="https://avatars.githubusercontent.com/u/4121678?v=4?s=100" width="100px;" alt="Mark Goetz"/><br /><sub><b>Mark Goetz</b></sub></a><br /><a href="#code-markgoetz" title="Code">💻</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://www.linkedin.com/in/tracyctran/"><img src="https://avatars.githubusercontent.com/u/7329799?v=4?s=100" width="100px;" alt="Tracy Tran"/><br /><sub><b>Tracy Tran</b></sub></a><br /><a href="#a11y-bacitracin" title="Accessibility">️️️️♿️</a></td>
<td align="center" valign="top" width="14.28%"><a href="http://elizabethwalker.site"><img src="https://avatars.githubusercontent.com/u/44076192?v=4?s=100" width="100px;" alt="Elizabeth Walker"/><br /><sub><b>Elizabeth Walker</b></sub></a><br /><a href="#code-19ewalker" title="Code">💻</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://alexbyrdleitner-portfolio.netlify.app/"><img src="https://avatars.githubusercontent.com/u/111008425?v=4?s=100" width="100px;" alt="Alex Byrd-Leitner"/><br /><sub><b>Alex Byrd-Leitner</b></sub></a><br /><a href="#code-AZBL" title="Code">💻</a> <a href="#a11y-AZBL" title="Accessibility">️️️️♿️</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://github.com/gturmel"><img src="https://avatars.githubusercontent.com/u/16137908?v=4?s=100" width="100px;" alt="Greg Turmel"/><br /><sub><b>Greg Turmel</b></sub></a><br /><a href="#code-gturmel" title="Code">💻</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://github.com/liathirsh"><img src="https://avatars.githubusercontent.com/u/110303683?v=4?s=100" width="100px;" alt="Liat"/><br /><sub><b>Liat</b></sub></a><br /><a href="#code-liathirsh" title="Code">💻</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://github.com/jgaye"><img src="https://avatars.githubusercontent.com/u/4049458?v=4?s=100" width="100px;" alt="Julien Gaye"/><br /><sub><b>Julien Gaye</b></sub></a><br /><a href="#code-jgaye" title="Code">💻</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://github.com/BayLadyCoder"><img src="https://avatars.githubusercontent.com/u/33296817?v=4?s=100" width="100px;" alt="Bay Chairangsaris"/><br /><sub><b>Bay Chairangsaris</b></sub></a><br /><a href="#code-BayLadyCoder" title="Code">💻</a> <a href="#doc-BayLadyCoder" title="Documentation">📖</a></td>
<td align="center" valign="top" width="14.28%"><a href="http://paulchoi.dev"><img src="https://avatars.githubusercontent.com/u/8061917?v=4?s=100" width="100px;" alt="Paul Choi"/><br /><sub><b>Paul Choi</b></sub></a><br /><a href="#code-paulhchoi" title="Code">💻</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://github.com/Amberroseweeks"><img src="https://avatars.githubusercontent.com/u/61482332?v=4?s=100" width="100px;" alt="Amberroseweeks"/><br /><sub><b>Amberroseweeks</b></sub></a><br /><a href="#code-Amberroseweeks" title="Code">💻</a> <a href="#a11y-Amberroseweeks" title="Accessibility">️️️️♿️</a></td>
</tr>
</tbody>
</table>

<!-- markdownlint-restore -->
<!-- prettier-ignore-end -->

<!-- ALL-CONTRIBUTORS-LIST:END -->

## License

MIT © Code for Philly
4 changes: 2 additions & 2 deletions data/Dockerfile-pg
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
FROM postgres:16-bullseye

LABEL maintainer="PostGIS Project - https://postgis.net" \
org.opencontainers.image.description="PostGIS 3.4.2+dfsg-1.pgdg110+1 spatial database extension with PostgreSQL 16 bullseye" \
org.opencontainers.image.description="PostGIS 3.4.3+dfsg-2.pgdg110+1 spatial database extension with PostgreSQL 16 bullseye" \
org.opencontainers.image.source="https://github.com/postgis/docker-postgis"

ENV POSTGIS_MAJOR 3
ENV POSTGIS_VERSION 3.4.2+dfsg-1.pgdg110+1
ENV POSTGIS_VERSION 3.4.3+dfsg-2.pgdg110+1

RUN apt-get update \
&& apt-cache showpkg postgresql-$PG_MAJOR-postgis-$POSTGIS_MAJOR \
Expand Down
1 change: 1 addition & 0 deletions data/src/Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ pyarrow = "*"
tqdm = "*"
vulture = "*"
pylint = "*"
radon = "*"

[dev-packages]

Expand Down
Loading

0 comments on commit 5905e6e

Please sign in to comment.