Skip to content

Commit 97b4fbb

Browse files
authored
Merge branch 'master' into disable-repeater
2 parents f058f19 + 73d46de commit 97b4fbb

Some content is hidden

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

46 files changed

+2002
-4917
lines changed

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1-
blank_issues_enabled: false
1+
blank_issues_enabled: true
2+
contact_links:
3+
- name: Segment Support
4+
url: https://segment.com/help/contact/
5+
about: Contact Segment Support for help with product-related issues.
Lines changed: 27 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,32 @@
11
name: Improve an existing article's content
22
description: Make a suggestion to improve the content of an existing article
33
title: "[Content]: "
4-
labels:
5-
- content
6-
- triage
4+
labels: [content, triage]
75
body:
8-
- type: markdown
9-
attributes:
10-
vallue: |
11-
* Please check that there is not an existing open [issue](https://github.com/segmentio/segment-docs/issues) before you create a new one.
12-
* Read the Contribution guide before you continue.
13-
# - type: checkboxes
14-
# id: terms
15-
# attributes:
16-
- type: input
17-
attributes:
18-
label: What article on segment.com/docs is affected?
19-
description: Please paste link to the article you'd like to see updated.
20-
validations:
21-
required: true
6+
- type: markdown
7+
attributes:
8+
value: |
9+
* Please check that there is not an existing open [issue](https://github.com/segmentio/segment-docs/issues) before you create a new one.
10+
* Read the Contribution guide before you continue.
11+
- type: input
12+
attributes:
13+
label: What article on segment.com/docs is affected?
14+
description: Please paste link to the article you'd like to see updated.
15+
validations:
16+
required: true
17+
- type: textarea
18+
attributes:
19+
label: What part(s) of the article would you like to see updated?
20+
description: |
21+
- Give as much detail as you can to help us understand the change you want to see.
22+
- Why should the docs be changed? What use cases does it support?
23+
- What is the expected outcome?
24+
validations:
25+
required: true
2226

23-
- type: textarea
24-
attributes:
25-
label: What part(s) of the article would you like to see updated?
26-
description: |
27-
- Give as much detail as you can to help us understand the change you want to see.
28-
- Why should the docs be changed? What use cases does it support?
29-
- What is the expected outcome?
30-
validations:
31-
required: true
32-
33-
- type: textarea
34-
attributes:
35-
label: Additional information
36-
description: Add any other context or screenshots about the feature request here.
37-
validations:
38-
required: false
27+
- type: textarea
28+
attributes:
29+
label: Additional information
30+
description: Add any other context or screenshots about the feature request here.
31+
validations:
32+
required: false
Lines changed: 31 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,35 @@
11
name: Display bug or other issue
22
description: Rais an issue related to the display of the site it self, or anything else not related to content.
33
title: "[Bug]: "
4-
labels:
5-
- bug
6-
- triage
4+
labels: [bug, triage]
75
body:
8-
- type: markdown
9-
attributes:
10-
vallue: |
11-
* Please check that there is not an existing open [issue](https://github.com/segmentio/segment-docs/issues) before you create a new one.
12-
* Read the Contribution guide before you continue.
13-
# - type: checkboxes
14-
# id: terms
15-
# attributes:
16-
- type: input
17-
attributes:
18-
label: Where on segment.com/docs did you see this issue?
19-
description: Please paste link to the article where you noticed the issue.
20-
validations:
21-
required: true
22-
- type: dropdown
23-
id: browsers
24-
attributes:
25-
label: What browsers are you seeing the problem on?
26-
multiple: true
27-
options:
28-
- Firefox
29-
- Chrome
30-
- Safari
31-
- Microsoft Edge
6+
- type: markdown
7+
attributes:
8+
value: |
9+
* Please check that there is not an existing open [issue](https://github.com/segmentio/segment-docs/issues) before you create a new one.
10+
* Read the Contribution guide before you continue.
11+
# - type: checkboxes
12+
# id: terms
13+
# attributes:
14+
- type: input
15+
attributes:
16+
label: Where on segment.com/docs did you see this issue?
17+
description: Please paste link to the article where you noticed the issue.
18+
validations:
19+
required: true
20+
- type: dropdown
21+
id: browsers
22+
attributes:
23+
label: What browsers are you seeing the problem on?
24+
multiple: true
25+
options:
26+
- Firefox
27+
- Chrome
28+
- Safari
29+
- Microsoft Edge
30+
- type: textarea
31+
attributes:
32+
label: Please describe the issue.
33+
description: Add any other context or screenshots about the feature request here.
34+
validations:
35+
required: true

.github/workflows/check-links.yml

Lines changed: 27 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -12,33 +12,34 @@ on:
1212

1313
jobs:
1414
checklinks:
15+
if: github.repository == 'segmentio/segment-docs-private'
1516
name: Linux
1617
runs-on: ubuntu-latest
1718
strategy:
1819
fail-fast: false
19-
steps:
20-
- uses: actions/checkout@v2
21-
- name: Ruby
22-
uses: ruby/setup-ruby@v1
23-
with:
24-
ruby-version: 2.6 # Not needed with a .ruby-version file
25-
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
26-
- name: Yarn install
27-
run: yarn install
28-
- name: Build jekyll website with
29-
run: bundle exec jekyll build
30-
- name: Check for broken links
31-
run: |
32-
yarn run hyperlink ./_site/index.html --canonicalroot https://segment.com/docs -i -r --skip 0.0.0.0 | yarn run tap-spot > output.md
33-
continue-on-error: true
34-
- name: Archive log links
35-
uses: actions/upload-artifact@v1
36-
with:
37-
name: links-check.log
38-
path: output.md
39-
- name: Create Issue From File
40-
uses: peter-evans/create-issue-from-file@v2
41-
with:
42-
title: Link Checker Report
43-
content-filepath: output.md
44-
labels: report, automated issue
20+
# steps:
21+
# - uses: actions/checkout@v2
22+
# - name: Ruby
23+
# uses: ruby/setup-ruby@v1
24+
# with:
25+
# ruby-version: 2.6 # Not needed with a .ruby-version file
26+
# bundler-cache: true # runs 'bundle install' and caches installed gems automatically
27+
# - name: Yarn install
28+
# run: yarn install
29+
# - name: Build jekyll website with
30+
# run: bundle exec jekyll build
31+
# - name: Check for broken links
32+
# run: |
33+
# yarn run hyperlink ./_site/index.html --canonicalroot https://segment.com/docs -i -r --skip 0.0.0.0 | yarn run tap-spot > output.md
34+
# continue-on-error: true
35+
# - name: Archive log links
36+
# uses: actions/upload-artifact@v1
37+
# with:
38+
# name: links-check.log
39+
# path: output.md
40+
# - name: Create Issue From File
41+
# uses: peter-evans/create-issue-from-file@v2
42+
# with:
43+
# title: Link Checker Report
44+
# content-filepath: output.md
45+
# labels: report, automated issue

.github/workflows/repo-sync.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: Repo Sync
2+
3+
on:
4+
schedule:
5+
- cron: "*/30 * * * *" # every 30 minutes.
6+
7+
jobs:
8+
repo-sync:
9+
name: Repo Sync
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
14+
- uses: repo-sync/github-sync@v2
15+
name: Sync repo to branch
16+
env:
17+
GITHUB_TOKEN: ${{ secrets.DOCS_BOT_PAT_REPO_SCOPE }}
18+
with:
19+
source_repo: ${{ secrets.SOURCE_REPO }}
20+
source_branch: master
21+
destination_branch: ${{ secrets.INTERMEDIATE_BRANCH }}
22+
github_token: ${{ secrets.DOCS_BOT_PAT_REPO_SCOPE }}
23+
24+
- uses: repo-sync/pull-request@v2
25+
name: Create pull request
26+
env:
27+
GITHUB_TOKEN: ${{ secrets.DOCS_BOT_PAT_REPO_SCOPE }}
28+
with:
29+
source_branch: ${{ secrets.INTERMEDIATE_BRANCH }}
30+
destination_branch: master
31+
pr_title: 'repo sync'
32+
pr_body: "This is an automated pull request to sync changes between the public and private repos.\n\n:robot: This pull request should be merged (not squashed) to preserve continuity across repos, so please let a bot do the merging!"
33+
pr_label: autoupdate,automated-reposync-pr
34+
github_token: ${{ secrets.DOCS_BOT_PAT_REPO_SCOPE }}
35+
36+
- name: Find pull request
37+
uses: juliangruber/find-pull-request-action@v1
38+
id: find-pull-request
39+
with:
40+
github-token: ${{ secrets.GITHUB_TOKEN }}
41+
branch: repo-sync
42+
base: master
43+
author: bot-docsteam
44+
state: open
45+
46+
- name: Approve pull request
47+
if: ${{ steps.find-pull-request.outputs.number }}
48+
uses: juliangruber/approve-pull-request-action@v1
49+
with:
50+
github-token: ${{ secrets.GITHUB_TOKEN }}
51+
number: ${{ steps.find-pull-request.outputs.number }}
52+
53+
- name: Merge Pull Request
54+
if: ${{ steps.find-pull-request.outputs.number }}
55+
uses: juliangruber/merge-pull-request-action@v1
56+
with:
57+
github-token: ${{ secrets.DOCS_BOT_PAT_REPO_SCOPE }}
58+
number: ${{ steps.find-pull-request.outputs.number }}
59+
method: merge

.github/workflows/unallowed-contributions.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ on:
2222

2323
jobs:
2424
triage:
25-
if: github.repository == 'github/docs' && github.event.pull_request.user.login != ['markzegarelli','stayseesong', 'pwseg']
25+
if: github.repository == 'segmentio/segment-docs' && github.event.pull_request.user.login != 'markzegarelli'
2626
runs-on: ubuntu-latest
2727
steps:
2828
- name: Get files changed

CODEOWNERS

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
1+
* @segmentio/segment-doc-team
12
# The default owners for everything in
23
# the repo. Unless a later match takes precedence.
3-
CODEOWNERS @segmentio/segment-doc-team @sanscontext @markzegarelli
4+
CODEOWNERS @segmentio/segment-doc-team @markzegarelli
45

56
# Diagram library
6-
/diagram-library @sanscontext @markzegarelli
7+
# /diagram-library @markzegarelli
78

89
# Utility scripts
9-
/scripts @segmentio/segment-doc-team
10+
# /scripts @segmentio/segment-doc-team
1011

1112
# Vale Linting
12-
/vale-styles @segmentio/segment-doc-team
13-
.vale.ini @segmentio/segment-doc-team
13+
# /vale-styles @segmentio/segment-doc-team
14+
# .vale.ini @segmentio/segment-doc-team
1415

1516

1617
# Content owners should be in the order of PM, TL (team-lead), and EM (in a crisis) for a given team.
@@ -22,10 +23,10 @@ CODEOWNERS @segmentio/segment-doc-team @sanscontext @markzegarelli
2223

2324

2425
# Libraries owners
25-
/src/connections/catalog/libraries @osamakhn @bsneed @pooyaj @juliofarah
26+
# /src/connections/catalog/libraries @bsneed @pooyaj @juliofarah
2627

2728
# Destinations owners
28-
/src/connections/destinations @segmentio/segment-doc-team
29+
# /src/connections/destinations @segmentio/segment-doc-team
2930

3031

3132
# Privacy owners TODO
@@ -36,7 +37,7 @@ CODEOWNERS @segmentio/segment-doc-team @sanscontext @markzegarelli
3637
# /src/protocols
3738

3839
# Partner Program owners
39-
/src/partners @misteryeo @n2parko @benhorowitz
40+
# /src/partners @misteryeo @n2parko @benhorowitz
4041

4142
# Personas owners TODO
4243

0 commit comments

Comments
 (0)