Skip to content

Improve handling of Public API files when creating new projects #126

Improve handling of Public API files when creating new projects

Improve handling of Public API files when creating new projects #126

name: Remove stale label on comment
on:
issue_comment:
types: [created]
permissions:
issues: write
pull-requests: write
jobs:
debug:
runs-on: ubuntu-latest
steps:
- name: Debug
run: |
echo "Event name: ${{ github.event_name }}"
echo "Comment body: ${{ github.event.comment.body }}"
echo "Issue number: ${{ github.event.issue.number }}"
echo "Pull request number: ${{ github.event.pull_request.number }}"
remove-stale-label:
if: github.event.comment.body == '/stale-extend'
runs-on: ubuntu-latest
steps:
- name: Remove stale label from pull request
uses: "actions/github-script@v7"
with:
script: |
github.rest.issues.removeLabel({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.payload.pull_request.number,
name: 'stale'
});
if: github.event_name == 'issue_comment' && github.event.issue.pull_request
- name: Remove stale label from issue
uses: "actions/github-script@v7"
with:
script: |
github.rest.issues.removeLabel({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.payload.issue.number,
name: 'stale'
});
if: github.event_name == 'issue_comment' && !github.event.issue.pull_request