-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #173 from vegaprotocol/update-manage-project-GH-ac…
…tions chore: update manage project GH actions
- Loading branch information
Showing
4 changed files
with
418 additions
and
385 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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] |
Oops, something went wrong.