Skip to content

Commit 09935ce

Browse files
Merge branch 'main' into workflow_run-workflows
2 parents 4cfe076 + 278ce65 commit 09935ce

File tree

636 files changed

+16410
-6361
lines changed

Some content is hidden

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

636 files changed

+16410
-6361
lines changed

.github/actions/install-cocofix/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ runs:
1818
npm install --no-save \
1919
'--@github:registry=https://npm.pkg.github.com' \
2020
'--//npm.pkg.github.com/:_authToken=${TOKEN}' \
21-
@github/cocofix
21+
@github/cocofix codeql-ts

.github/workflows/copy-api-issue-to-internal.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
4646
- name: Create an issue in the docs-content repo
4747
run: |
48-
new_issue_url="$(gh issue create --title "$ISSUE_TITLE" --body "$ISSUE_BODY" --repo github/docs-content --label 'skip FR board')"
48+
new_issue_url="$(gh issue create --title "$ISSUE_TITLE" --body "$ISSUE_BODY" --repo github/docs-content)"
4949
echo 'NEW_ISSUE='$new_issue_url >> $GITHUB_ENV
5050
env:
5151
GITHUB_TOKEN: ${{secrets.DOCS_BOT_PAT_WORKFLOW_READORG}}

.github/workflows/generate-code-scanning-query-lists.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ jobs:
8787
8888
- name: Build code scanning query list
8989
run: |
90-
for lang in "cpp" "csharp" "go" "java" "javascript" "python" "ruby" "swift"; do
90+
for lang in "actions" "cpp" "csharp" "go" "java" "javascript" "python" "ruby" "swift"; do
9191
echo "Generating code scanning query list for $lang"
9292
npm run generate-code-scanning-query-list -- \
9393
--verbose \

.github/workflows/ready-for-doc-review.yml

Lines changed: 0 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -43,54 +43,6 @@ jobs:
4343
echo "AUTHOR_LOGIN=${{ github.event.pull_request.user.login }}" >> $GITHUB_ENV
4444
fi
4545
46-
# Check if the PR is connected to an issue that has the DIY docs label. The grep command parses through the PR description to find issue numbers that are linked in the PR description. The GitHub CLI command then checks if the issue exists in the docs-content repo, then checks if the linked docs-content issues have the DIY docs label. If the linked issues have the DIY docs label, the DIY_DOCS_LABEL environment variable is set to true.
47-
- name: Check if PR is connected to DIY docs issue
48-
id: check-diy-docs
49-
env:
50-
GITHUB_TOKEN: ${{ secrets.DOCS_BOT_PAT_WRITEORG_PROJECT }}
51-
run: |
52-
echo "Extracting issue numbers from PR description..."
53-
54-
# Clean up PR description to avoid syntax errors in grep command
55-
PR_BODY="${{ github.event.pull_request.body }}"
56-
echo "PR description to use in the script: $PR_BODY"
57-
58-
ISSUE_NUMS=$(echo "$PR_BODY" | grep -oE '(https://github.com/github/docs-content/issues/[0-9]+|github/docs-content#[0-9]+|#[0-9]+)' | grep -oE '[0-9]+$')
59-
echo "Extracted issue numbers: $ISSUE_NUMS"
60-
61-
if [ -n "$ISSUE_NUMS" ]; then
62-
for ISSUE_NUM in $ISSUE_NUMS; do
63-
# Check if the issue exists in the docs-content repository
64-
echo "Checking issue $ISSUE_NUM in the docs-content repository..."
65-
if gh issue view $ISSUE_NUM --repo github/docs-content --json labels > /dev/null 2>&1; then
66-
echo "Issue $ISSUE_NUM exists in docs-content. Fetching labels..."
67-
# Fetch labels for the issue
68-
LABELS=$(gh issue view $ISSUE_NUM --repo github/docs-content --json labels --jq '.labels[].name' || echo "")
69-
echo "Labels for issue $ISSUE_NUM: $LABELS"
70-
if echo "$LABELS" | grep -q 'DIY docs'; then
71-
echo "DIY docs label found for issue $ISSUE_NUM."
72-
echo "DIY_DOCS_LABEL=true" >> $GITHUB_ENV
73-
break
74-
else
75-
echo "DIY docs label not found for issue $ISSUE_NUM."
76-
fi
77-
else
78-
echo "Issue $ISSUE_NUM does not exist in the docs-content repository."
79-
fi
80-
done
81-
else
82-
echo "No DIY docs issues found in the PR description."
83-
fi
84-
85-
# If the PR description contains a link to a DIY docs issue, add the DIY docs label to the PR.
86-
- name: Add the DIY docs label if connected to a DIY docs issue
87-
if: ${{ env.DIY_DOCS_LABEL == 'true' }}
88-
env:
89-
GITHUB_TOKEN: ${{ secrets.DOCS_BOT_PAT_WRITEORG_PROJECT }}
90-
PR_URL: ${{ github.event.pull_request.html_url }}
91-
run: |
92-
gh pr edit $PR_URL --add-label 'DIY docs'
93-
9446
- name: Run script
9547
run: |
9648
npm run ready-for-docs-review
103 KB
Loading
115 KB
Loading
34.5 KB
Loading
-220 KB
Loading
117 KB
Loading
53 KB
Loading

0 commit comments

Comments
 (0)