Giter Club home page Giter Club logo

issue-list-readme's Introduction

trophy

issue-list-readme's People

Contributors

actions-user avatar manishram avatar seed-of-apricot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

issue-list-readme's Issues

cannot find README.md

Currently trying to use this in my branch, and it has trouble finding the README.md file, which is located in my base directory.
my yaml file:

name: "calendar-view"

on:
    push:
    issues:
      types: [opened, edited, deleted]
      
    
jobs: 
    issue-list:
        runs-on: ubuntu-latest
        steps:
          - name: Dump GitHub context
            env:
              GITHUB_CONTEXT: ${{ toJson(github) }}
            run: echo "$GITHUB_CONTEXT"
          - name: update
            uses: seed-of-apricot/[email protected]
            with:
                GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
          - name: add-and-commit
            uses: EndBug/add-and-commit@v4
            with:
                  message: README.md has been re-written
            env:
                  GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
          - name: push
            uses: ad-m/github-push-action@master
            with:
                github_token: ${{ secrets.GITHUB_TOKEN }}
                branch: ${{ github.head_ref }}

in github actions, the error I am getting:

Run seed-of-apricot/[email protected]
Initializing.
GitHub client has been initialized.
Error: ENOENT: no such file or directory, open './README.md'

I played around with displaying the branch information etc (as you can see in Dump GitHub context) and trying to set the base directory with uses: working_directory:, both unhelpful. I am doublechecking again to confirm the README file has an .md end. Any ideas?

test

test
hoge
testtest
yay

Issue identifier is not optional

Error:

image

Action code:

name: Test

on:
  issues:
    types: [opened, closed, reopened, deleted]

jobs:
  issue-list:
    runs-on: ubuntu-latest

    permissions:
          contents: write
          pull-requests: write

    steps:
      - name: checkout
        uses: actions/checkout@v2

      - name: rewriteReadme
        uses: seed-of-apricot/[email protected]
        with:
          GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
          pattern: '<!-- issuesTable -->'
          labels: 'good first issue'
          state: 'all'
  
      - name: add-and-commit
        uses: EndBug/add-and-commit@v4
        with:
          message: README.md has been re-written by Github Actions.
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  
      - name: push
        uses: ad-m/github-push-action@master
        with:
          github_token: ${{ secrets.GITHUB_TOKEN }}

Partial solution:

Add the identifier to each issue.
image

Syntax Typo in README.md

There is a typo error(marked as bold below):

with:
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
pattern: '' # suffixing "Demo" for this readme
labels: 'good first issue'
labels: 'open'

label should be replaced with status

test2

test
hoge

testtest
yay

Allow edit table headers and columns

AS A user
I WANT TO be able to configure the table headings and also which columns will be displayed
SO THAT I can use any language for the heading titles and also hide a column, for example body

Acceptance criteria

A configuration that allow us to set the "display" and "text" properties of the headings as following:

DEFAULT

with:
  GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  labels: ''
  state: 'all'
  titleHeading: 'Title'
  statusHeading: 'Status'
  assigneeHeading: 'Assignee'
  bodyHeading: 'Body'
  titleDisplay: true
  statusDisplay: true  
  assigneeDisplay: true
  bodyDisplay: true

USAGE

with:
  GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  titleHeading: 'My custom title'
  assigneeDisplay: false
  bodyDisplay: false

Result is the follow table:

My custom title Status
Issue title โœณ๏ธ
Another issue โœณ๏ธ

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.