question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Random syntax error when triggering the labeler with on.pull_request_target

See original GitHub issue

🐞 Problem

When using the on.pull_request_target option with types: [opened, reopened] arguments, GitHub actions complained about the syntax of the YML file, see the following log:

However, if replaced by the on.pull_request option, the syntax error is no longer reported. See the log:

The associated PR can be found in: https://github.com/pyansys/pymapdl/pull/1085

Any insights on which is the reason behind this behavior would be super useful.

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
MaksimZhukovcommented, Dec 13, 2022

Thank you! In this case, I am closing the issue. Please contact us if you have any questions.

1reaction
MaksimZhukovcommented, Oct 28, 2022

Hello @jorgepiloto! I’ve forked the pymapdl repository and replaced the pull_request event with the pull_request_target event in the label.yml file like this:

pull_request_target:
    types: [opened, reopened]

Everything works without failures. It was probably a syntax error in your workflow.

Read more comments on GitHub >

github_iconTop Results From Across the Web

8/19 my code seems to be fine, keep getting syntax error
8/19 my code seems to be fine, keep getting syntax error. from random import randint. random_number = randint(1, 10). guesses_left = 3 guess...
Read more >
Random SyntaxError result when using Shift-Return to run code
Issue Type: Bug About 20% of the time, when running the code below with 'Shift-Return', I receive a 'SyntaxError: invalid syntax' outcome.
Read more >
getting a invalid syntaxerror for random.randint in python
I am new to python when I try this randomNumber = random.randint(1,3). I get a "invalid syntax" error. not sure what I am...
Read more >
CS 111: Python Errors
The most common type of error, a syntax error occurs when the interpreter is reading the Python file to determine if it is...
Read more >
SyntaxError invalid syntax
SyntaxError : invalid syntax Syntax errors are the most common type of error, because there are so many things you can do wrong!...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found