Coder Social home page Coder Social logo

git-action-git-issue-creation's Introduction

Git Action Git Issue Creation

Git Action to create an Issue on a GitHub Repository. This action can be used to create an issue when a build fails in a Git Action workflow.

Usage

This action can be used after any other action. Below is simple example on using it:

1. Create a .github/workflows/git-issue-creation.yml

2. Add the following properties to git-issue-creation.yml file

on: push
name: Git Creation Demo
jobs:
  gitIssueCreation:
    name: Git Creation Demo
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@master
      - name: Git Creation Demo
        uses: senzing/[email protected]
        env:
          GITHUB_ISSUE_BODY: Demo'ing Git Issue Creation
          GITHUB_ISSUE_TITLE: Demo'ing Git Issue Creation
          GITHUB_REPO_NAME: git-action-github-issue-creation
          GITHUB_REPO_OWNER: Senzing
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
          GITHUB_SHA: ${{ github.sha }}

Go here for a template yml with all environment variables.

Environment Variables

These are the environment variables that can be set to pass in additional information about the Git Action.

Variable Name Required Description
GITHUB_ISSUE_BODY Yes Body of the issue to be created.
GITHUB_ISSUE_TITLE Yes Title of the issue to be created.
GITHUB_OWNER Yes The owner of the repository which is normally seen in the URI as a prefix to the repository.
GITHUB_REPOSITORY Yes The name of the repository.
GITHUB_TOKEN Yes The GitHub access token used by Git Actions workflow. Can use the native token generated by Git Actions or create a custom secret.
GITHUB_COMMIT_SHA Yes The commit SHA associated to running the Git Action workflow.

Reference

License

Apache 2

git-action-git-issue-creation's People

Contributors

bryan-nice avatar dependabot[bot] avatar docktermj avatar kernelsam avatar

Watchers

 avatar  avatar  avatar

git-action-git-issue-creation's Issues

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.