Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Tweak command parsing #6269

Merged
merged 1 commit into from
Feb 21, 2024

Conversation

joeyparrish
Copy link
Member

  • Fix wrong index variable in loop ("i" vs "INDEX") that prevented detection of commands at arbitrary places in a comment.
  • Fix parsing of comments with newlines.
  • Normalize commands to lowercase before checking them.
  • Enhance debugging of command parsing.
  • Allow the user to say "please" because it just feels nicer to me, even when I'm talking to a robot.

 - Fix wrong index variable in loop ("i" vs "INDEX") that prevented
   detection of commands at arbitrary places in a comment.
 - Fix parsing of comments with newlines.
 - Normalize commands to lowercase before checking them.
 - Enhance debugging of command parsing.
 - Allow the user to say "please" because it just feels nicer to me,
   even when I'm talking to a robot.
@joeyparrish joeyparrish marked this pull request as ready for review February 21, 2024 19:36
@shaka-bot
Copy link
Collaborator

Incremental code coverage: No instrumented code was changed.

SHAKA_BOT_COMMAND=$(echo "${TOKENS[INDEX+1]}" | tolower)

# Unless it's please, then it's the word after that.
if [[ "$SHAKA_BOT_COMMAND" == "please" ]]; then
Copy link
Collaborator

Choose a reason for hiding this comment

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

An important step towards adding INTERCAL support.

@joeyparrish joeyparrish merged commit 0692e23 into shaka-project:main Feb 21, 2024
18 of 24 checks passed
joeyparrish added a commit that referenced this pull request Feb 26, 2024
- Fix wrong index variable in loop ("i" vs "INDEX") that prevented
detection of commands at arbitrary places in a comment.
 - Fix parsing of comments with newlines.
 - Normalize commands to lowercase before checking them.
 - Enhance debugging of command parsing.
- Allow the user to say "please" because it just feels nicer to me, even
when I'm talking to a robot.
joeyparrish added a commit that referenced this pull request Feb 26, 2024
- Fix wrong index variable in loop ("i" vs "INDEX") that prevented
detection of commands at arbitrary places in a comment.
 - Fix parsing of comments with newlines.
 - Normalize commands to lowercase before checking them.
 - Enhance debugging of command parsing.
- Allow the user to say "please" because it just feels nicer to me, even
when I'm talking to a robot.
joeyparrish added a commit that referenced this pull request Feb 27, 2024
- Fix wrong index variable in loop ("i" vs "INDEX") that prevented
detection of commands at arbitrary places in a comment.
 - Fix parsing of comments with newlines.
 - Normalize commands to lowercase before checking them.
 - Enhance debugging of command parsing.
- Allow the user to say "please" because it just feels nicer to me, even
when I'm talking to a robot.
@shaka-bot shaka-bot added the status: archived Archived and locked; will not be updated label Apr 21, 2024
@shaka-project shaka-project locked as resolved and limited conversation to collaborators Apr 21, 2024
@joeyparrish joeyparrish deleted the tweak-command-parsing branch May 10, 2024 04:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status: archived Archived and locked; will not be updated
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants