Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/config/check-pr-issue-skip-usernames.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
palisadoes
noman2002
5 changes: 4 additions & 1 deletion .github/workflows/pull-request-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,11 @@ jobs:
});

// Filter reviews that have a user login containing "coderabbit" (case-insensitive)
// and exclude COMMENTED states.
const codeRabbitReviews = reviews.filter(review =>
review.user.login.toLowerCase().includes('coderabbit') || review.user.login.toLowerCase().includes('coderabbitai')
(review.user.login.toLowerCase().includes('coderabbit') ||
review.user.login.toLowerCase().includes('coderabbitai')) &&
review.state !== 'COMMENTED'
);

// Fail if no CodeRabbit reviews are found
Expand Down
58 changes: 58 additions & 0 deletions .github/workflows/pull-request-target.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
##############################################################################
##############################################################################
#
# NOTE!
#
# Please read the README.md file in this directory that defines what should
# be placed in this file
#
##############################################################################
##############################################################################

name: PR Target Workflow
on:
pull_request_target:

# Required for arkid15r/check-pr-issue-action
permissions:
contents: read
issues: read
pull-requests: write

jobs:
PR-Greeting:
name: Pull Request Target
runs-on: ubuntu-latest
steps:
- name: Add the PR Review Policy
uses: thollander/actions-comment-pull-request@v3
with:
comment-tag: pr_review_policy
message: |
## Our Pull Request Approval Process

This PR will be reviewed according to the [Palisadoes Contributing Guidelines](https://developer.palisadoes.org/docs/contributor-guide/contributing)

Thanks for contributing!

- name: Greeting Message to User
uses: actions/first-interaction@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
pr_message: 'Congratulations on making your first PR!'
Comment on lines +38 to +41

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🔴 Critical

🧩 Analysis chain

🌐 Web query:

actions/first-interaction@v3 input parameters documentation

💡 Result:

Here are the input parameters for actions/first-interaction@v3 (First Contribution action):

  • token — GitHub token for API access (default: ${{ github.token }}). [1]
  • issue-opened-msg — Message to post on a first-time issue. [1]
  • pr-opened-msg — Message to post on a first-time PR. [1]
  • issue-completed-msg — Message to post when a first-time issue is closed as completed. [1]
  • issue-not-planned-msg — Message to post when a first-time issue is closed as not planned. [1]
  • pr-merged-msg — Message to post when a first-time PR is merged. [1]
  • pr-closed-msg — Message to post when a first-time PR is closed and not merged. [1]
  • labels — Comma-separated list of labels to add for any first contribution. [1]
  • issue-labels — Labels for first-time issues (overrides labels). [1]
  • pr-labels — Labels for first-time PRs (overrides labels). [1]
  • contribution-mode — Mode for greeting behavior (e.g., once to greet on absolute first interaction). [1]
  • fail-on-error — If true, fail the workflow step when an error occurs (default: false). [1]
  • reactions — Comma-separated list of reactions to add when a contribution is opened (valid: +1, -1, laugh, confused, heart, hooray, rocket, eyes). [1]
  • issue-reactions — Reactions applied only to issues (same valid options). [1]
  • pr-reactions — Reactions applied only to PRs (same valid options). [1]

Note: labels/reactions are only applied on opened contributions (not on closed events). [1]

Source: action README / inputs documentation. [1]

References
[1] First Contribution (actions/first-interaction) inputs documentation — GitHub Marketplace / README.


Correct the action input parameters: use token instead of repo-token and pr-opened-msg instead of pr_message.

The repo-token parameter is invalid for actions/first-interaction@v3. According to the official documentation, the correct parameter is token. Additionally, the code uses pr_message which should be pr-opened-msg. The action will not recognize these incorrect parameter names.

Update lines 38-42 to:

      - name: Greeting Message to User
        uses: actions/first-interaction@v3
        with:
          token: ${{ secrets.GITHUB_TOKEN }}
          pr-opened-msg: 'Congratulations on making your first PR!'
🧰 Tools
🪛 actionlint (1.7.9)

41-41: input "repo-token" is not defined in action "actions/first-interaction@v3". available inputs are "issue_message", "pr_message", "repo_token"

(action)

🤖 Prompt for AI Agents
.github/workflows/pull-request-target.yml around lines 38 to 42: the action
inputs use incorrect parameter names; replace the invalid repo-token with token
and pr_message with pr-opened-msg so the actions/first-interaction@v3 step
recognizes them — update the with: block to use token: ${{ secrets.GITHUB_TOKEN
}} and pr-opened-msg: 'Congratulations on making your first PR!' instead of the
current keys.


# Check-PR-Issue:
# name: Check PR Issue Assignment
# runs-on: ubuntu-latest
# needs: [PR-Greeting]
# steps:
# - uses: actions/checkout@v4
# - name: Check PR linked issue and assignee
# uses: arkid15r/check-pr-issue-action@f2c2ac3b8c73b5da96294af9ac3ec174098cf513
# with:
# close_pr_on_failure: 'true'
# github_token: ${{ secrets.GITHUB_TOKEN }}
# no_assignee_message: 'The linked issue must be assigned to the PR author.'
# no_issue_message: 'The PR must be linked to an issue assigned to the PR author.'
# require_assignee: 'true'
# skip_users_file_path: '.github/workflows/config/check-pr-issue-skip-usernames.txt'
Loading