Skip to content

Commit

Permalink
chore:staging<-main (#652) (#654)
Browse files Browse the repository at this point in the history
* feat: Add a Github Action that automatically closes stale PRs. (#647)

* chore: add to software catalog (#649)

* fix: override default so that issues are not marked as stale (#650)

* chore: update happy config task launch type (#651)

---------

Co-authored-by: maniarathi <arathi.mani@chanzuckerberg.com>
Co-authored-by: Hayden Spitzley <105455169+hspitzley-czi@users.noreply.github.com>
Co-authored-by: Daniel Hegeman <daniel.hegeman@chanzuckerberg.com>
  • Loading branch information
4 people authored Sep 14, 2023
1 parent 2a8496f commit aa484d6
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 4 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/close-stale-prs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Close inactive pull requests
on:
schedule:
- cron: "30 1 * * *"

jobs:
close-issues:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- uses: actions/stale@v5
with:
days-before-issue-stale: -1 # Do not mark any issues as stale
days-before-pr-stale: 14
days-before-pr-close: 3
stale-pr-message: "This PR has not seen any activity in the past 2 weeks; if no one comments or reviews it in the next 3 days, this PR will be closed."
close-pr-message: "This PR was closed because it has been inactive for 17 days, 3 days since being marked as stale. Please re-open if you still need this to be addressed."
stale-pr-label: "stale"
close-pr-label: "autoclosed"
exempt-draft-pr: true
repo-token: ${{ secrets.GITHUB_TOKEN }}
17 changes: 17 additions & 0 deletions .happy/catalog-info.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
apiVersion: backstage.io/v1alpha1
kind: Component
metadata:
name: explorer
annotations:
github.com/project-slug: chanzuckerberg/single-cell-explorer
backstage.io/source-location: url:https://github.com/chanzuckerberg/single-cell-explorer
happy_app: "true"
happy_directory: .happy
links:
- url: https://github.com/chanzuckerberg/single-cell-infra
title: View Infra Source
icon: github
spec:
type: service
lifecycle: production
owner: group:default/team-sci-sc
12 changes: 8 additions & 4 deletions .happy/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,31 +12,35 @@
"aws_profile": "single-cell-dev",
"secret_arn": "happy/env-rdev-config",
"terraform_directory": ".happy/terraform/envs/rdev",
"log_group_prefix": "/explorer/rdev"
"log_group_prefix": "/explorer/rdev",
"task_launch_type": "fargate"
},
"dev": {
"aws_profile": "single-cell-dev",
"secret_arn": "happy/env-explorer-dev-config",
"terraform_directory": ".happy/terraform/envs/dev",
"delete_protected": false,
"auto_run_migrations": false,
"log_group_prefix": "/explorer/dev"
"log_group_prefix": "/explorer/dev",
"task_launch_type": "fargate"
},
"stage": {
"aws_profile": "single-cell-dev",
"secret_arn": "happy/env-explorer-staging-config",
"terraform_directory": ".happy/terraform/envs/staging",
"delete_protected": false,
"auto_run_migrations": false,
"log_group_prefix": "/explorer/staging"
"log_group_prefix": "/explorer/staging",
"task_launch_type": "fargate"
},
"prod": {
"aws_profile": "single-cell-prod",
"secret_arn": "happy/env-explorer-prod-config",
"terraform_directory": ".happy/terraform/envs/prod",
"delete_protected": false,
"auto_run_migrations": false,
"log_group_prefix": "/explorer/prod"
"log_group_prefix": "/explorer/prod",
"task_launch_type": "fargate"
}
},
"tasks": {
Expand Down

0 comments on commit aa484d6

Please sign in to comment.