Skip to content

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

License

Notifications You must be signed in to change notification settings

GuillaumeFalourd/open-issue-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

License

Stars

Watchers

Forks