Skip to content

Commit da183eb

Browse files
authored
Merge branch 'master' into feat/conventions-sync-note
2 parents 661180a + c505ba9 commit da183eb

File tree

807 files changed

+37701
-11493
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

807 files changed

+37701
-11493
lines changed

.github/ISSUE_TEMPLATE/art-request-template.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,23 @@ labels:
77
assignees:
88
- lottiecoxon
99
- dphawkins1617
10+
- heidiberton
1011
projects:
1112
- PostHog/65
1213

1314
---
1415

1516
> **How art requests work**
16-
> By default, Lottie and Daniel should be assigned to all art requests and the request will be added to [the art project board](https://github.com/orgs/PostHog/projects/65). They will decide who will work on this brief and reassign as needed. You can check the project board for updates if needed.
17+
> By default, Lottie, Heidi & Daniel should be assigned to all art requests and the request will be added to [the art project board](https://github.com/orgs/PostHog/projects/65). They will decide who will work on this brief and reassign as needed. You can check the project board for updates if needed.
1718
>
18-
> If your request is genuinely urgent, please share in [#team-marketing channel](https://posthog.slack.com/archives/C08CG24E3SR) and mention Lottie, Daniel, and/or Cory.
19+
> If your request is genuinely urgent, please share in [#team-marketing channel](https://posthog.slack.com/archives/C08CG24E3SR) and mention Lottie, Heidi, Daniel, and/or Cory.
1920
2021
## Outline
2122
_Avoid being overly prescriptive and instead provide context about what you're trying to convey - i.e. a feeling, reaction, or narrative._
2223
_If it's for an article, share the draft headline and some bullet points of what it's about._
2324

2425
## Deadline & Priority
25-
_Leave reasonable time. A week is the minimum. Two weeks notice is ideal._
26+
_Leave reasonable time. A week is the minimum. Two weeks notice is good, even more time is ideal._
2627

2728
## Technical requirements
2829
_Dimensions, file type etc._

.github/pull_request_template.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@
77
## Checklist
88

99
- [ ] Words are spelled using American English
10+
- [ ] PostHog product names are in [title case](https://apastyle.apa.org/style-grammar-guidelines/capitalization/title-case). It's "Product Analytics" not "Product analytics". If talking about a category of product, use sentence case e.g. "There are a lot of product analytics tools, but PostHog's Product Analytics is the best"
1011
- [ ] Titles are in [sentence case](https://apastyle.apa.org/style-grammar-guidelines/capitalization/sentence-case)
11-
- [ ] Feature names are in **[sentence case too](https://apastyle.apa.org/style-grammar-guidelines/capitalization/sentence-case)**. It's "product analytics" not "Product Analytics" and so on.
12+
- [ ] Feature names are in **[sentence case](https://apastyle.apa.org/style-grammar-guidelines/capitalization/sentence-case)**. It's "Click here to create a trend insight" not "... create a Trend Insight" and so on.
1213
- [ ] Use relative URLs for internal links
1314
- [ ] If I moved a page, I added a redirect in `vercel.json`
1415
- [ ] Remove this template if you're not going to fill it out!

.github/workflows/automerge.yml

Lines changed: 0 additions & 35 deletions
This file was deleted.

.github/workflows/checks.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,16 @@ jobs:
88
name: Spelling
99
runs-on: ubuntu-latest
1010
if: github.event.pull_request.head.repo.full_name == github.repository
11+
permissions:
12+
contents: write
1113

1214
steps:
13-
- uses: actions/checkout@v2
15+
- uses: actions/checkout@v6
1416
with:
1517
ref: ${{ github.head_ref }}
1618

1719
- name: Set up Python 3.8
18-
uses: actions/setup-python@v2
20+
uses: actions/setup-python@v6
1921
with:
2022
python-version: 3.8
2123

.github/workflows/ci-security.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
on:
2+
push:
3+
branches:
4+
- master
5+
pull_request:
6+
7+
name: Security
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
ensure-pinned-actions:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v6
18+
- name: Ensure SHA pinned actions
19+
uses: zgosalvez/github-actions-ensure-sha-pinned-actions@9e9574ef04ea69da568d6249bd69539ccc704e74 # v4.0.0
20+
with:
21+
allowlist: |
22+
actions/
23+
aws-actions/
24+
docker/
25+
github/
26+
hashicorp/
27+
PostHog/
28+
tailscale/

.github/workflows/codeql.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: 'CodeQL Advanced'
2+
3+
on:
4+
push:
5+
branches: ['master']
6+
pull_request:
7+
branches: ['master']
8+
schedule:
9+
- cron: '41 14 * * 1'
10+
11+
jobs:
12+
analyze:
13+
name: Analyze (${{ matrix.language }})
14+
# Runner size impacts CodeQL analysis time. To learn more, please see:
15+
# - https://gh.io/recommended-hardware-resources-for-running-codeql
16+
# - https://gh.io/supported-runners-and-hardware-resources
17+
# - https://gh.io/using-larger-runners (GitHub.com only)
18+
# Consider using larger runners or machines with greater resources for possible analysis time improvements.
19+
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
20+
permissions:
21+
# required for all workflows
22+
security-events: write
23+
24+
strategy:
25+
fail-fast: false
26+
matrix:
27+
include:
28+
- language: actions
29+
build-mode: none
30+
- language: javascript-typescript
31+
build-mode: none
32+
- language: python
33+
build-mode: none
34+
steps:
35+
- name: Checkout repository
36+
uses: actions/checkout@v6
37+
38+
# Initializes the CodeQL tools for scanning.
39+
- name: Initialize CodeQL
40+
uses: github/codeql-action/init@v4
41+
with:
42+
languages: ${{ matrix.language }}
43+
build-mode: ${{ matrix.build-mode }}
44+
45+
- name: Run manual build steps
46+
if: matrix.build-mode == 'manual'
47+
shell: bash
48+
run: |
49+
echo 'If you are using a "manual" build mode for one or more of the' \
50+
'languages you are analyzing, replace this with the commands to build' \
51+
'your code, for example:'
52+
echo ' make bootstrap'
53+
echo ' make release'
54+
exit 1
55+
56+
- name: Perform CodeQL Analysis
57+
uses: github/codeql-action/analyze@v4
58+
with:
59+
category: '/language:${{matrix.language}}'

.github/workflows/hogfm-weekly.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Checkout code
14-
uses: actions/checkout@v4
14+
uses: actions/checkout@v6
1515
- name: Install uv
16-
uses: astral-sh/setup-uv@v6
16+
uses: astral-sh/setup-uv@3259c6206f993105e3a61b142c2d97bf4b9ef83d # v7.1.0
1717
- name: Set up Python
1818
run: uv python install
1919
working-directory: scripts/hogfm

.github/workflows/hogfm.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- name: Checkout code
16-
uses: actions/checkout@v4
16+
uses: actions/checkout@v6
1717
- name: Install uv
18-
uses: astral-sh/setup-uv@v6
18+
uses: astral-sh/setup-uv@3259c6206f993105e3a61b142c2d97bf4b9ef83d # v7.1.0
1919
- name: Set up Python
2020
run: uv python install
2121
working-directory: scripts/hogfm

.github/workflows/internal-links-check.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ jobs:
2626

2727
steps:
2828
- name: Checkout code
29-
uses: actions/checkout@v4
29+
uses: actions/checkout@v6
3030

3131
- name: Setup Node.js
32-
uses: actions/setup-node@v4
32+
uses: actions/setup-node@v6
3333
with:
3434
node-version: '22'
3535
cache: 'pnpm'

.github/workflows/markdown-lint.yml

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,6 @@ name: Markdown Lint
22

33
on:
44
pull_request:
5-
paths:
6-
- '**.md'
7-
- '**.mdx'
8-
- '.markdownlint-cli2.jsonc'
9-
- '.github/workflows/markdown-lint.yml'
105

116
permissions:
127
contents: read
@@ -18,10 +13,27 @@ jobs:
1813

1914
steps:
2015
- name: Checkout code
21-
uses: actions/checkout@v4
16+
uses: actions/checkout@v6
17+
with:
18+
fetch-depth: 0
19+
20+
- name: Get changed markdown files
21+
id: changed-files
22+
uses: tj-actions/changed-files@24d32ffd492484c1d75e0c0b894501ddb9d30d62 # v47
23+
with:
24+
files: |
25+
**/*.md
26+
**/*.mdx
27+
.markdownlint-cli2.jsonc
28+
.github/workflows/markdown-lint.yml
2229
2330
- name: Run markdownlint-cli2
24-
uses: DavidAnson/markdownlint-cli2-action@v21
31+
if: steps.changed-files.outputs.any_changed == 'true'
32+
uses: DavidAnson/markdownlint-cli2-action@30a0e04f1870d58f8d717450cc6134995f993c63 # v21
2533
with:
26-
globs: '**/*.{md,mdx}'
34+
globs: ${{ steps.changed-files.outputs.all_changed_files }}
2735
config: '.markdownlint-cli2.jsonc'
36+
37+
- name: Skip if no markdown files changed
38+
if: steps.changed-files.outputs.any_changed != 'true'
39+
run: echo "No markdown files changed, skipping lint"

0 commit comments

Comments
 (0)