Skip to content

stale-issue/pr-message is required even if skip-stale-issue/pr-message is set to true #405

Description

@neverendingqs

stale-issue-message / stale-pr-message should probably not be required if skip-stale-issue-message / skip-stale-pr-message is set to true, since that string never gets used.

Workaround: set skip-stale-issue-message / skip-stale-pr-message to a non-empty string.

I think this happens because the check for a commit message (

const shouldMarkAsStale: boolean = shouldMarkWhenStale(daysBeforeStale);
if (!staleMessage && shouldMarkAsStale) {
issueLogger.info(`Skipping $$type due to empty stale message`);
continue;
}
) comes before we check if an issue is stale (
if (!issue.isStale && shouldBeStale && shouldMarkAsStale) {
issueLogger.info(
`Marking $$type stale because it was last updated on ${issue.updated_at} and it does not have a stale label`
);
await this._markStale(issue, staleMessage, staleLabel, skipMessage);
).

Example workflow: https://github.com/neverendingqs/serverless-dotenv-plugin/blob/8c02adbc653a90d681d5ededbb40300677cb8eac/.github/workflows/issues-cron.yml

Example run: https://github.com/neverendingqs/serverless-dotenv-plugin/runs/2209947040?check_suite_focus=true#step:2:35

Activity

  1. changed the title [-]`stale-issue/pr-message` required even if `skip-stale-issue/pr-message` is set[/-] [+]`stale-issue/pr-message` is required even if `skip-stale-issue/pr-message` is set[/+] on Mar 27, 2021
  2. changed the title [-]`stale-issue/pr-message` is required even if `skip-stale-issue/pr-message` is set[/-] [+]`stale-issue/pr-message` is required even if `skip-stale-issue/pr-message` is set to `true`[/+] on Mar 27, 2021
  3. github-actions commented on Apr 27, 2021

    @github-actions
    Contributor

    This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days

  4. C0ZEN commented on Apr 27, 2021

    @C0ZEN
    Contributor

    up

  5. C0ZEN commented on May 23, 2021

    @C0ZEN
    Contributor

    Related to #455

  6. added 2 commits that reference this issue on May 23, 2021
    a324e60
    73417c5
  7. added a commit that references this issue on May 25, 2021
    6ec637d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions