community / community.general / 0.2.1 / module / github_issue View GitHub issue. Authors: Abhijeet Kasurde (@Akasurde)community.general.github_issue (0.2.1) — module
Install with ansible-galaxy collection install community.general:==0.2.1
collections: - name: community.general version: 0.2.1
View GitHub issue for a given repository and organization.
- name: Check if GitHub issue is closed or not github_issue: organization: ansible repo: ansible issue: 23642 action: get_status register: r
- name: Take action depending upon issue status debug: msg: Do something when issue 23642 is open when: r.issue_status == 'open'
repo: description: - Name of repository from which issue needs to be retrieved. required: true issue: description: - Issue number for which information is required. required: true action: choices: - get_status default: get_status description: - Get various details about issue depending upon action specified. organization: description: - Name of the GitHub organization in which the repository is hosted. required: true
get_status: description: State of the GitHub issue returned: success sample: open, closed type: str