Skip to content

Commit

Permalink
chore: fix action to properly add PR to the Triage Board for visibili…
Browse files Browse the repository at this point in the history
…ty (#27917)
  • Loading branch information
Ben M committed Sep 27, 2023
1 parent a1b4124 commit 1ec045f
Showing 1 changed file with 28 additions and 2 deletions.
30 changes: 28 additions & 2 deletions scripts/github-actions/create-pull-request.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,32 @@ const createPullRequest = async ({ context, github, baseBranch, branchName, desc

//add to firewatch board
if (addToProjectBoard) {
const getProjectV2NodeIdQuery = `
query ($org: String!, $project_id: Int!, $repo: String!, $issueNumber: Int!) {
organization(login: $org) {
projectV2(number: $project_id) {
id
}
}
repository(owner: $org, name: $repo) {
pullRequest(number: $issueNumber) {
id
}
}
}`

const getProjectV2NodeIdQueryVars = {
org: context.repo.owner,
project_id: 9,
repo: context.repo.repo,
issueNumber: number,
}

let projectBoardNodeId = await github.graphql(
getProjectV2NodeIdQuery,
getProjectV2NodeIdQueryVars,
)

const addToProjectBoardQuery = `
mutation ($project_id: ID!, $item_id: ID!) {
addProjectV2ItemById(input: {contentId: $item_id, projectId: $project_id}) {
Expand All @@ -31,8 +57,8 @@ const createPullRequest = async ({ context, github, baseBranch, branchName, desc
}`

const addToProjectBoardQueryVars = {
project_id: 9,
item_id: number,
project_id: projectBoardNodeId.organization.projectV2.id,
item_id: projectBoardNodeId.repository.pullRequest.id,
}

await github.graphql(
Expand Down

5 comments on commit 1ec045f

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 1ec045f Sep 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circle has built the linux x64 version of the Test Runner.

Learn more about this pre-release build at https://on.cypress.io/advanced-installation#Install-pre-release-version

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/13.3.0/linux-x64/develop-1ec045fe983ae7b39e3e05ad13c701436961a47c/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 1ec045f Sep 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circle has built the darwin arm64 version of the Test Runner.

Learn more about this pre-release build at https://on.cypress.io/advanced-installation#Install-pre-release-version

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/13.3.0/darwin-arm64/develop-1ec045fe983ae7b39e3e05ad13c701436961a47c/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 1ec045f Sep 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circle has built the linux arm64 version of the Test Runner.

Learn more about this pre-release build at https://on.cypress.io/advanced-installation#Install-pre-release-version

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/13.3.0/linux-arm64/develop-1ec045fe983ae7b39e3e05ad13c701436961a47c/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 1ec045f Sep 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circle has built the darwin x64 version of the Test Runner.

Learn more about this pre-release build at https://on.cypress.io/advanced-installation#Install-pre-release-version

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/13.3.0/darwin-x64/develop-1ec045fe983ae7b39e3e05ad13c701436961a47c/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 1ec045f Sep 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circle has built the win32 x64 version of the Test Runner.

Learn more about this pre-release build at https://on.cypress.io/advanced-installation#Install-pre-release-version

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/13.3.0/win32-x64/develop-1ec045fe983ae7b39e3e05ad13c701436961a47c/cypress.tgz

Please sign in to comment.