ppb

Crates.ioppb
lib.rsppb
version0.9.0
sourcesrc
created_at2023-12-29 15:54:21.539245
updated_at2024-10-31 15:24:34.973044
descriptionpostpone bot
homepage
repositoryhttps://github.com/n01e0/ppb
max_upload_size
id1083436
size74,629
n01e0 (n01e0)

documentation

README

Postpone Bot

Usage

postpone bot

Usage: ppb [OPTIONS]

Options:
  -c, --config <CONFIG>
          config file
      --organization <ORGANIZATION>
          organization
      --repository <REPOSITORY>
          repository
      --token <TOKEN>
          GitHub token
  -l, --listup
          list up postpones
      --annotation-labels <ANNOTATION_LABELS>...
          annotation labels default: ["TODO", "FIXME"]
      --title-format <TITLE_FORMAT>
          title format you can use following variables {label} {file} {line_number} {line} default: "Postpone: {label} {file} {line_number}" [default: "[Postpone] {label}: {line}"]
      --body-format <BODY_FORMAT>
          body format you can use following variables {label} {file} {line_number} {line} default: "Postpone: {label}\n\n{file}:{line_number}\n\n```\n{line}\n```" [default: "\nPostpone: {label}\n\n{file}:{line_number}\n\n```\n{line}\n```\n"]
      --dry-run
          dry run will not create issues default: false
  -h, --help
          Print help
  -V, --version
          Print version

Config

organization: n01e0
repository: ppb
token: ghp_XXX
annotation_labels:
 - "TODO:* "
 - "FIXME:* "
 - "BUG:* "
 - "HACK:* "
 - "#\\[allow\\([a-zA-Z_].+\\)\\]"
title_format: "{label}: {file} {line}"
body_format: "{line}"

Actions

name: Postpone Bot
on:
  push:
    branches:
      - main

permissions:
  contents: read
  issues: write

jobs:
  ppb:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: n01e0/ppb@release
        with:
          token: ${{ secrets.GITHUB_TOKEN }}
          config: "postpone.yml"
Commit count: 123

cargo fmt