Coder Social home page Coder Social logo

ribtoks / tdg-github-action Goto Github PK

View Code? Open in Web Editor NEW
51.0 4.0 4.0 2.14 MB

GitHub action for project management using TODO comments

License: MIT License

Dockerfile 2.11% Go 96.29% Makefile 1.60%
project-management todo github-action github-action-docker golang github-issues

tdg-github-action's Introduction

SWUbanner

tdg-github-action's People

Contributors

renovate[bot] avatar ribtoks avatar sidsprasad avatar thijsvtol avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

tdg-github-action's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

dockerfile
Dockerfile
  • golang 1.22-alpine
  • alpine 3.20
github-actions
.github/workflows/go.yml
  • actions/setup-go v4
  • actions/checkout v3
.github/workflows/integration.yml
gomod
go.mod
  • go 1.14
  • github.com/google/go-github/v49 v49.1.0
  • gitlab.com/ribtoks/tdg v0.0.6
  • golang.org/x/oauth2 v0.15.0

  • Check this box to trigger a request for Renovate to run again on this repository

Close issue with comment/reason

I was wondering if it's possible for this tool to close issues with a comment from the commit message.

Example TODO comment

//TODO are we sure the below is correct?
var foo = bar;

Then someone could close it with this commit

-//TODO are we sure the below is correct?
var foo = bar;

answered TODO
Yes it's correct because lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Not sure if the commit message itself as the comment on the issue would be desired. In that case some kind of keyword could be used, like closingComment=.
That would make the above look like

answered TODO
closingComment=Yes it's correct because lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Created a lot of issues by accident

I accidentally created 200 issues because i put the action after the npm install script

I leave here the script i used to delete all those issues if anyone fucks up like i did 🤣

const GITHUB_TOKEN = ''


import { Octokit } from '@octokit/rest'
import { graphql } from '@octokit/graphql'
const octokit = new Octokit({ auth: GITHUB_TOKEN })

const data1 = await octokit.request('GET /repos/{owner}/{repo}/issues', {
    owner: 'remorses',
    repo: 'docs-from-notion',
    per_page: 100,
})

for (let issue of data1.data) {
    console.log('deleting issue ' + issue.title)
    await graphql(
        `
            
                mutation {
                    deleteIssue(input: { issueId: "${issue.node_id}" }) {
                        repository {
                            name
                        }
                    }
                }
            
        `,
        {
            headers: {
                authorization: 'token ' + GITHUB_TOKEN,
            },
        },
    )
}

EXCLUDE_PATTERN regex doesn't work.

It looks like EXCLUDE_PATTERN doesn't seem to work properly.

EXCLUDE_PATTERN: ".*.\/(node_modules|dist|bin|files|themes)\/.*"

This is a valid regex that should match any exactly named directory.

image

However - it doesn't seem to filter anything out - you still get issues logged for files such as:

./files/somefile.txt
./themes/some/thing.txt
./themes/mytheme/node_modules/something.js

etc...

Somewhat related - would it also be better to accept a list/array of files/patterns to match on?, e.g:

exclude:
  - "./node_modules/*"
  - ".*/files/somefile"
  - ".*/**/bacon.yu*"

or if it has to be a string:

exclude: |
  "./node_modules/*"
  ".*/files/somefile"
  ".*/**/bacon.yu*"

Issues with spaces in folder names

Hi! Thanks for this GH Action!

I'm having a small issue. When I have a space in a folder name inside my project structure, It breaks the hyperlink in the issue. Not sure if this is a GH link parsing problem or if something can be done in the Action to fix this. Maybe quote the link or something like that. Sorry if this is something pretty evident, I'm really new into the GH Actions environment.

Thanks!

Screen Shot 2020-08-11 at 11 23 31 AM

No longer working

Hi, receiving this from runs:

Current runner version: '2.272.0'
2
Operating System
6
Virtual Environment
10
Prepare workflow directory
11
Prepare all required actions
12
Download action repository 'actions/[email protected]'
13
Download action repository 'ribtoks/tdg-github-action@master'
14
##[error]ribtoks/tdg-github-action/master/action.yml (Line: 54, Col: 9): Unexpected value ''
15
##[error]ribtoks/tdg-github-action/master/action.yml (Line: 54, Col: 9): Unexpected value ''
16
##[error]System.ArgumentException: Unexpected type 'NullToken' encountered while reading 'outputs'. The type 'MappingToken' was expected.
17
   at GitHub.DistributedTask.ObjectTemplating.Tokens.TemplateTokenExtensions.AssertMapping(TemplateToken value, String objectDescription)
18
   at GitHub.Runner.Worker.ActionManifestManager.Load(IExecutionContext executionContext, String manifestFile)
19
##[error]Fail to load ribtoks/tdg-github-action/master/action.yml

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.