Skip to content

Commit b460e2b

Browse files
chiedoJamesMGreene
andauthored
Add Crowdin PRs to boards where they'd be helpful (#18334)
Add Crowdin PRs to boards where they'd be helpful Co-authored-by: chiedo <chiedo@users.noreply.github.com> Co-authored-by: James M. Greene <JamesMGreene@github.com>
1 parent 3ae7f9b commit b460e2b

1 file changed

Lines changed: 38 additions & 0 deletions

File tree

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Send Crowdin PRs to boards
2+
3+
on:
4+
pull_request:
5+
types:
6+
- opened
7+
8+
jobs:
9+
triage:
10+
if: github.repository == 'github/docs-internal' && github.event.pull_request.head.ref == 'translations'
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/github-script@626af12fe9a53dc2972b48385e7fe7dec79145c9
14+
with:
15+
github-token: ${{ secrets.DOCUBOT_READORG_REPO_WORKFLOW_SCOPES }}
16+
script: |
17+
var squadBoardColumnId = 13447153; // Add to the team backlog/squad board
18+
19+
try {
20+
await github.projects.createCard({
21+
column_id: squadBoardColumnId,
22+
content_id: context.payload.issue.id,
23+
content_type: "Issue"
24+
});
25+
} catch (error) {
26+
console.log(error);
27+
}
28+
29+
var prBoardColumnId = 10095775; // Add to the pull requests board
30+
try {
31+
await github.projects.createCard({
32+
column_id: prBoardColumnId,
33+
content_id: context.payload.issue.id,
34+
content_type: "Issue"
35+
});
36+
} catch (error) {
37+
console.log(error);
38+
}

0 commit comments

Comments
 (0)