actions / first-interaction Goto Github PK
View Code? Open in Web Editor NEWAn action for filtering pull requests and issues from first-time contributors
License: MIT License
An action for filtering pull requests and issues from first-time contributors
License: MIT License
Thank you πββ for wanting to create an issue in this repository. Before you do, please ensure you are filing the issue in the right place. Issues should only be opened on if the issue relates to code in this repository.
If your issue is relevant to this repository, please delete this text and continue to create this issue. Thank you in advance.
Thank you πββ for wanting to create an issue in this repository. Before you do, please ensure you are filing the issue in the right place. Issues should only be opened on if the issue relates to code in this repository.
If your issue is relevant to this repository, please delete this text and continue to create this issue. Thank you in advance.
Hello,
Little enhance :
The condition if no message set should be place before the condition if its not their first contribution
That would avoid some useless api calls.
Best regards,
LΓ©ni
Thank you πββ for wanting to create an issue in this repository. Before you do, please ensure you are filing the issue in the right place. Issues should only be opened on if the issue relates to code in this repository.
If your issue is relevant to this repository, please delete this text and continue to create this issue. Thank you in advance.
Thank you πββ for wanting to create an issue in this repository. Before you do, please ensure you are filing the issue in the right place. Issues should only be opened on if the issue relates to code in this repository.
If your issue is relevant to this repository, please delete this text and continue to create this issue. Thank you in advance.
When the action is always running in my repository, I always get the following warnings:
[@octokit/rest] `const Octokit = require("@octokit/rest")` is deprecated. Use `const { Octokit } = require("@octokit/rest")` instead
This should be fixable by updating the dependencies in the package.json
file. Is there a reason why the versions are not explicitly there, but direct files are given? Would it make sense to add a dependabot file to get security updates etc.?
The README.md, in the Usage section, directs to action.yaml
That action.yaml
looks like this:
Which clearly does not work, as it has no definition for the on
clause.
Then the correct way is to copy the steps
yaml section in the Usage section.
But it's very confusing as to why people are directed to action.yaml
.
Or there should be a sample action.yaml
that actually works.
Thank you πββ for wanting to create an issue in this repository. Before you do, please ensure you are filing the issue in the right place. Issues should only be opened on if the issue relates to code in this repository.
If your issue is relevant to this repository, please delete this text and continue to create this issue. Thank you in advance.
School medicine school
Thank you πββ for wanting to create an issue in this repository. Before you do, please ensure you are filing the issue in the right place. Issues should only be opened on if the issue relates to code in this repository.
If your issue is relevant to this repository, please delete this text and continue to create this issue. Thank you in advance.
Here is my workflow.
name: Greetings
on: [pull_request, issues]
jobs:
greeting:
name: Greet new participant
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- uses: actions/first-interaction@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
issue-message: '##Welcome!\n\nThank you for finding time to write an issue and make this extension better. I`ll appreciate if you find some time to [rate this extension here](https://marketplace.visualstudio.com/items?itemName=Serhioromano.vscode-gitflow&ssr=false#review-details).\n\nI`ll get back to your ASAP.'
pr-message: '##Welcome!\n\nThank you very match for your contribution. I very appreciate it. Please find some time to [rate this extension here](https://marketplace.visualstudio.com/items?itemName=Serhioromano.vscode-gitflow&ssr=false#review-details).\n\nI`ll get to this PR ASAP.'
I know greeting text is not perfect, but it does not apply markdowd. Please look this issue, this one contain what is produced by action.
Serhioromano/vscode-gitflow#1
https://github.com/gautamkrishnar/socli/pull/167/files in this build greetings.yml is failing. Cant find the cause of it.
Thank you πββ for wanting to create an issue in this repository. Before you do, please ensure you are filing the issue in the right place. Issues should only be opened on if the issue relates to code in this repository.
If your issue is relevant to this repository, please delete this text and continue to create this issue. Thank you in advance.
Thank you πββ for wanting to create an issue in this repository. Before you do, please ensure you are filing the issue in the right place. Issues should only be opened on if the issue relates to code in this repository.
If your issue is relevant to this repository, please delete this text and continue to create this issue. Thank you in advance.
Thank you πββ for wanting to create an issue in this repository. Before you do, please ensure you are filing the issue in the right place. Issues should only be opened on if the issue relates to code in this repository.
If your issue is relevant to this repository, please delete this text and continue to create this issue. Thank you in advance.
The license check fails.
This is due to versions not being locked as already mentioned in #3
Thank you πββ for wanting to create an issue in this repository. Before you do, please ensure you are filing the issue in the right place. Issues should only be opened on if the issue relates to code in this repository.
If your issue is relevant to this repository, please delete this text and continue to create this issue. Thank you in advance.
It would be wonderful if the welcome message could be more personalized e.g. in particular with the user's username. This could be done by allowing the messages to be template strings and have a variable that will be replaced with the user's username. Maybe some other variables could be useful as well but that's the main one I had in mind. Will supply a PR if welcome.
Thank you πββ for wanting to create an issue in this repository. Before you do, please ensure you are filing the issue in the right place. Issues should only be opened on if the issue relates to code in this repository.
If your issue is relevant to this repository, please delete this text and continue to create this issue. Thank you in advance.
Thank you πββ for wanting to create an issue in this repository. Before you do, please ensure you are filing the issue in the right place. Issues should only be opened on if the issue relates to code in this repository.
If your issue is relevant to this repository, please delete this text and continue to create this issue. Thank you in advance.
I added greetings to my repository, but I am getting the following error on pull requests submitted by new contributors.
Error: Resource not accessible by Integration
Here is my greetings.yml
file
name: Greetings
on: [pull_request]
jobs:
greeting:
runs-on: ubuntu-latest
steps:
- uses: actions/first-interaction@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
issue-message: ''
pr-message: "Hi there :wave: Congratulations on sending your first Pull request here :sparkles:\n I hope that you have followed the contribution guidlines"
I tried searching for a solution to fix this but couldn't find one. So I am not sure if this is caused by something from my end or if this is some kind of a bug...
Hey! Our team has been enjoying this action for a long time now, but today we started getting this error:
internal/modules/cjs/loader.js:1216
throw new ERR_REQUIRE_ESM(filename, parentPath, packageJsonPath);
^
Error [ERR_REQUIRE_ESM]: Must use import to load ES Module: /node_modules/@octokit/graphql/index.js
require() of ES modules is not supported.
require() of /node_modules/@octokit/graphql/index.js from /node_modules/@actions/github/lib/github.js is an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which defines all .js files in that package scope as ES modules.
Instead rename index.js to end in .cjs, change the requiring code to use import(), or remove "type": "module" from /node_modules/@octokit/graphql/package.json.
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1216:13)
at Module.load (internal/modules/cjs/loader.js:1049:32)
at Function.Module._load (internal/modules/cjs/loader.js:937:14)
at Module.require (internal/modules/cjs/loader.js:1089:19)
at require (internal/modules/cjs/helpers.js:73:18)
at Object.<anonymous> (/node_modules/@actions/github/lib/github.js:14:19)
at Module._compile (internal/modules/cjs/loader.js:1200:[30](https://github.com/creditornot/ops-tools/actions/runs/3150609247/jobs/5123593663#step:3:31))
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1220:10)
at Module.load (internal/modules/cjs/loader.js:1049:[32](https://github.com/creditornot/ops-tools/actions/runs/3150609247/jobs/5123593663#step:3:33))
at Function.Module._load (internal/modules/cjs/loader.js:9[37](https://github.com/creditornot/ops-tools/actions/runs/3150609247/jobs/5123593663#step:3:38):14) {
code: 'ERR_REQUIRE_ESM'
}
I was going to to use this action. I have MacOS runners. When trying to use this action, I get the error
Error: Container action is only supported on Linux
This is due to the action.yml
using docker to run versus being setup to run on node.
Thank you πββ for wanting to create an issue in this repository. Before you do, please ensure you are filing the issue in the right place. Issues should only be opened on if the issue relates to code in this repository.
If your issue is relevant to this repository, please delete this text and continue to create this issue. Thank you in advance.
Currently there is no package-lock.json
file.
This file is used to lock versions of dependencies.
This results in a WARN message stating you should add it.
---> c008d4cd2138
Step 3/4 : RUN npm install --production
---> Running in 9cde6380b3f4
npm WARN deprecated [email protected]: use String.prototype.padStart()
npm notice created a lockfile as package-lock.json. You should commit this file.
added 54 packages from 33 contributors in 18.248s
Removing intermediate container 9cde6380b3f4
---> aeb402214f61
Step 4/4 : ENTRYPOINT ["node", "/lib/main.js"]
---> Running in f0802f57eb32
Thank you πββ for wanting to create an issue in this repository. Before you do, please ensure you are filing the issue in the right place. Issues should only be opened on if the issue relates to code in this repository.
If your issue is relevant to this repository, please delete this text and continue to create this issue. Thank you in advance.
Thank you πββ for wanting to create an issue in this repository. Before you do, please ensure you are filing the issue in the right place. Issues should only be opened on if the issue relates to code in this repository.
If your issue is relevant to this repository, please delete this text and continue to create this issue. Thank you in advance.
Hello π
After enabling the Greetings Github Action, I am wanting to immediately remove it as the spam that comes in Notifications is way too much. A notification should not be sent UNLESS a new greeting was sent. Right now I just got 8 notifications for new issues/pr created but none of them were from a first time contributor.
If this action does not complete, please disable the notification being sent for this action. I love the idea of this action and would love to use it, but the notification spam is way too much and hurts productivity.
I committed a greeting action via the main Actions homepage (one of the templates) and customized the messages.
name: Greetings
on: [pull_request, issues]
jobs:
greeting:
runs-on: ubuntu-latest
steps:
- uses: actions/first-interaction@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
issue-message: 'Hey, thanks for opening your first issue! π Be sure to check out the contribution guidelines if you haven't already. Thanks!'
pr-message: 'Hey, congratulations on your first pull request for HACC! π'
On the Actions tab for a commit, a few things are off:
What am I doing wrong, or is this a bug with Actions since it's still in beta?
I wish first-interaction
action could add configured labels to Issues or PRs
Thank you πββ for wanting to create an issue in this repository. Before you do, please ensure you are filing the issue in the right place. Issues should only be opened on if the issue relates to code in this repository.
If your issue is relevant to this repository, please delete this text and continue to create this issue. Thank you in advance.
Thank you πββ for wanting to create an issue in this repository. Before you do, please ensure you are filing the issue in the right place. Issues should only be opened on if the issue relates to code in this repository.
If your issue is relevant to this repository, please delete this text and continue to create this issue. Thank you in advance.
Build container for action use: '/home/runner/work/_actions/actions/first-interaction/v1/Dockerfile'.
/usr/bin/docker build -t 1e5c35:7bc77f1a00b242128d8728a402cdae9c -f "/home/runner/work/_actions/actions/first-interaction/v1/Dockerfile" "/home/runner/work/_actions/actions/first-interaction/v1"
Sending build context to Docker daemon 180.2kB
Step 1/4 : FROM node:slim
slim: Pulling from library/node
babf97a3f00a: Pulling fs layer
d81eb1809d95: Pulling fs layer
dbaab951a9fa: Pulling fs layer
cb915c1b28b9: Pulling fs layer
7c72cd70a544: Pulling fs layer
cb915c1b28b9: Waiting
7c72cd70a544: Waiting
d81eb1809d95: Verifying Checksum
d81eb1809d95: Download complete
cb915c1b28b9: Verifying Checksum
cb915c1b28b9: Download complete
babf97a3f00a: Verifying Checksum
babf97a3f00a: Download complete
dbaab951a9fa: Verifying Checksum
dbaab951a9fa: Download complete
7c72cd70a544: Verifying Checksum
7c72cd70a544: Download complete
babf97a3f00a: Pull complete
d81eb1809d95: Pull complete
dbaab951a9fa: Pull complete
cb915c1b28b9: Pull complete
7c72cd70a544: Pull complete
Digest: sha256:bf39db19ac53a635030d5db569cab912322147139fbf929c252359f3c50c4207
Status: Downloaded newer image for node:slim
---> 922b09b21278
Step 2/4 : COPY . .
---> e7ffa4544a8c
Step 3/4 : RUN npm install --production
---> Running in 5f0039d32d9c
npm notice
npm notice New patch version of npm available! 7.0.3 -> 7.0.5
npm notice Changelog: https://github.com/npm/cli/releases/tag/v7.0.5
npm notice Run npm install -g [email protected] to update!
npm notice
npm ERR! Maximum call stack size exceeded
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2020-10-24T12_38_52_536Z-debug.log
The command '/bin/sh -c npm install --production' returned a non-zero code: 1
Warning: Docker build failed with exit code 1, back off 3.935 seconds before retry.
/usr/bin/docker build -t 1e5c35:7bc77f1a00b242128d8728a402cdae9c -f "/home/runner/work/_actions/actions/first-interaction/v1/Dockerfile" "/home/runner/work/_actions/actions/first-interaction/v1"
Sending build context to Docker daemon 180.2kB
Step 1/4 : FROM node:slim
---> 922b09b21278
Step 2/4 : COPY . .
---> Using cache
---> e7ffa4544a8c
Step 3/4 : RUN npm install --production
---> Running in fb5c4560f188
npm notice
npm notice New patch version of npm available! 7.0.3 -> 7.0.5
npm notice Changelog: https://github.com/npm/cli/releases/tag/v7.0.5
npm notice Run npm install -g [email protected] to update!
npm notice
npm ERR! Maximum call stack size exceeded
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2020-10-24T12_38_57_936Z-debug.log
The command '/bin/sh -c npm install --production' returned a non-zero code: 1
Warning: Docker build failed with exit code 1, back off 6.7 seconds before retry.
/usr/bin/docker build -t 1e5c35:7bc77f1a00b242128d8728a402cdae9c -f "/home/runner/work/_actions/actions/first-interaction/v1/Dockerfile" "/home/runner/work/_actions/actions/first-interaction/v1"
Sending build context to Docker daemon 180.2kB
Step 1/4 : FROM node:slim
---> 922b09b21278
Step 2/4 : COPY . .
---> Using cache
---> e7ffa4544a8c
Step 3/4 : RUN npm install --production
---> Running in 57be650f49ce
npm notice
npm notice New patch version of npm available! 7.0.3 -> 7.0.5
npm notice Changelog: https://github.com/npm/cli/releases/tag/v7.0.5
npm notice Run npm install -g [email protected] to update!
npm notice
npm ERR! Maximum call stack size exceeded
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2020-10-24T12_39_06_115Z-debug.log
The command '/bin/sh -c npm install --production' returned a non-zero code: 1
Error: Docker build failed with exit code 1
Thank you πββ for wanting to create an issue in this repository. Before you do, please ensure you are filing the issue in the right place. Issues should only be opened on if the issue relates to code in this repository.
If your issue is relevant to this repository, please delete this text and continue to create this issue. Thank you in advance.
Hi Team,
Two of our PR using this job as a status check has failed due to which we are unable to merge. The error we are seeing seems be code related. I am attaching the error here. Kindly assist in resolving this issue. Thanks!
error.log
Thank you πββ for wanting to create an issue in this repository. Before you do, please ensure you are filing the issue in the right place. Issues should only be opened on if the issue relates to code in this repository.
If your issue is relevant to this repository, please delete this text and continue to create this issue. Thank you in advance.
Thank you πββ for wanting to create an issue in this repository. Before you do, please ensure you are filing the issue in the right place. Issues should only be opened on if the issue relates to code in this repository.
If your issue is relevant to this repository, please delete this text and continue to create this issue. Thank you in advance.
Problem summary:
It is often necessary to maintain a CONTRIBUTORS.md
file for many open source projects.
Often when a first PR or ISSUE is created, someone on the team will have to manually add them to the projects' CONTRIBUTORS.md
file.
Requested method:
This should be possible to automate as part of the actions/first-interaction
.
Internally, perhaps something like this could work (brainstorming):
echo ${{ GITHUB_ACTOR }} >> CONTRIBUTORS.md
where some argument option within the first-interaction could be passed to allow appending to the CONTRIBUTORS.md
file or not.
<snip>
with:
repo-token: $${{ secrets.GITHUB_TOKEN }}
issue-message: "Thank you!"
pr-message: "Your awesome! Thanks for this PR!"
add-contributor: CONTRIBUTORS.md
Alternative method:
Another separate action could be developed that does this in another step, perhaps it could be called actions/add-contributor@1
?
Thank you πββ for wanting to create an issue in this repository. Before you do, please ensure you are filing the issue in the right place. Issues should only be opened on if the issue relates to code in this repository.
If your issue is relevant to this repository, please delete this text and continue to create this issue. Thank you in advance.
π This issue is to track the move over to using main
as the default branch for this repo. Weβd love your team's help in completing this transition.
Do not remove your old default branch, customers are going to be using it. We will be sending messages out about these changes, but if you want to message in your repository, that's fine as well.
main
branch.main
.We are aiming to complete this work by July 17th.
π This issue is to track the move over to using main
as the default branch for this repo. Weβd love your team's help in completing this transition.
Do not remove your old default branch, customers are going to be using it. We will be sending messages out about these changes, but if you want to message in your repository, that's fine as well.
main
branch.main
.We are aiming to complete this work by August 28th.
Thank you πββ for wanting to create an issue in this repository. Before you do, please ensure you are filing the issue in the right place. Issues should only be opened on if the issue relates to code in this repository.
If your issue is relevant to this repository, please delete this text and continue to create this issue. Thank you in advance.
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.