Skip to content

Commit aa62f45

Browse files
authored
Merge branch 'main' into version-product-landing-frontmatter
2 parents 964bf74 + c1c8570 commit aa62f45

11,153 files changed

Lines changed: 120523 additions & 24172 deletions

File tree

Some content is hidden

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

.github/allowed-actions.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ module.exports = [
2727
"juliangruber/find-pull-request-action@2fc55e82a6d5d36fe1e7f1848f7e64fd02d99de9",
2828
"juliangruber/read-file-action@e0a316da496006ffd19142f0fd594a1783f3b512",
2929
"lee-dohm/close-matching-issues@22002609b2555fe18f52b8e2e7c07cbf5529e8a8",
30-
"octokit/graphql-action@5b3e01d42dee4509b0ac6b1cb2cf7778cdce85c2",
3130
"pascalgn/automerge-action@c9bd1823770819dc8fb8a5db2d11a3a95fbe9b07", //pascalgn/automerge@0.12.0
3231
"peter-evans/create-issue-from-file@a04ce672e3acedb1f8e416b46716ddfd09905326",
3332
"peter-evans/create-or-update-comment@5221bf4aa615e5c6e95bb142f9673a9c791be2cd",

.github/workflows/remove-from-fr-board.yaml

Lines changed: 10 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -13,56 +13,15 @@ jobs:
1313
if: github.repository == 'github/docs-internal'
1414
runs-on: ubuntu-latest
1515
steps:
16-
- id: find_project_cards
17-
uses: octokit/graphql-action@5b3e01d42dee4509b0ac6b1cb2cf7778cdce85c2
18-
with:
19-
query: |
20-
query($issue_node_id:ID!) {
21-
node(id:$issue_node_id) {
22-
... on Issue {
23-
projectCards(first: 10) {
24-
nodes {
25-
id
26-
project {
27-
name
28-
id
29-
}
30-
}
31-
}
32-
}
33-
... on PullRequest {
34-
projectCards(first: 10) {
35-
nodes {
36-
id
37-
project {
38-
name
39-
id
40-
}
41-
}
42-
}
43-
}
44-
}
45-
}
46-
issue_node_id: ${{ github.event.client_payload.command.resource.id }}
16+
- name: Remove issue from board
17+
if: ${{ github.event.client_payload.command.resource.type == 'Issue' }}
18+
run: gh issue edit "$ISSUE_URL" --remove-project "Docs content first responder"
4719
env:
48-
GITHUB_TOKEN: ${{ secrets.DOCUBOT_FR_PROJECT_BOARD_WORKFLOWS_REPO_ORG_READ_SCOPES }}
49-
50-
- run: "echo 'Project cards found: ${{ steps.find_project_cards.outputs.data }}'"
51-
52-
- name: Get FR card
53-
env:
54-
QUERY_DATA: ${{ steps.find_project_cards.outputs.data }}
55-
run: |
56-
echo 'FR_CARDS='$(jq '.node.projectCards.nodes | .[] | select(.project.id == "MDc6UHJvamVjdDQ1NzI0ODI=") | .id' <<< "$QUERY_DATA") >> $GITHUB_ENV
57-
58-
- name: Delete card
59-
id: delete_project_card
60-
if: ${{ env.FR_CARDS }}
61-
uses: octokit/graphql-action@5b3e01d42dee4509b0ac6b1cb2cf7778cdce85c2
62-
with:
63-
query: |
64-
mutation DeleteCard {
65-
deleteProjectCard(input:{cardId:${{ env.FR_CARDS }}}) {deletedCardId}
66-
}
20+
GITHUB_TOKEN: ${{secrets.DOCUBOT_FR_PROJECT_BOARD_WORKFLOWS_REPO_ORG_READ_SCOPES}}
21+
ISSUE_URL: https://github.com/${{ github.event.client_payload.command.repository.full_name }}/issues/${{ github.event.client_payload.command.resource.number }}
22+
- name: Remove PR from board
23+
if: ${{ github.event.client_payload.command.resource.type == 'PullRequest' }}
24+
run: gh pr edit "$PR_URL" --remove-project "Docs content first responder"
6725
env:
68-
GITHUB_TOKEN: ${{ secrets.DOCUBOT_FR_PROJECT_BOARD_WORKFLOWS_REPO_ORG_READ_SCOPES }}
26+
GITHUB_TOKEN: ${{secrets.DOCUBOT_FR_PROJECT_BOARD_WORKFLOWS_REPO_ORG_READ_SCOPES}}
27+
PR_URL: https://github.com/${{ github.event.client_payload.command.repository.full_name }}/pull/${{ github.event.client_payload.command.resource.number }}

.github/workflows/send-crowdin-prs-to-boards.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ jobs:
1919
try {
2020
await github.projects.createCard({
2121
column_id: squadBoardColumnId,
22-
content_id: context.payload.issue.id,
23-
content_type: "Issue"
22+
content_id: context.payload.pull_request.id,
23+
content_type: "PullRequest"
2424
});
2525
} catch (error) {
2626
console.log(error);
@@ -30,8 +30,8 @@ jobs:
3030
try {
3131
await github.projects.createCard({
3232
column_id: prBoardColumnId,
33-
content_id: context.payload.issue.id,
34-
content_type: "Issue"
33+
content_id: context.payload.pull_request.id,
34+
content_type: "PullRequest"
3535
});
3636
} catch (error) {
3737
console.log(error);
38.6 KB
Loading
46.4 KB
Loading
184 KB
Loading
43.9 KB
Loading
230 KB
Loading
89.2 KB
Loading
-31.7 KB
Loading

0 commit comments

Comments
 (0)