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

Implement Support for github tags #219

Merged

Conversation

rohitthakur2590
Copy link
Contributor

@rohitthakur2590 rohitthakur2590 commented May 29, 2023

SUMMARY
  • enables user to use git_publish to push a tag
  • enables user to use git_retrieve pull repository with specific tag.

resolves: #176

ISSUE TYPE
  • Feature Pull Request
COMPONENT NAME

git_publish
git_retrieve

ADDITIONAL INFORMATION
Example
 
    
- name: Publish the changes
      ansible.scm.git_publish:
        tag:
          annotation: "{{ time }}"
          message: "backup_config"
        path: "{{ repository['path'] }}"
        
 
    - name: Retrieve a repository from a distant location and make it available locally
      ansible.scm.git_retrieve:
        origin:
          url: [email protected]:rohitthakur2590/network_automation_backups.git
          tag: "2023-05-30-19-01"
        parent_directory: "/home/rothakur/ansible-collections/collections/ansible_collections/ansible/scm/"
      register: repository
    

Signed-off-by: rohitthakur2590 <[email protected]>
@rohitthakur2590 rohitthakur2590 changed the title [WIP] Implement Support for pushin tags Implement Support for github tags Jun 7, 2023
@cidrblock cidrblock added enhancement New feature or request safe to test Grants approval for tests to run labels Jun 9, 2023
Signed-off-by: rohitthakur2590 <[email protected]>
@github-actions github-actions bot removed the safe to test Grants approval for tests to run label Jun 12, 2023
@rohitthakur2590 rohitthakur2590 added the safe to test Grants approval for tests to run label Jul 10, 2023
@github-actions github-actions bot removed the safe to test Grants approval for tests to run label Jul 10, 2023
@rohitthakur2590 rohitthakur2590 added the safe to test Grants approval for tests to run label Jul 10, 2023
Copy link
Collaborator

@cidrblock cidrblock left a comment

Choose a reason for hiding this comment

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

Cool.

Looks like a couple precommit errs to fix

plugins/modules/git_publish.py Outdated Show resolved Hide resolved
plugins/action/git_retrieve.py Outdated Show resolved Hide resolved
plugins/action/git_publish.py Show resolved Hide resolved
Signed-off-by: rohitthakur2590 <[email protected]>
Signed-off-by: rohitthakur2590 <[email protected]>
Signed-off-by: rohitthakur2590 <[email protected]>
@rohitthakur2590 rohitthakur2590 merged commit 50ea36b into ansible-collections:main Aug 22, 2023
53 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request safe to test Grants approval for tests to run
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add tags to publish and retrieve
2 participants