Skip to content

Commit

Permalink
Major Updates in Issue. (#33)
Browse files Browse the repository at this point in the history

Co-authored-by: Vedansh <[email protected]>
  • Loading branch information
TheHamsterBot and offensive-vk authored Nov 8, 2024
1 parent c156e1c commit 1411977
Show file tree
Hide file tree
Showing 11 changed files with 329 additions and 6,328 deletions.
31 changes: 0 additions & 31 deletions .dockerignore

This file was deleted.

90 changes: 0 additions & 90 deletions .github/workflows/build.yml

This file was deleted.

14 changes: 5 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
name: CI / Test

on:
schedule:
- cron: '0 0 * * 0'
push:
branches:
- "**"
pull_request:
branches:
paths-ignore:
- '*/**.md'
branches:
- "**"
workflow_dispatch:

Expand Down Expand Up @@ -41,10 +38,9 @@ jobs:
github-token: ${{ secrets.BOT_TOKEN || secrets.GITHUB_TOKEN }}
title: "Automated Pull Request from: ${{ github.head_ref }}"
body: |
# Test Action - Pull Request Test
The `auto-issue` Action is functional locally here.
This Pull Request was Created Sucessfully.
This Auto Issue Action is functional.
Good Day!
labels: test,automated
assignees: TheHamsterBot

Expand Down
10 changes: 0 additions & 10 deletions .markdownlint.json

This file was deleted.

7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,13 @@ This GitHub Action allows you to automate the creation of issues in a repository
```yml
steps:
- uses: actions/checkout@v4

- name: Create an Issue
uses: offensive-vk/auto-issue@v7
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
title: "Automated Issue by Actions."
body: "This is a test issue created by auto-issue action."
title: "Automated Issue by offensive-vk/auto-issue."
body: "This is a test issue created by [auto-issue](https://github.com/offensive-vk/auto-issue) action."
```
## Inputs Configuration
Expand Down Expand Up @@ -98,7 +99,7 @@ steps:
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
title: Simple Issue
body: This Issue was created by auto-issue GitHub Action.
body: 'This is a test issue created by [auto-issue](https://github.com/offensive-vk/auto-issue) action.'
- run: |
echo "${{ steps.new-issue.outputs.json }}" | jq
echo "${{ steps.new-issue.outputs.json }}" | jq .state
Expand Down
14 changes: 5 additions & 9 deletions action.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: auto-issue
description: Create a new GitHub Issue using Octokit, with support for advanced options like labels, assignees, and milestones.
author: offensive-vk
description: Create a Issue using Octokit, with support for advanced options like labels, assignees, and milestones.
author: 'Vedansh (offensive-vk)'

branding:
icon: mail
color: gray-dark
Expand All @@ -9,15 +10,12 @@ inputs:
github-token:
description: "Your GitHub token (PAT or `github.token`). Required to authenticate API requests."
required: false
default: ${{ github.token }}
owner:
description: "The repository owner. If not specified, the owner will be inferred from the context."
required: false
default: ${{ github.repository_owner }}
repo:
description: "The target repository for the issue. If not specified, the current repository is used."
required: false
default: ${{ github.repository }}
title:
description: "The title of the issue. This input is required."
required: false
Expand All @@ -36,7 +34,6 @@ inputs:
assignees:
description: "A comma-separated list of GitHub usernames to assign to the issue (e.g., 'Hamster,user'). Optional."
required: false
default: ${{ github.actor }}
outputs:
json:
description: "The full JSON response for the created issue, as returned by the GitHub API."
Expand All @@ -46,6 +43,5 @@ outputs:
description: "The number of the newly created issue."

runs:
using: 'docker'
image: './Dockerfile'
# image: 'docker://ghcr.io/offensive-vk/auto-issue:latest'
using: 'node20'
main: 'dist/index.js'
Loading

0 comments on commit 1411977

Please sign in to comment.