Skip to content

Commit

Permalink
Merge branch 'main' into dependabot/npm_and_yarn/follow-redirects-1.15.4
Browse files Browse the repository at this point in the history
  • Loading branch information
KellyMerrick authored Jan 31, 2024
2 parents 4024ea7 + 6c2af08 commit 37fe61f
Show file tree
Hide file tree
Showing 14 changed files with 542 additions and 99 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/validate-pr-title.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# name of the action
name: validate PR title

# trigger on pull_request events of the opened & edited type.
on:
pull_request:
types: [opened, synchronize, edited, reopened]

# pipeline to execute
jobs:
validate:
runs-on: ubuntu-latest

steps:
- name: validate title
run: |
echo "${{ github.event.pull_request.title }}" | grep -Eq '^(feat|fix|chore|refactor|enhance|test|docs)(\(.*\)|):\s.+$' && (echo "Pass"; exit 0) || (echo "Incorrect Format. Please see https://go-vela.github.io/docs/community/contributing_guidelines/#development-workflow"; exit 1)
3 changes: 3 additions & 0 deletions cypress/fixtures/repository.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@
"comment": {
"created": false,
"edited": false
},
"schedule": {
"run": false
}
},
"pipeline_type": "yaml",
Expand Down
22 changes: 22 additions & 0 deletions cypress/fixtures/secret_org.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,27 @@
"type": "org",
"images": [],
"events": ["push"],
"allow_events": {
"push": {
"branch": true,
"tag": false
},
"pull_request": {
"opened": false,
"synchronize": false,
"edited": false,
"reopened": false
},
"deployment": {
"created": false
},
"comment": {
"created": false,
"edited": false
},
"schedule": {
"run": true
}
},
"allow_command": true
}
22 changes: 22 additions & 0 deletions cypress/fixtures/secret_repo.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,27 @@
"type": "repo",
"images": [],
"events": ["push"],
"allow_events": {
"push": {
"branch": true,
"tag": false
},
"pull_request": {
"opened": false,
"synchronize": false,
"edited": false,
"reopened": false
},
"deployment": {
"created": false
},
"comment": {
"created": false,
"edited": false
},
"schedule": {
"run": true
}
},
"allow_command": true
}
22 changes: 22 additions & 0 deletions cypress/fixtures/secret_shared.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,27 @@
"type": "shared",
"images": [],
"events": ["push"],
"allow_events": {
"push": {
"branch": true,
"tag": false
},
"pull_request": {
"opened": false,
"synchronize": false,
"edited": false,
"reopened": false
},
"deployment": {
"created": false
},
"comment": {
"created": false,
"edited": false
},
"schedule": {
"run": true
}
},
"allow_command": true
}
110 changes: 110 additions & 0 deletions cypress/fixtures/secrets_org_5.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,28 @@
"type": "org",
"images": [],
"events": ["push"],
"allow_events": {
"push": {
"branch": true,
"tag": false
},
"pull_request": {
"opened": false,
"synchronize": false,
"edited": false,
"reopened": false
},
"deployment": {
"created": false
},
"comment": {
"created": false,
"edited": false
},
"schedule": {
"run": true
}
},
"allow_command": true
},
{
Expand All @@ -21,6 +43,28 @@
"type": "org",
"images": [],
"events": ["push"],
"allow_events": {
"push": {
"branch": true,
"tag": false
},
"pull_request": {
"opened": false,
"synchronize": false,
"edited": false,
"reopened": false
},
"deployment": {
"created": false
},
"comment": {
"created": false,
"edited": false
},
"schedule": {
"run": true
}
},
"allow_command": true
},
{
Expand All @@ -33,6 +77,28 @@
"type": "org",
"images": [],
"events": ["push"],
"allow_events": {
"push": {
"branch": true,
"tag": false
},
"pull_request": {
"opened": false,
"synchronize": false,
"edited": false,
"reopened": false
},
"deployment": {
"created": false
},
"comment": {
"created": false,
"edited": false
},
"schedule": {
"run": true
}
},
"allow_command": true
},
{
Expand All @@ -45,6 +111,28 @@
"type": "org",
"images": [],
"events": ["push", "pull_request"],
"allow_events": {
"push": {
"branch": true,
"tag": false
},
"pull_request": {
"opened": false,
"synchronize": false,
"edited": false,
"reopened": false
},
"deployment": {
"created": false
},
"comment": {
"created": false,
"edited": false
},
"schedule": {
"run": true
}
},
"allow_command": true
},
{
Expand All @@ -57,6 +145,28 @@
"type": "org",
"images": [],
"events": ["push", "pull_request", "comment", "deployment"],
"allow_events": {
"push": {
"branch": true,
"tag": false
},
"pull_request": {
"opened": false,
"synchronize": false,
"edited": false,
"reopened": false
},
"deployment": {
"created": false
},
"comment": {
"created": false,
"edited": false
},
"schedule": {
"run": true
}
},
"allow_command": true
}
]
7 changes: 5 additions & 2 deletions src/elm/Main.elm
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ import Html.Attributes
, type_
)
import Html.Events exposing (onClick)
import Html.Lazy exposing (lazy, lazy2, lazy3, lazy5, lazy7, lazy8)
import Html.Lazy exposing (lazy, lazy2, lazy3, lazy4, lazy5, lazy7, lazy8)
import Http
import Http.Detailed
import Interop
Expand Down Expand Up @@ -2974,7 +2974,7 @@ viewContent model =
Pages.RepositoryDeployments org repo maybePage _ ->
( String.join "/" [ org, repo ] ++ " deployments" ++ Util.pageToString maybePage
, div []
[ lazy3 Pages.Deployments.View.viewDeployments model.repo org repo
[ lazy4 Pages.Deployments.View.viewDeployments model.zone model.repo org repo
, Pager.view model.repo.deployments.pager Pager.defaultLabels GotoPage
]
)
Expand Down Expand Up @@ -3895,6 +3895,9 @@ loadRepoSubPage model org repo toPage =
Pages.RepoSettings o r ->
( model, getRepo model o r )

Pages.RepositoryDeployments o r maybePage maybePerPage ->
( model, getDeployments model o r maybePage maybePerPage )

Pages.PromoteDeployment o r deploymentNumber ->
( model, getDeployment model o r deploymentNumber )

Expand Down
Loading

0 comments on commit 37fe61f

Please sign in to comment.