Skip to content

Commit e4f2aa1

Browse files
authored
Merge pull request #173 from vegaprotocol/update-manage-project-GH-actions
chore: update manage project GH actions
2 parents 4bec3c9 + e17916b commit e4f2aa1

File tree

4 files changed

+418
-385
lines changed

4 files changed

+418
-385
lines changed

.github/workflows/add_issue_to_project.yml

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,38 @@
11
---
22

3-
name: Add Issues To Project Board
3+
name: "Add Issues To Project Board"
44

55
"on":
66
issues:
77
types: [opened]
8+
env:
9+
GH_TOKEN: ${{ secrets.GH_NEW_CARD_TO_PROJECT }}
10+
PROJECT_ID: ${{ secrets.CORE_PROJECT_ID }}
11+
ISSUE_ID: ${{ github.event.issue.node_id }}
12+
USER: ${{ github.actor }}
13+
LABEL_ID: "LA_kwDOFCbtm87qFVsu"
814

915
jobs:
1016
add_issue:
1117
runs-on: ubuntu-latest
1218
steps:
13-
- name: Add issue project board
14-
env:
15-
GITHUB_TOKEN: ${{ secrets.GH_NEW_CARD_TO_PROJECT }}
16-
PROJECT_ID: ${{ secrets.CORE_PROJECT_ID }}
17-
ISSUE_ID: ${{ github.event.issue.node_id }}
19+
- name: "Add issue to project board"
1820
run: |
1921
gh api graphql -f query='
20-
mutation($project:ID!, $issue:ID!) {
21-
addProjectNextItem(input: {projectId: $project, contentId: $issue}) {
22-
projectNextItem {
22+
mutation($user:String!, $project:ID!, $issue:ID!) {
23+
addProjectV2ItemById(input: {clientMutationId: $user, projectId: $project, contentId: $issue}) {
24+
item {
2325
id
2426
}
2527
}
26-
}' -f project=$PROJECT_ID -f issue=$ISSUE_ID --jq '.data.addProjectNextItem.projectNextItem.id'
28+
}' -f project=$PROJECT_ID -f issue=$ISSUE_ID -f user=$USER
29+
30+
- name: "Add repo identify label"
31+
run: |
32+
gh api graphql -f query='
33+
mutation($user:String!, $issue:ID!, $label:[ID!]!) {
34+
addLabelsToLabelable(input: {clientMutationId: $user, labelableId: $issue, labelIds: $label}) {
35+
clientMutationId
36+
}
37+
}' -f label=$LABEL_ID -f issue=$ISSUE_ID -f user=$USER
2738
28-
label_issue:
29-
runs-on: ubuntu-latest
30-
permissions:
31-
issues: write
32-
steps:
33-
- name: Add label
34-
uses: andymckay/labeler@e6c4322d0397f3240f0e7e30a33b5c5df2d39e90
35-
with:
36-
add-labels: "liqbot"
37-
repo-token: ${{ secrets.GITHUB_TOKEN }}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
3+
4+
name: Conventional Commits
5+
6+
"on":
7+
pull_request:
8+
branches: [develop, main]
9+
types: [synchronize, opened]
10+
11+
jobs:
12+
verify-conventional-commits:
13+
if: startsWith(github.head_ref, 'renovate/') != true
14+
name: Verify Conventional Commits
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Check out
18+
uses: actions/checkout@v3
19+
with:
20+
fetch-depth: 0
21+
- name: Commitsar conventional commits check
22+
uses: aevea/[email protected]

0 commit comments

Comments
 (0)