Skip to content

Conversation

@peifeng-unity
Copy link
Contributor

Proposed change(s)

Require a PR to link to an internal JIRA ticket

Types of change(s)

  • Bug fix
  • New feature
  • Code refactor
  • Documentation update
  • Other: linter

Checklist

  • Ensured this PR is up-to-date with the dev branch
  • Created this PR to target the dev branch
  • Followed the style guidelines as described in the Contribution Guidelines
  • Added tests that prove my fix is effective or that my feature works
  • Updated the Changelog and described changes in the Unreleased section
  • Updated the documentation as appropriate

Other comments

@peifeng-unity peifeng-unity changed the title add jira-link check AIRO-1420 add jira-link check Oct 27, 2021
@peifeng-unity peifeng-unity changed the title AIRO-1420 add jira-link check add jira-link check Oct 27, 2021
@peifeng-unity peifeng-unity changed the title add jira-link check AIRO-1420 add jira-link check Oct 27, 2021
@peifeng-unity peifeng-unity changed the title AIRO-1420 add jira-link check add jira-link check Oct 27, 2021
@peifeng-unity peifeng-unity changed the title add jira-link check AIRO-1420 add jira-link check Oct 27, 2021
on:
pull_request:
types: [opened, edited, reopened, synchronize, ready_for_review, review_requested]
branches:
Copy link
Contributor

Choose a reason for hiding this comment

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

is this for merging into main or dev? I'm not sure if you really need line 5-8.
on: pull_request: should be sufficient to run on all pull requests. what do you think?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh, good question! The types enables the action to run when we change the title after the pull request is open. The default types are open, synchronize, and reopen. We probably need to add edited to trigger the workflow when the PR's title is edited.

For the branches, I am not sure. Do you think we want to check for the PRs that are not merging into our dev or main branches as well?

Copy link
Contributor

Choose a reason for hiding this comment

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

oh i see. then we can keep the types.
Yes, even for PRs that are not merging into dev/main branch, it is still good to check the jira link. It also reduces complexity, the jira link check just runs on all pull requests.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Okay, sure. Just removed the branch part :)

@peifeng-unity peifeng-unity requested a review from sdiao October 27, 2021 17:39
@peifeng-unity peifeng-unity merged commit acf4775 into dev Oct 27, 2021
@peifeng-unity peifeng-unity deleted the add-jira-link-checker branch October 27, 2021 21:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants