-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into export-get-content-for-personal-api-keys
- Loading branch information
Showing
290 changed files
with
5,836 additions
and
4,009 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: Bug report | ||
description: Something not working as expected? Let us look into it. | ||
labels: ['bug'] | ||
body: | ||
- type: textarea | ||
id: bug-description | ||
attributes: | ||
label: Bug Description | ||
value: "## Bug description\n\n*Please describe.*\n*If this affects the front-end, screenshots would be of great help.*\n\n*If you are on PostHog Cloud it would be really valuable if you can share any links where the problem occurs. This speeds up our ability to troubleshoot tremendously.*\n\n## How to reproduce\n\n1. \n2.\n3. \n\n## Additional context\n\n" | ||
|
||
- type: textarea | ||
id: debug-info | ||
attributes: | ||
label: Debug info | ||
value: "- [ ] PostHog Cloud, Debug information: [please copy/paste from https://us.posthog.com/settings/project-details#variables]\n- [ ] PostHog Hobby self-hosted with `docker compose`, version/commit: [please provide]\n- [ ] PostHog self-hosted with Kubernetes (deprecated, see [`Sunsetting Kubernetes support`](https://posthog.com/blog/sunsetting-helm-support-posthog)), version/commit: [please provide]\n" | ||
render: shell | ||
|
||
- type: markdown | ||
attributes: | ||
value: '#### *Thank you* for your bug report – we love squashing them!' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: Feature request | ||
description: 'Suggest a feature for PostHog' | ||
labels: ['enhancement, feature'] | ||
body: | ||
- type: textarea | ||
id: feature_request | ||
attributes: | ||
label: Feature request | ||
value: | ||
"## Is your feature request related to a problem?\n\n*Please describe.*\n\n## Describe the solution you'd like\n\n\n## Describe alternatives you've considered\n\n\n## Additional context\n\n\n | ||
" | ||
- type: textarea | ||
id: debug-info | ||
attributes: | ||
label: Debug info | ||
value: "- [ ] PostHog Cloud, Debug information: [please copy/paste from https://us.posthog.com/settings/project-details#variables]\n- [ ] PostHog Hobby self-hosted with `docker compose`, version/commit: [please provide]\n- [ ] PostHog self-hosted with Kubernetes (deprecated, see [`Sunsetting Kubernetes support`](https://posthog.com/blog/sunsetting-helm-support-posthog)), version/commit: [please provide]\n" | ||
render: shell | ||
|
||
- type: markdown | ||
attributes: | ||
value: '#### *Thank you* for your bug report – we love squashing them!' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,47 @@ | ||
name: "Get merged pull request labels" | ||
name: 'Get merged pull request labels' | ||
shell: bash | ||
description: "Get the labels of the PR that was merged to create this push event" | ||
description: 'Get the labels of the PR that was merged to create this push event' | ||
inputs: | ||
token: | ||
description: "GH token" | ||
required: true | ||
token: | ||
description: 'GH token' | ||
required: true | ||
outputs: | ||
labels: | ||
description: "JSON array labels of the PR that was merged (if any)" | ||
value: ${{ steps.labels.outputs.labels }} | ||
labels: | ||
description: 'JSON array labels of the PR that was merged (if any)' | ||
value: ${{ steps.labels.outputs.labels }} | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Get PR associated with the last commit | ||
id: pr-info | ||
uses: octokit/[email protected] | ||
with: | ||
route: GET /repos/${{ github.repository }}/commits/${{ github.sha }}/pulls | ||
env: | ||
GITHUB_TOKEN: ${{ inputs.token }} | ||
using: 'composite' | ||
steps: | ||
- name: Get PR associated with the last commit | ||
id: pr-info | ||
uses: octokit/[email protected] | ||
with: | ||
route: GET /repos/${{ github.repository }}/commits/${{ github.sha }}/pulls | ||
env: | ||
GITHUB_TOKEN: ${{ inputs.token }} | ||
|
||
- name: Extract PR number | ||
shell: bash | ||
if: steps.pr-info.outputs.data | ||
id: extract-pr | ||
run: | | ||
echo "PR_NUMBER=$(cat | jq -r '.[-1].number' <<EOF | ||
${{ steps.pr-info.outputs.data }} | ||
EOF | ||
)" >> $GITHUB_OUTPUT | ||
- name: Extract PR number | ||
shell: bash | ||
if: steps.pr-info.outputs.data | ||
id: extract-pr | ||
run: | | ||
echo "PR_NUMBER=$(cat | jq -r '.[-1].number' <<EOF | ||
${{ steps.pr-info.outputs.data }} | ||
EOF | ||
)" >> $GITHUB_OUTPUT | ||
- name: Fetch PR Labels | ||
shell: bash | ||
if: steps.extract-pr.outputs.PR_NUMBER | ||
id: labels | ||
run: | | ||
PR_NUMBER=${{ steps.extract-pr.outputs.PR_NUMBER }} | ||
LABELS=$(curl \ | ||
-H "Authorization: Bearer ${{ inputs.token }}" \ | ||
-H "Accept: application/vnd.github.v3+json" \ | ||
https://api.github.com/repos/${{ github.repository }}/issues/$PR_NUMBER/labels | jq -rc '[.[].name]') | ||
echo "Labels of PR #$PR_NUMBER: $LABELS" | ||
- name: Fetch PR Labels | ||
shell: bash | ||
if: steps.extract-pr.outputs.PR_NUMBER | ||
id: labels | ||
run: | | ||
PR_NUMBER=${{ steps.extract-pr.outputs.PR_NUMBER }} | ||
LABELS=$(curl \ | ||
-H "Authorization: Bearer ${{ inputs.token }}" \ | ||
-H "Accept: application/vnd.github.v3+json" \ | ||
https://api.github.com/repos/${{ github.repository }}/issues/$PR_NUMBER/labels | jq -rc '[.[].name]') | ||
echo "Labels of PR #$PR_NUMBER: $LABELS" | ||
echo labels="$LABELS" >> $GITHUB_OUTPUT | ||
env: | ||
GITHUB_TOKEN: ${{ inputs.token }} | ||
echo labels="$LABELS" >> $GITHUB_OUTPUT | ||
env: | ||
GITHUB_TOKEN: ${{ inputs.token }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.