Skip to content

Commit

Permalink
Merge pull request #26103 from github/repo-sync
Browse files Browse the repository at this point in the history
Repo sync
  • Loading branch information
Octomerger authored Jun 19, 2023
2 parents 829f94b + e0f2382 commit d2e719d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/repo-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,17 @@ jobs:
- name: Sync repo to branch
uses: repo-sync/github-sync@3832fe8e2be32372e1b3970bbae8e7079edeec88
env:
GITHUB_TOKEN: ${{ secrets.OCTOMERGER_PAT_WITH_REPO_AND_WORKFLOW_SCOPE }}
GITHUB_TOKEN: ${{ secrets.DOCS_BOT_PAT_WORKFLOW }}
with:
source_repo: ${{ secrets.SOURCE_REPO }} # https://${access_token}@github.com/github/the-other-repo.git
source_branch: main
destination_branch: repo-sync
github_token: ${{ secrets.OCTOMERGER_PAT_WITH_REPO_AND_WORKFLOW_SCOPE }}
github_token: ${{ secrets.DOCS_BOT_PAT_WORKFLOW }}

- name: Ship pull request
uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410
with:
github-token: ${{ secrets.OCTOMERGER_PAT_WITH_REPO_AND_WORKFLOW_SCOPE }}
github-token: ${{ secrets.DOCS_BOT_PAT_WORKFLOW }}
result-encoding: string
script: |
const { owner, repo } = context.repo
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sync-graphql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
# Token should be a PAT because actions performed with GITHUB_TOKEN
# don't trigger other workflows and this action force pushes updates
# from the default branch.
token: ${{ secrets.OCTOMERGER_PAT_WITH_REPO_AND_WORKFLOW_SCOPE }}
token: ${{ secrets.DOCS_BOT_PAT_WORKFLOW }}
commit-message: 'Update GraphQL data files'
title: GraphQL schema update
body:
Expand Down
1 change: 1 addition & 0 deletions src/content-linter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ We are using the [markdownlint](https://github.com/DavidAnson/markdownlint) fram
| [MD023](https://github.com/DavidAnson/markdownlint/blob/main/doc/md023.md) | Headings must start at the beginning of the line. | error |
| [MD024](https://github.com/DavidAnson/markdownlint/blob/main/doc/md024.md) | Disallow headings with the same content. | error |
| [MD027](https://github.com/DavidAnson/markdownlint/blob/main/doc/md027.md) | Catches multiple spaces after blockquote symbol. | warning |
| [MD030](https://github.com/DavidAnson/markdownlint/blob/main/doc/md030.md) | Only allow one space after list markers. | error |
| [MD011](https://github.com/DavidAnson/markdownlint/blob/main/doc/md011.md) | Make sure that link syntax is not reversed. | error |
| [MD111](./linting-rules/image-alt-text-length.js) | Images alternate text should be between 40-150 characters. | warning |
| [MD112](./linting-rules/image-alt-text-end-punctuation.js) | Images alternate text should end with a punctuation. | error |
Expand Down
1 change: 1 addition & 0 deletions src/content-linter/scripts/markdownlint.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ async function main() {
MD023: true,
MD024: true,
MD027: true,
MD030: true,
MD111: true,
MD112: true,
MD113: true,
Expand Down

1 comment on commit d2e719d

@Stephaniecheree

This comment was marked as spam.

Please sign in to comment.