-
Notifications
You must be signed in to change notification settings - Fork 48
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 #184 from cisco-en-programmability/develop
Develop
- Loading branch information
Showing
37 changed files
with
5,183 additions
and
619 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
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,35 @@ | ||
## Description | ||
Please include a summary of the changes and the related issue. Also, include relevant motivation and context. | ||
|
||
## Type of Change | ||
- [ ] Bug fix | ||
- [ ] New feature | ||
- [ ] Breaking change | ||
- [ ] Documentation update | ||
|
||
## Checklist | ||
- [ ] My code follows the style guidelines of this project | ||
- [ ] I have performed a self-review of my own code | ||
- [ ] I have commented my code, particularly in hard-to-understand areas | ||
- [ ] I have made corresponding changes to the documentation | ||
- [ ] My changes generate no new warnings | ||
- [ ] I have added tests that prove my fix is effective or that my feature works | ||
- [ ] New and existing unit tests pass locally with my changes | ||
- [ ] Any dependent changes have been merged and published in downstream modules | ||
- [ ] All the sanity checks have been completed and the sanity test cases have been executed | ||
|
||
## Ansible Best Practices | ||
- [ ] Tasks are idempotent (can be run multiple times without changing state) | ||
- [ ] Variables and secrets are handled securely (e.g., using `ansible-vault` or environment variables) | ||
- [ ] Playbooks are modular and reusable | ||
- [ ] Handlers are used for actions that need to run on change | ||
|
||
## Documentation | ||
- [ ] All options and parameters are documented clearly. | ||
- [ ] Examples are provided and tested. | ||
- [ ] Notes and limitations are clearly stated. | ||
|
||
## Screenshots (if applicable) | ||
|
||
## Notes to Reviewers | ||
|
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,25 @@ | ||
name: automerge | ||
on: | ||
pull_request: | ||
types: | ||
- labeled | ||
- unlabeled | ||
- synchronize | ||
- opened | ||
- edited | ||
- ready_for_review | ||
- reopened | ||
- unlocked | ||
pull_request_review: | ||
types: [submitted] | ||
jobs: | ||
automerge-job: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: reitermarkus/automerge@v2 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
merge-method: rebase | ||
do-not-merge-labels: never-merge | ||
# pull-request: ${{ github.event.inputs.pull-request }} | ||
dry-run: false |
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: integration-tests | ||
on: | ||
workflow_run: | ||
workflows: | ||
- main | ||
jobs: | ||
trigger-circleci: | ||
runs-on: ubuntu-20.04 | ||
if: github.event.workflow_run.conclusion == 'success' | ||
steps: | ||
- uses: actions/download-artifact@v4 | ||
with: | ||
name: github_ref-${{ github.event.workflow_run.id }} | ||
run-id: ${{ github.event.workflow_run.id }} | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Trigger circleci | ||
run: | | ||
printf '{"branch": "%s" ,"parameters": {"GHA_Meta":"run-tests"}}' $(cat github_ref) > req_body | ||
curl -X POST --location "https://circleci.com/api/v2/project/gh/madhansansel/dnacenter-ansible/pipeline" \ | ||
-H "Content-Type: application/json" \ | ||
-H "Circle-Token: ${{ secrets.CCI_TOKEN }}" \ | ||
-d "@req_body" |
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,15 @@ | ||
name: main | ||
on: | ||
pull_request_review: | ||
types: [submitted] | ||
jobs: | ||
trigger-circleci: | ||
if: github.event.review.state == 'approved' | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- run: echo -n "${GITHUB_REF}" | sed -r 's/^refs\///' | sed -r 's/merge/head/' > github_ref | ||
- name: Store ref for circleci trigger | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: github_ref-${{ github.run_id }} | ||
path: github_ref |
Oops, something went wrong.