Github Action to open a new issue on ANY Github repository that the PAT has access to. 🤖
Field | Mandatory | Observation |
---|---|---|
access-token | YES | How to create a PAT |
repo-owner | YES | Ex: octocat |
repo-name | YES | Ex: open-issue-action |
issue-title | YES | Can use the context or customize |
issue-body | YES | Can use the context or customize |
issue-labels | NO | Labels need to exist on the new repository. Separated with coma , if more than one |
issue-assignees | NO | Assignees need to have access to the new repositor. Separated with coma , if more than one |
Using if conditionnal
to open a new issue on ANOTHER repository when an issue with a specific label documentation
is opened or labeled on the CURRENT repository.
name: Open Issue Workflow
on:
issues:
types: [opened, labeled]
jobs:
job:
runs-on: ubuntu-latest
steps:
- name: Open new ISSUE on GuillaumeFalourd/poc-github-actions repository
if: contains(github.event.label.name , 'documentation')
uses: GuillaumeFalourd/open-issue-action@v1
with:
access-token: ${{ secrets.ACCESS_TOKEN }}
repo-owner: GuillaumeFalourd
repo-name: poc-github-actions
issue-title: Custom title for new ISSUE
issue-body: Custom message for new ISSUE
issue-labels: bug # Not mandatory
issue-assignees: <username> # Not mandatory
This action will execute this python automation to open a new ISSUE with the informed title
and body
on the informed repository.
This repository uses the Apache License 2.0