Skip to content

Commit

Permalink
Merge pull request #173 from vegaprotocol/update-manage-project-GH-ac…
Browse files Browse the repository at this point in the history
…tions

chore: update manage project GH actions
  • Loading branch information
gordsport authored Nov 18, 2022
2 parents 4bec3c9 + e17916b commit e4f2aa1
Show file tree
Hide file tree
Showing 4 changed files with 418 additions and 385 deletions.
41 changes: 21 additions & 20 deletions .github/workflows/add_issue_to_project.yml
Original file line number Diff line number Diff line change
@@ -1,37 +1,38 @@
---

name: Add Issues To Project Board
name: "Add Issues To Project Board"

"on":
issues:
types: [opened]
env:
GH_TOKEN: ${{ secrets.GH_NEW_CARD_TO_PROJECT }}
PROJECT_ID: ${{ secrets.CORE_PROJECT_ID }}
ISSUE_ID: ${{ github.event.issue.node_id }}
USER: ${{ github.actor }}
LABEL_ID: "LA_kwDOFCbtm87qFVsu"

jobs:
add_issue:
runs-on: ubuntu-latest
steps:
- name: Add issue project board
env:
GITHUB_TOKEN: ${{ secrets.GH_NEW_CARD_TO_PROJECT }}
PROJECT_ID: ${{ secrets.CORE_PROJECT_ID }}
ISSUE_ID: ${{ github.event.issue.node_id }}
- name: "Add issue to project board"
run: |
gh api graphql -f query='
mutation($project:ID!, $issue:ID!) {
addProjectNextItem(input: {projectId: $project, contentId: $issue}) {
projectNextItem {
mutation($user:String!, $project:ID!, $issue:ID!) {
addProjectV2ItemById(input: {clientMutationId: $user, projectId: $project, contentId: $issue}) {
item {
id
}
}
}' -f project=$PROJECT_ID -f issue=$ISSUE_ID --jq '.data.addProjectNextItem.projectNextItem.id'
}' -f project=$PROJECT_ID -f issue=$ISSUE_ID -f user=$USER
- name: "Add repo identify label"
run: |
gh api graphql -f query='
mutation($user:String!, $issue:ID!, $label:[ID!]!) {
addLabelsToLabelable(input: {clientMutationId: $user, labelableId: $issue, labelIds: $label}) {
clientMutationId
}
}' -f label=$LABEL_ID -f issue=$ISSUE_ID -f user=$USER
label_issue:
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- name: Add label
uses: andymckay/labeler@e6c4322d0397f3240f0e7e30a33b5c5df2d39e90
with:
add-labels: "liqbot"
repo-token: ${{ secrets.GITHUB_TOKEN }}
22 changes: 22 additions & 0 deletions .github/workflows/conventional_commits.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---


name: Conventional Commits

"on":
pull_request:
branches: [develop, main]
types: [synchronize, opened]

jobs:
verify-conventional-commits:
if: startsWith(github.head_ref, 'renovate/') != true
name: Verify Conventional Commits
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Commitsar conventional commits check
uses: aevea/[email protected]
Loading

0 comments on commit e4f2aa1

Please sign in to comment.