Skip to content

Conversation

@korbinib
Copy link
Collaborator

closes #1742

@korbinib korbinib requested a review from bedroesb as a code owner November 21, 2025 14:10
More similar to other scripts
korbinib and others added 3 commits November 24, 2025 10:21
Add GH_TOKEN environment variable for file check.
const template = `### Review Checklist\n\n${checklist}\n\nPlease refer to the complete [editor's checklist](https://github.com/elixir-europe/rdmkit/edit/master/pages/contribute/editors_checklist.md) for details.`;
const prNumber = context.payload.pull_request.number;
const owner = context.payload.pull_request.head.repo.owner.login; // Get code owner
const repo = context.payload.pull_request.head.repo.name;
Copy link
Member

Choose a reason for hiding this comment

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

Trying to trigger the GH action

@korbinib
Copy link
Collaborator Author

I reworked the whole action now and also tested it more.

  • Workaround for GH parsing issues of md
  • changed from review comment to general comment to avoid having to refer to specific commit
  • changed trigger from review to PR for more robustness

@korbinib korbinib requested a review from bedroesb November 26, 2025 10:03
# Get the changed files in the pull request
CHANGED_FILES=$(gh pr diff ${{ github.event.pull_request.number }} --name-only)
if echo "$CHANGED_FILES" | grep -qE '^pages/'; then
echo "is_pages_changed=TRUE" >> $GITHUB_OUTPUT
Copy link
Member

Choose a reason for hiding this comment

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

test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Adding a GH action that will present the editor checklist in each PR discussion

3 participants