/open-issue-action

Github Action to open a new issue on ANY Github repository that the Personal Access Token (PAT) has access to 🤖

Primary LanguageDockerfileApache License 2.0Apache-2.0

Open Issue Action

Public workflows that use this action.

Open Issue Workflow

Title

Github Action to open a new issue on ANY Github repository that the PAT has access to. 🤖

How to use this action?

Action inputs

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

Example

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

How does it work?

This action will execute this python automation to open a new ISSUE with the informed title and body on the informed repository.

Licensed

This repository uses the Apache License 2.0