Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pull Request workflow for AzDO + Bicep #249

Open
wants to merge 36 commits into
base: main
Choose a base branch
from

Conversation

PabloZaiden
Copy link
Contributor

This PR closes #227

This includes two new workflows:

  • PRs workflow for Bicep + AzDO
  • Manual cleanup workflow for PR environments

A new branch policy is added for the "main" branch when bootstrapping the repo, to require PRs being up-to-date and passing the Tests job before merging.

@PabloZaiden PabloZaiden self-assigned this Dec 14, 2023
Copy link

github-actions bot commented Dec 14, 2023

🦙 MegaLinter status: ✅ SUCCESS

Descriptor Linter Files Fixed Errors Elapsed time
✅ ACTION actionlint 1 0 0.01s
✅ EDITORCONFIG editorconfig-checker 15 0 0.09s
✅ MARKDOWN markdownlint 2 0 0.57s
✅ MARKDOWN markdown-table-formatter 2 0 0.28s
✅ REPOSITORY gitleaks yes no 0.13s
✅ SPELL lychee 13 0 2.56s
✅ YAML yamllint 11 0 0.43s

See detailed report in MegaLinter reports
Set VALIDATE_ALL_CODEBASE: true in mega-linter.yml to validate all sources, not only the diff

MegaLinter is graciously provided by OX Security

@PabloZaiden PabloZaiden marked this pull request as ready for review January 10, 2024 17:18
@PabloZaiden PabloZaiden requested a review from a team as a code owner January 10, 2024 17:18
Copy link

Creating environment with name: "844966" using commit: "ed0fad68b887d157794526304693275ad48a6f7d".

The environment will be destroyed after the workflow completes.
To preserve it, add the "preserve-pr-environment" label to the PR.

Copy link

github-actions bot commented Jan 23, 2024

E2E Tests Results

1 tests   1 ✅  1m 32s ⏱️
1 suites  0 💤
1 files    0 ❌

Results for commit be7e35a.

♻️ This comment has been updated with latest results.

Copy link

Creating environment with name: "b9e6ef" using commit: "50cdfd1de55acef37ce02325cf2fc0f0fbbdacaa".

The environment will be destroyed after the workflow completes.
To preserve it, add the "preserve-pr-environment" label to the PR.

Copy link

github-actions bot commented May 15, 2024

Modules tests Results

3 tests   3 ✅  9m 56s ⏱️
1 suites  0 💤
1 files    0 ❌

Results for commit be7e35a.

♻️ This comment has been updated with latest results.

Copy link

Creating environment with name: "4d8981" using commit: "50cdfd1de55acef37ce02325cf2fc0f0fbbdacaa".

The environment will be destroyed after the workflow completes.
To preserve it, add the "preserve-pr-environment" label to the PR.

Copy link

Creating environment with name: "b187c4" using commit: "ee67e417675dca1f6cb55631f776d5d8f5d56f4e".

The environment will be destroyed after the workflow completes.
To preserve it, add the "preserve-pr-environment" label to the PR.

@hattan hattan self-requested a review May 23, 2024 15:35
Copy link

Creating environment with name: "806159" using commit: "e18e8c76fa41b21d347a20191bd5ddb08d92df17".

The environment will be destroyed after the workflow completes.
To preserve it, add the "preserve-pr-environment" label to the PR.


local _pipelineBuildDefinitionId=$(< "$AZDO_TEMP_LOG_PATH/$_pipelineName-cp.json" jq -r '.id')

local _payload="{\"type\":{\"id\":\"0609b952-1397-4640-95ec-e00a01b2c241\"},\"revision\":1,\"isDeleted\":false,\"isBlocking\":true,\"isEnabled\":true,\"settings\":{\"buildDefinitionId\":$_pipelineBuildDefinitionId,\"displayName\":\"$_pipelineName\",\"manualQueueOnly\":false,\"queueOnSourceUpdateOnly\":false,\"validDuration\":0,\"scope\":[{\"repositoryId\":\"$_codeRepoId\",\"refName\":\"refs/heads/main\",\"matchKind\":\"Exact\"}]}}"
Copy link
Contributor

Choose a reason for hiding this comment

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

can we move the payload to the azdo/templates folder

Copy link

github-actions bot commented Jul 8, 2024

Creating environment with name: "441506" using commit: "be7e35ae108a896b3407f718770c787c869dc18c".

The environment will be destroyed after the workflow completes.
To preserve it, add the "preserve-pr-environment" label to the PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement Pull Request workflow for AzDO and Bicep
2 participants