Giter Site home page Giter Site logo

commit-issue-action's People

Contributors

wescran avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

commit-issue-action's Issues

Error handling in shell script

Have seen recently weird outputs from GitHub Actions where an issue was being made even though there have been no commits to the repository. Here is an example from yesterday when there was no recent commit:

2020-04-01T03:02:59.4255280Z jq: error (at <stdin>:4): Cannot index string with string "html_url"

After digging through the code get_commits.sh, this line seemed to be the culprit:

[ "$(echo $commits)" = "[ ]" ]

This seems very fragile as if for some reason the previous curl command returns something not exact to that(which must have been happening), the script was continuing on as if there had been a commit found. This false positive needs to be handled better with either a better test or catches for errors.

Therefore I have decided to create a new branch to begin working on these fixes and will hopefully have an update soon. I have already begun looking at using more of jq as it is a powerful JSON query tool.

Error: Docker run failed with exit code 126

Thanks so much for creating this. It's been extremely useful for tree-sitter-legesher-python ๐Ÿ˜„

Trying to use it for language-legesher-python but am running into this error. Do I need to initialize anything for docker? Thank you!

/usr/bin/docker run --name ee625f170e0f3225ffece70b687f1abc606_668e99 --label 671ee6 --workdir /github/workspace --rm -e GITHUB_TOKEN -e INPUT_SOURCEREPO -e INPUT_TARGETREPO -e INPUT_ISSUELABELS -e HOME -e GITHUB_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_ACTOR -e GITHUB_WORKFLOW -e GITHUB_HEAD_REF -e GITHUB_BASE_REF -e GITHUB_EVENT_NAME -e GITHUB_WORKSPACE -e GITHUB_ACTION -e GITHUB_EVENT_PATH -e RUNNER_OS -e RUNNER_TOOL_CACHE -e RUNNER_TEMP -e RUNNER_WORKSPACE -e ACTIONS_RUNTIME_URL -e ACTIONS_RUNTIME_TOKEN -e GITHUB_ACTIONS=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/language-legesher-python/language-legesher-python":"/github/workspace" 671ee6:25f170e0f3225ffece70b687f1abc606  "atom/language-python" "legesher/language-legesher-python" ":construction: Opportunity: Maintenance, Status: Available, Status: Review Needed"
/usr/bin/docker: Error response from daemon: OCI runtime create failed: container_linux.go:346: starting container process caused "exec: \"/entrypoint.sh\": permission denied": unknown.
##[error]Docker run failed with exit code 126

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.