-
Notifications
You must be signed in to change notification settings - Fork 0
Teastasd #78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: release
Are you sure you want to change the base?
Teastasd #78
Changes from all commits
f5b3c04
a8feb16
899937d
5d7330f
b00ddcd
01e1eba
6c8f822
3f584f2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,12 @@ | ||||||||
| name: Greetings | ||||||||
|
|
||||||||
| on: [push] | ||||||||
|
|
||||||||
| jobs: | ||||||||
| greeting: | ||||||||
| runs-on: ubuntu-latest | ||||||||
| steps: | ||||||||
| - uses: actions/first-interaction@v1 | ||||||||
| with: | ||||||||
| repo-token: ${{ secrets.GITHUB_TOKEN }} | ||||||||
| message: "Test" | ||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🎯 Functional Correctness | 🟠 Major | ⚡ Quick win 🧩 Analysis chain🏁 Script executed: sed -n '1,120p' .github/workflows/greetings.ymlRepository: xinyusun1997/githubTesting Length of output: 374 🌐 Web query:
💡 Result: The actions/first-interaction GitHub Action uses specific input names, and using deprecated or incorrect formats (such as hyphens instead of underscores) frequently leads to workflow failures [1][2]. The currently supported inputs for the actions/first-interaction action are [1][2]: repo_token: The GitHub token used to authenticate and post comments (typically ${{ secrets.GITHUB_TOKEN }}) [1][2]. issue_message: The message to display when a first-time contributor opens an issue [3][4][1][2]. pr_message: The message to display when a first-time contributor opens a pull request [3][4][1][2]. Note on legacy or incorrect usage: - Hyphenated inputs like repo-token, issue-message, and pr-message are invalid and will cause the action to fail or issue "Unexpected input" warnings [1][2]. - While older documentation or legacy starter workflows may have erroneously shown hyphenated versions [5], current versions require the underscore format [1][2]. - The action logic dynamically determines which message is required based on the triggering event (issue vs. PR), though both are often included in the configuration [6][2]. Citations:
🌐 Web query:
💡 Result: The parameters Citations:
🏁 Script executed: python3 - <<'PY'
import urllib.request
urls = [
"https://raw.githubusercontent.com/actions/first-interaction/v1/action.yml",
"https://raw.githubusercontent.com/actions/first-interaction/v1/README.md",
]
for url in urls:
print(f"== {url} ==")
try:
with urllib.request.urlopen(url, timeout=20) as r:
data = r.read().decode("utf-8", "replace")
print(data[:4000])
except Exception as e:
print(f"ERROR: {e}")
PYRepository: xinyusun1997/githubTesting Length of output: 605 🏁 Script executed: python3 - <<'PY'
import urllib.request, ssl
ctx = ssl._create_unverified_context()
urls = [
"https://raw.githubusercontent.com/actions/first-interaction/v1/action.yml",
"https://raw.githubusercontent.com/actions/first-interaction/v1/README.md",
]
for url in urls:
print(f"== {url} ==")
try:
with urllib.request.urlopen(url, context=ctx, timeout=20) as r:
data = r.read().decode("utf-8", "replace")
print(data[:5000])
except Exception as e:
print(f"ERROR: {e}")
PYRepository: xinyusun1997/githubTesting Length of output: 1399 Use the supported input names for Proposed fix- message: "Test"
+ issue-message: "Test"
+ pr-message: "Test"📝 Committable suggestion
Suggested change
🧰 Tools🪛 actionlint (1.7.12)[error] 12-12: input "message" is not defined in action "actions/first-interaction@v1". available inputs are "issue-message", "pr-message", "repo-token" (action) 🤖 Prompt for AI AgentsSource: Linters/SAST tools |
||||||||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -29,4 +29,4 @@ jobs: | |||||
| steps: | ||||||
| # Runs a single command using the runners shell | ||||||
| - name: Send greeting | ||||||
| run: echo "Hello ${{ inputs.name }}" | ||||||
| rn: echo "Hello ${{ inputs.name }}" | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🎯 Functional Correctness | 🔴 Critical | ⚡ Quick win Restore the
- rn: echo "Hello ${{ inputs.name }}"
+ run: echo "Hello ${{ inputs.name }}"📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,3 +3,6 @@ test3 | |
| test | ||
| test4 | ||
| test5 | ||
| test7 | ||
| asd | ||
| adasd | ||
|
Comment on lines
+6
to
+8
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Comment on lines
+6
to
+8
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win Replace placeholder text with meaningful documentation.
🤖 Prompt for AI Agents |
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎯 Functional Correctness | 🟠 Major | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
Repository: xinyusun1997/githubTesting
Length of output: 705
🏁 Script executed:
Repository: xinyusun1997/githubTesting
Length of output: 206
🏁 Script executed:
Repository: xinyusun1997/githubTesting
Length of output: 710
🌐 Web query:
actions/first-interaction v1 action.yml message input on issue opened pull_request opened💡 Result:
The
actions/first-interactionaction (v1) uses specific input parameters to define the messages posted when a first-time contributor opens an issue or a pull request [1][2]. Inv1of the action, the primary inputs for these messages are [1][2]: *issue-message: The message to be displayed on the user's first issue [1][2]. *pr-message: The message to be displayed on the user's first pull request [1][2]. Additionally, thev1implementation typically requires a repository token to interact with the GitHub API [1][2]: *repo-token: The token used to post the comment, usually provided as${{ secrets.GITHUB_TOKEN }}[1][2]. To trigger this action, your workflow file should listen foropenedevents on both issues and pull requests [1]. Example configuration for a workflow usingv1is provided below [1]:yaml on: pull_request: types: [opened] issues: types: [opened] jobs: greeting: runs-on: ubuntu-latest permissions: issues: write pull-requests: write steps: - uses: actions/first-interaction@v1 with: repo-token: ${{ secrets.GITHUB_TOKEN }} issue-message: "Message that will be displayed on users' first issue" pr-message: "Message that will be displayed on users' first pull request"Note that in newer versions of the action (such asv3), the input names were updated to use underscores (issue_messageandpr_message) rather than hyphens [3][4]. If you are working with an olderv1configuration, you should continue using the hyphenated inputs as shown above [1][2].Citations:
🌐 Web query:
site:github.com actions/first-interaction action.yml issue-message pr-message repo-token v1💡 Result:
The actions/first-interaction GitHub Action is a tool used to automatically post a welcoming message when a first-time contributor opens their first issue or pull request in a repository [1][2]. Regarding your specific parameters: repo-token: In earlier versions (e.g., v1), this was a required input used to provide the action with the permissions necessary to comment on issues and PRs [3][4]. In newer versions (e.g., v3), this parameter is generally no longer required, as the action can often use the default GITHUB_TOKEN automatically provided by the workflow, provided that appropriate permissions are defined in the workflow YAML [1][5]. issue-message and pr-message: These are the primary inputs for the action. They allow you to define the text (or Markdown) that will be posted as a comment when a user's first issue or pull request is opened, respectively [1][2]. Usage note: Ensure your workflow file defines the necessary permissions to allow the action to write comments [1][2]: permissions: issues: write pull-requests: write Current versions of the action (e.g., v3+) do not require the explicit repo-token input that was common in v1 [1][3]. If you are working with an older workflow configuration, you may safely remove the repo-token input when upgrading to modern versions of this action [1].
Citations:
Trigger this workflow on issue and pull-request opens.
pushnever covers the events this action handles, so the greeting job won’t run for first-time issues or PRs. Also replacemessagewith the action’s expectedissue-message/pr-messageinputs.🤖 Prompt for AI Agents