Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

fix

Attempts to fix issues with Copilot.

Usage

Inputs

issues_file

Required Path to a JSON file containing the list of issues to attempt to fix—including, at a minimum, their urls. The path can be absolute or relative to the working directory (which defaults to GITHUB_WORKSPACE). For example: issues.json.

The file should contain a JSON array of issue objects. For example:

[
  {"url":"https://github.com/github/docs/issues/123"},
  {"nodeId":"SXNzdWU6Mg==","url":"https://github.com/github/docs/issues/124"},
  {"id":4,"nodeId":"SXNzdWU6NA==","url":"https://github.com/github/docs/issues/126","title":"Accessibility issue: 4"}
]

repository

Required Repository (with owner) to file issues in. For example: primer/primer-docs.

token

Required Personal access token (PAT) with fine-grained permissions 'issues: write' and 'pull_requests: write'.

Outputs

fixings_file

Absolute path to a JSON file containing the list of pull requests filed (and their associated issues). The action writes this file to a temporary directory and returns the absolute path. For example: $RUNNER_TEMP/fixings-<uuid>.json.

The file will contain a JSON array of fixing objects. For example:

[
  {
    "issue": {"id":1,"nodeId":"SXNzdWU6MQ==","url":"https://github.com/github/docs/issues/123","title":"Accessibility issue: 1"},
    "pullRequest": {"url":"https://github.com/github/docs/pulls/124"}
  }
]