GitXplorerGitXplorer
j

sync-task-issues

public
17 stars
1 forks
4 issues

Commits

List of commits on branch main.
Verified
d8f3a17923344a5c26b98beb9a4ebcbfc9774203

Bump node-fetch from 2.6.1 to 2.6.7

ddependabot[bot] committed 2 years ago
Verified
056d337b3f7610bda9a6a0fc93eb3caedcbf029d

Bump ansi-regex from 4.1.0 to 4.1.1

ddependabot[bot] committed 2 years ago
Verified
9fb3bc23597349bf0435ddc56476cedf6e570671

Merge pull request #34 from jonabc/dependabot/npm_and_yarn/minimist-1.2.6

jjonabc committed 2 years ago
Verified
2fdb1b30788b8f76fb4061a8e67834d6866ebe50

Bump minimist from 1.2.5 to 1.2.6

ddependabot[bot] committed 2 years ago
Verified
4796647d5c2909998de7f2567fc1202b22c437db

Bump ajv from 6.10.2 to 6.12.6

ddependabot[bot] committed 3 years ago
Verified
8dda495be473d369c79f4161b0279b163933d333

Merge pull request #32 from jonabc/dependabot/npm_and_yarn/tmpl-1.0.5

jjonabc committed 3 years ago

README

The README file for this repository.

[DEPRECATED]

GitHub's native markdown task lists were updated since this action was originally created to perform the same behaviors. This action has been deprecated and will not receive any future changes.

javscript-action status

Mark references to issues and PRs as complete

This GH Action finds checkbox list item cross-references to an issue or pull request from an event and marks the references as complete.

This action uses the GitHub GraphQL API to find references, and updates each reference's body. The action looks for checkbox list items that are unchecked and marks them completed

- [ ] <any text>(url | #number)<any text>

becomes

- [x] <any text>(url | #number)<any text>

When an issue or PR which is referenced as a checkbox list item is reopened, the action will mark all references as incomplete.

- [x] <any text>(url | #number)<any text>

becomes

- [ ] <any text>(url | #number)<any text>

Usage

Create a YAML file in the .github/workflows folder of your repository with the following content:

name: Cross off linked issues
on:
  # the closed event type causes unchecked checkbox references to be checked / marked complete
  # the reopened event type causes checked checkbox references to be unchecked / marked incomplete
  issues:
    types: [closed, reopened]

  # the action works on pull request events as well
  pull_request:
    types: [closed, reopened]

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - name: Cross off any linked issue and PR references
        uses: jonabc/sync-task-issues@v1
        with:
          github_token: ${{ secrets.GITHUB_TOKEN }}

Required permissions

The default ${{ secrets.GITHUB_TOKEN }} token can be used only when both the closed issues or PRs and their references are in the same repo.

For cross-repo references, a personal access token with repo access is needed from a user account that can write to the all repositories containing references.

Inputs

  • github_token: the token to use for authenticated GitHub API requests
  • state: explicitly configure whether to mark references as complete or incomplete when the action is triggered
    • accepts either complete and incomplete

Outputs

  • mark_references_as: Either complete or incomplete, showing how references were marked by the action
  • references: The list of objects obtained from the GitHub API that referenced the current issue or PR
    • output using JSON.stringify, ex. [{ ... reference 1 }, { ... reference 2 }]
    • see graphql.js#fields for which data fields are fetched from the API
  • updated: A list of ${type}:${id} strings that identify which objects from references were updated
    • output using JSON.stringify, ex. ["Issue:1", "PullRequest:2"]