🎓 Graduated in Systems Analysis and Development at FATEC São Caetano do Sul
Currently looking for jobs with:
- Vue
- Node
- Vite
- Apollo
- Cypress
- Postgress
- GraphQL
Auto Label Issue Based on Issue Description
Home Page: https://renato66.github.io/auto-label/
License: MIT License
Allow the registration of a label if no label is found in the issue.
For example, there are labels 'labelA,' 'labelB, ' and 'labelC,' but none were mentioned in the issue. In this case, add a pre-defined label in the .yml
Acredito que o código abaixo ficou perdido na implementação:
Line 35 in 3ccbe43
Gerando o seguinte resultado:
Acredito que a seguinte alteração vá servir:
- console.log('aqui', elem)
+ console.log(`Label '${elem}' found`)
Se concordar abro um PR.
Queria entender se o action é case sensitive ou não.
Por exemplo:
Tenho a label inglês
no repositório. Se a pessoa escrever INGLÊS
irá funcionar da mesma forma que escrever inglês
?
help
Seria interessante informar no README.md e no https://renato66.github.io/auto-label/ quais itens devem ser marcados na configuração do token e também como configurar o bot do GitHub.
Ao executar o auto-label, ele não está colocando labels com acento.
Versão: 2.1.1
Exemplo:
Existem as seguintes labels no repositório e são palavras escritas na issue:
As únicas labels inseridas foram:
Issue aonde o problema ocorreu:
qa-brasil/vagas#39
(Essa issue está com todas as labels, pois eu inseri as faltantes após o build)
Upgrade Node from 10 to 16
Run tests and allow/reject if PR doesn't meet the test requirements
No meu projeto fiz a seguinte configuração:
labels-synonyms: '{"Inglês":["inglês","english"]}'
Pelo que li na documentação, ele deveria procurar as palavras inglês
e english
na issue, encontrando alguma ia adicionar a label Inglês
.
Porém ao executar a pipeline ele adicionou a label English
, que não existia no repositório.
Com isso, parece que o comportamento do sinônimos não está como o esperado e não poderia criar label, já que apenas adiciona o que já existe no projeto.
Issue com esse problema: qa-brasil/vagas#49
Add sentry to monitor the application error logs
Algumas issues abertas no qa-brasil/vagas estão recebendo a label Portugal, mesmo sem ter essa palavra na issue.
As 2 issues em que vi o problema ocorrer:
Não consegui identificar um padrão que desancadeasse esse problema.
Getting the following error
*** running renato66/auto-label version 2.1.2 ***
Getting repository labels...
Repository labels found: 15
Reading labels in issue...
Error: Cannot read properties of null (reading 'replace')
/lib/functions.js:66
const noCommentaryBody = body.replace(/\<!--(.|\n)*?-->/g, '');
^
TypeError: Cannot read properties of null (reading 'replace')
at Object.getIssueLabels (/lib/functions.js:66:39)
at /lib/main.js:37:45
at Generator.next (<anonymous>)
at fulfilled (/lib/main.js:5:5[8]
This refactor will handle:
Upgrade Node.js from version 16 to version 20, since it will be deprecated by GitHub Actions.
Hi is it possible to check new comments and auto label with this new comment?
Hey,
Not always but sometimes the following issue arises:
*** running renato66/auto-label version 2.1.2 ***
Getting repository labels...
Repository labels found: 12
Reading labels in issue...
(node:1) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'replace' of null
Error: Cannot read property 'replace' of null
at Object.getIssueLabels (/lib/functions.js:66:39)
at /lib/main.js:37:45
at Generator.next ()
at fulfilled (/lib/main.js:5:58)
at process._tickCallback (internal/process/next_tick.js:68:7)
(node:1) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:1) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
My YAML:
name: Labeling new issue
on:
issues:
types: ['opened']
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: Renato66/auto-label@v2
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
ignore-comments: true
default-labels: '["back-end"]'
Error:
The listLabelsForRepo
gets only the first 30 labels
Fix:
Raise max labels per page to 100 (max)
Loop through all pages and get the labels
Seria interessante ter uma forma de poder definir qual seção pode ser mapeada na hora de inserir label. Com isso a seção Labels
do repositório qa-brasil/vagas seria melhor aproveitada. Não sendo mais preciso corrigir as labels da issue por causa de palavra no meio da descrição da vaga.
Em uma issue de vaga, ela não pede ingês, mas essa empresa tem o diferencial de oferecer curso de inglês. Com isso a label Inglês
é inserida na vaga.
Será inserida a possibilidade de utilizar <!-- AUTO-LABEL:START -->
e <!-- AUTO-LABEL:END -->
na issue.
AUTO-LABEL:START
na issue, será mapeado apenas o que está entre START
e o END
que está abaixo.
AUTO-LABEL:START
e END
na issue. Sempre mapear o que está dentro de todos.No exemplo abaixo, seriam inseridas as labels Bahia
, Minas Gerais
e Santa Catarina
.
Bahia
Minas Gerais
Santa Catarina
No exemplo abaixo, a única label inserida na issue seria Minas Gerais
.
Bahia
<!-- AUTO-LABEL:START -->
Minas Gerais
<!-- AUTO-LABEL:END -->
Santa Catarina
No exemplo abaixo, seriam inseridas as labels Bahia
e Santa Catarina
.
<!-- AUTO-LABEL:START -->
Bahia
<!-- AUTO-LABEL:END -->
Minas Gerais
<!-- AUTO-LABEL:START -->
Santa Catarina
<!-- AUTO-LABEL:END -->
O END
inicial seria desconsiderado porque sempre procura o START
e o END
seguinte. A action não quebraria.
No exemplo abaixo, seriam inseridas as labels Bahia
e Santa Catarina
.
<!-- AUTO-LABEL:END -->
<!-- AUTO-LABEL:START -->
Bahia
<!-- AUTO-LABEL:END -->
Minas Gerais
<!-- AUTO-LABEL:START -->
Santa Catarina
<!-- AUTO-LABEL:END -->
O item abaixo é interessante analisar como será o comportamento. Exceção é chato de prever.
❓ Dúvida: O melhor seria fazer igual o exemplo anterior, que é ignorar quando não tiver um par de START
e END
(nessa ordem), ou emitir exceção igual o exemplo abaixo?
O START
sem END
logo abaixo (tem um START
) quebraria a execução da action. Mostrar uma mensagem clara sobre o erro do uso restrição de trecho.
Exemplo 1:
<!-- AUTO-LABEL:START -->
<!-- AUTO-LABEL:START -->
Bahia
<!-- AUTO-LABEL:END -->
Minas Gerais
<!-- AUTO-LABEL:START -->
Santa Catarina
<!-- AUTO-LABEL:END -->
Exemplo 2:
<!-- AUTO-LABEL:START -->
Bahia
<!-- AUTO-LABEL:END -->
Minas Gerais
<!-- AUTO-LABEL:START -->
Santa Catarina
<!-- AUTO-LABEL:END -->
<!-- AUTO-LABEL:START -->
enhancement
Is there a way to auto remove labels similar to how its automatically added?
for eg: when someone from the community responds to an user issue and adds "awaiting-user-input" label. Once the user/author responds w/ some input requested, the "awaiting-user-input" label should be automatically removed.
Basically folks who are looking to help with issues, need a way to filter out issues that are waiting in the queue to be attended. Those that are awaiting user/author inputs can be filtered out if we have this auto removal of labels.
Since yesterday the plugin is raising an error when building:
Step 3/4 : RUN npm install --production
---> Running in 3973b404579b
npm WARN deprecated [email protected]: some dependency vulnerabilities fixed, support for node < 10 dropped, and newer ECMAScript syntax/features added
npm WARN deprecated [email protected]: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
npm WARN deprecated [email protected]: use String.prototype.padStart()
npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated [email protected]: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
npm WARN deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated [email protected]: this library is no longer supported
npm WARN deprecated [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm ERR! Unexpected end of JSON input while parsing near ''
npm ERR! A complete log of this run can be found in:
Line 20 in 2fc6ce2
Could you consider adding support for parsing the issue title too.
I think it is an easy fix, just append const isssueTitleLabel: []string = getIssueLabels(issue.title, repoLabels)
and concatenate both to get it.
Do you think it is worth doing that or is it not useful? I say this because title tags like feat
bug
are used a lot in issues of big projects and it would be worth adding it I think.
For the moment bun test --coverage doesn't generate a report in html format, making it not possible to use codecov
Waiting for oven-sh/bun#4015 to be completed
Implement test for all the files used at main branch
Run action failed:
*** running renato66/auto-label version 2.1.2 ***
Getting repository labels...
Repository labels found: 7
Reading labels in issue...
{ error: 'bug',
'need fix': 'bug',
'not working': 'bug',
upgrade: 'enhancement',
help: 'question' }
Error: Cannot read property 'replace' of null
(node:1) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'replace' of null
at Object.getIssueLabels (/lib/functions.js:66:39)
at /lib/main.js:37:45
at Generator.next (<anonymous>)
at fulfilled (/lib/main.js:5:58)
at process._tickCallback (internal/process/next_tick.js:68:7)
(node:1) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:1) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.```
enhancement
for example in my case :
be able to write "[Minor] Problem on the login page"
adding the Minor Label and removing it from the title
Got the following error in my build:
(node:1) UnhandledPromiseRejectionWarning: HttpError: Not Found
at response.text.then.message (/node_modules/@octokit/request/dist-node/index.js:66:23)
at process._tickCallback (internal/process/next_tick.js:68:7)
(node:1) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.