Skip to content

GitHub Actions: Automate In Progress Issue Updates: Hide Old Comments #1976

@Aveline-art

Description

@Aveline-art

Dependency

Overview

As developers, we will update the GitHub action job "Add-Update-Label-to-Issues-Weekly" so that duplicate or outdated "update" comments are hidden, in order to improve the readability of the issue history.

Details

If a bot "update" comment is older than commentByDays (currently 7), it is either going to be duplicated with another "update" comment (if it is more recent than an assignee comment) or it is outdated (because a more recent assignee comment exists). In either case the old bot "update" comment should be hidden.

Action Items

  • The job "Add-Update-Label-to-Issues-Weekly" is part of the workflow schedule-fri-0700.yml and the script can be found in add-label.js. Understand the code, in particular the functionisTimelineOutdated in which each timeline event (including comments) is examined
  • Add code that hides (as "outdated") bot "update" comments older than commentByDays
  • Test using your copy of the Project Board, with your PAT, as described in Tip 6 and 7 of Hack for LA's GitHub Actions

Resources/Instructions

schedule-fri-0700.yml
add-label.js
Never done GitHub actions? Start here!
Hack for LA's GitHub Actions
Events that trigger workflows
Workflow syntax for GitHub Actions
GitHub GraphQL

Metadata

Metadata

Assignees

Labels

Complexity: LargeFeature: Board/GitHub MaintenanceProject board maintenance that we have to do repeatedlyautomationfor manual github board maintenance actions that are going to be automatedrole: back end/devOpsTasks for back-end developerssize: 2ptCan be done in 7-12 hourstime sensitiveNeeds to be worked on by a particular timeframe

Type

No type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions