GithubHelp home page GithubHelp logo

redhat-plumbers-in-action / advanced-issue-labeler Goto Github PK

View Code? Open in Web Editor NEW
15.0 15.0 4.0 19.59 MB

๐Ÿ”– Label issues based on input and defined policy

License: MIT License

TypeScript 100.00%
github-action issue-forms labels policy-based-labeling typescript

advanced-issue-labeler's People

Contributors

dependabot[bot] avatar jamacku avatar renovate[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

advanced-issue-labeler's Issues

Dependency Dashboard

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

Awaiting Schedule

These updates are awaiting their schedule. Click on a checkbox to get an update now.

  • chore(deps): update dependency @types/node to v18.19.10 (main)
  • chore(deps): update dependency eslint-plugin-prettier to v5.1.3 (main)
  • chore(deps): update dependency prettier to v3.2.4 (main)
  • chore(deps): update dependency typescript to v5.3.3 (main)
  • chore(deps): update typescript-eslint monorepo to v6.19.1 (main) (@typescript-eslint/eslint-plugin, @typescript-eslint/parser)
  • chore(deps): update yarn to v3.7.0 (main)
  • fix(deps): update dependency @octokit/core to v5.1.0 (main)
  • chore(deps): update actions/setup-node action to v4 (main)
  • chore(deps): update actions/upload-artifact action to v4 (main)
  • chore(deps): update dependency @types/node to v20 (main)
  • chore(deps): update github/codeql-action action to v3 (main)
  • chore(deps): update vitest monorepo to v1 (main) (major) (@vitest/coverage-v8, vitest)
  • chore(deps): update yarn to v4 (main)
  • chore(deps): update dependency ts-node to v10.9.2 (node16)
  • chore(deps): update dependency @types/node to v18.19.10 (node16)
  • chore(deps): update dependency eslint to v8.56.0 (node16)
  • chore(deps): update dependency eslint-plugin-prettier to v5.1.3 (node16)
  • chore(deps): update dependency prettier to v3.2.4 (node16)
  • chore(deps): update dependency typescript to v5.3.3 (node16)
  • chore(deps): update typescript-eslint monorepo to v6.19.1 (node16) (@typescript-eslint/eslint-plugin, @typescript-eslint/parser)
  • chore(deps): update yarn to v3.7.0 (node16)
  • fix(deps): update dependency @octokit/core to v5.1.0 (node16)
  • chore(deps): update actions/setup-node action to v4 (node16)
  • chore(deps): update actions/upload-artifact action to v4 (node16)
  • chore(deps): update dependency @types/node to v20 (node16)
  • chore(deps): update github/codeql-action action to v3 (node16)
  • chore(deps): update vitest monorepo to v1 (node16) (major) (@vitest/coverage-v8, vitest)
  • chore(deps): update yarn to v4 (node16)

Detected dependencies

Branch main
github-actions
.github/workflows/check-dist.yml
  • actions/checkout v4
  • actions/setup-node v3
  • actions/upload-artifact v2
.github/workflows/codeql-analysis.yml
  • actions/checkout v4
  • github/codeql-action v2
  • github/codeql-action v2
  • github/codeql-action v2
.github/workflows/issue-labeler.yml
  • actions/checkout v4
  • stefanbuck/github-issue-parser v3
.github/workflows/lint.yml
  • actions/checkout v4
  • actions/setup-node v3
.github/workflows/publish-release.yml
  • actions/checkout v4
  • Actions-R-Us/actions-tagger v2
.github/workflows/release-drafter.yml
  • release-drafter/release-drafter v5
.github/workflows/unit-tests.yml
  • actions/checkout v4
  • actions/setup-node v3
  • codecov/codecov-action v3
npm
package.json
  • @actions/core 1.10.1
  • @actions/github ^6.0.0
  • @octokit/core ^5.0.1
  • @octokit/rest 20.0.2
  • @probot/octokit-plugin-config ^2.0.1
  • @total-typescript/ts-reset ^0.5.1
  • zod ^3.22.4
  • @types/node 18.19.4
  • @typescript-eslint/eslint-plugin 6.7.5
  • @typescript-eslint/parser 6.7.5
  • @vercel/ncc 0.38.1
  • @vitest/coverage-v8 ^0.34.0
  • eslint 8.56.0
  • eslint-plugin-prettier 5.1.2
  • js-yaml 4.1.0
  • prettier 3.0.3
  • ts-node 10.9.2
  • typescript 5.2.2
  • vitest 0.34.6
  • yarn 3.6.4
Branch node16
github-actions
.github/workflows/check-dist.yml
  • actions/checkout v4
  • actions/setup-node v3
  • actions/upload-artifact v2
.github/workflows/codeql-analysis.yml
  • actions/checkout v4
  • github/codeql-action v2
  • github/codeql-action v2
  • github/codeql-action v2
.github/workflows/issue-labeler.yml
  • actions/checkout v4
  • stefanbuck/github-issue-parser v3
.github/workflows/lint.yml
  • actions/checkout v4
  • actions/setup-node v3
.github/workflows/publish-release.yml
  • actions/checkout v4
  • Actions-R-Us/actions-tagger v2
.github/workflows/release-drafter.yml
  • release-drafter/release-drafter v5
.github/workflows/unit-tests.yml
  • actions/checkout v4
  • actions/setup-node v3
  • codecov/codecov-action v3
npm
package.json
  • @actions/core 1.10.1
  • @actions/github ^6.0.0
  • @octokit/core ^5.0.1
  • @octokit/rest 20.0.2
  • @probot/octokit-plugin-config ^2.0.1
  • @total-typescript/ts-reset ^0.5.1
  • node-fetch ^3.3.2
  • zod ^3.22.4
  • @types/node 18.18.9
  • @typescript-eslint/eslint-plugin 6.7.5
  • @typescript-eslint/parser 6.7.5
  • @vercel/ncc 0.38.1
  • @vitest/coverage-v8 ^0.34.0
  • eslint 8.51.0
  • eslint-plugin-prettier 5.0.1
  • js-yaml 4.1.0
  • prettier 3.0.3
  • ts-node 10.9.1
  • typescript 5.2.2
  • vitest 0.34.6
  • yarn 3.6.4

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

Check if labels can be set when configuration is missing

Type of issue

Bug Report

Description

I had encountered multiple occasions when labels were not set when using policy-free configuration:

##[debug]Evaluating condition for step: 'Set labels based on browsers field'
##[debug]Evaluating: success()
##[debug]Evaluating success:
##[debug]=> true
##[debug]Result: true
##[debug]Starting: Set labels based on browsers field
##[debug]Loading inputs
##[debug]Evaluating: steps.issue-parser.outputs.jsonString
##[debug]Evaluating Index:
##[debug]..Evaluating Index:
##[debug]....Evaluating Index:
##[debug]......Evaluating steps:
##[debug]......=> Object
##[debug]......Evaluating String:
##[debug]......=> 'issue-parser'
##[debug]....=> Object
##[debug]....Evaluating String:
##[debug]....=> 'outputs'
##[debug]..=> Object
##[debug]..Evaluating String:
##[debug]..=> 'jsonString'
##[debug]=> '{
##[debug]  "what-happened": "A bug happened!",
##[debug]  "Reproduce": "reproduce!",
##[debug]  "browsers": "Microsoft Edge"
##[debug]}'
##[debug]Result: '{
##[debug]  "what-happened": "A bug happened!",
##[debug]  "Reproduce": "reproduce!",
##[debug]  "browsers": "Microsoft Edge"
##[debug]}'
##[debug]Evaluating: secrets.GITHUB_TOKEN
##[debug]Evaluating Index:
##[debug]..Evaluating secrets:
##[debug]..=> Object
##[debug]..Evaluating String:
##[debug]..=> 'GITHUB_TOKEN'
##[debug]=> '***'
##[debug]Result: '***'
##[debug]Loading env
Run redhat-plumbers-in-action/advanced-issue-labeler@v2
  with:
    issue-form: {
    "what-happened": "A bug happened!",
    "Reproduce": "reproduce!",
    "browsers": "Microsoft Edge"
  }
    section: browsers
    block-list: Other Browser
  
    token: ***
##[debug]{ property: _inputs.template, value: , notes: [object Object]
##[debug]Node Action run completed with exit code 0
##[debug]Finishing: Set labels based on browsers field

Describe the solution you'd like

No response

API URL to become a variable for GitHub Enterprise

Type of issue

Feature Request

Description

Currently, this app cannot be used on GitHub enterprise versions which are self hosted, because the Base API URL is set to the default API of github.com

As GitHub Enterprise is self-hosted the API URL is different.

Describe the solution you'd like

A solution would be to create a configuration option for the API URL as a not required field which the default would be github api if not specified.

I would like to be assigned to this issue

validation fails when `block-list` input is `undefined`

Type of issue

Bug Report

Description

We would like to use this feature, but somehow we are not able to make it run even if we simply follow the example in the readme, the integration Lightning-AI/pytorch-lightning#17484 and the error:

with:
    issue-form: {
    "bug_description": "test",
    "versions": "ver: 1.6.x",
    "how_to_reproduce_the_bug": "",
    "error_messages_and_logs": "```\r\n# Error messages and logs here please\r\n```",
    "environment": "<details>\r\n  <summary>Current environment</summary>\n\n```\r\n#- Lightning Component (e.g. Trainer, LightningModule, LightningApp, LightningWork, LightningFlow):\r\n#- PyTorch Lightning Version (e.g., 1.5.0):\r\n#- Lightning App Version (e.g., 0.5.2):\r\n#- PyTorch Version (e.g., 2.0):\r\n#- Python version (e.g., [3](https://github.com/Lightning-AI/lightning/actions/runs/4822458653/jobs/8589717538#step:4:3).[9](https://github.com/Lightning-AI/lightning/actions/runs/4822458653/jobs/8589717538#step:4:9)):\r\n#- OS (e.g., Linux):\r\n#- CUDA/cuDNN version:\r\n#- GPU models and configuration:\r\n#- How you installed Lightning(`conda`, `pip`, source):\r\n#- Running environment of LightningApp (e.g. local, cloud):\r\n```\n\n</details>",
    "more_info": ""
  }
    section: versions
    token: ***
Error: , versions, undefined | , versions, undefined
Error: undefined, undefined,  | , versions, undefined
Error: An instance of Labeler has failed the validation:
 - property _inputs._blockList has failed the following constraints: minLength

The failing run is https://github.com/Lightning-AI/lightning/actions/runs/4822458653/jobs/8589717538

Also, it is confusing as the step is ๐ŸŸข even if it fails inside

Describe the solution you'd like

No response

Add option to mark issues that wasn't reported via issue forms

Type of issue

Feature Request

Description

As discussed in systemd/systemd#23968 (comment) it would be useful to be able to mark issues that bypassed issue form.

/cc @evverx

Describe the solution you'd like

Introduce new optional input that would take name of label, which would be set when issue forms were bypassed.

# ...

mark-non-issue-forms-issues:
  required: false
  default: ''
  description: Name of label that will be set when issue form was bypassed by using `Create and empty issue` or using some other way.

# ...

Follow best security practices and guidelines ๐Ÿ”’ ๐Ÿ’ช

Type of issue

Feature Request

Description

Security guidelines provided by GitHub: Security hardening for GitHub Actions

Describe the solution you'd like

Let's review the document from GitHub regarding GitHub Actions and security. And make Advanced Issue Labeler more secure!

Security is a long-term goal, not one of, so it would be great to have some ci check or checkbox in the Pull Request template to ensure that when reviewing new code, we comply with best security policies and guidelines.

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.